Rev 3206 | Rev 3374 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.crm;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.apache.thrift.*;import org.apache.thrift.meta_data.*;import org.apache.thrift.protocol.*;public class CRMService {public interface Iface {public List<Ticket> getTickets(long customerId) throws TException;public List<Ticket> getAssignedTickets(long agentId) throws TException;public List<Ticket> getUnassignedTickets() throws TException;public List<Ticket> getAllTickets(long agentId) throws TException;public Ticket getTicket(long ticketId) throws TException;public void updateTicket(Ticket ticket, Activity activity) throws TException;public long insertTicket(Ticket ticket, Activity activity) throws TException;public List<Activity> getActivities(long customerId) throws TException;public List<Activity> getActivitiesByCreator(long creatorId) throws TException;public List<Activity> getActivitiesForTicket(long ticketId) throws TException;public Activity getActivity(long activityId) throws TException;public Activity getLastActivity(long ticketId) throws TException;public void insertActivity(Activity activity) throws TException;public List<Agent> getAllAgents() throws TException;public Agent getAgent(long agentId) throws TException;public Agent getAgentByEmailId(String agentEmailId) throws TException;public void updatePasswordForAgent(String agentEmailId, String password) throws TException;public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;public List<String> getPermissionsForRoleName(String roleName) throws TException;public long getLastEmailProcessedTimestamp() throws TException;public void updateLastEmailProcessedTimestamp(long timestamp) throws TException;}public static class Client implements Iface {public Client(TProtocol prot){this(prot, prot);}public Client(TProtocol iprot, TProtocol oprot){iprot_ = iprot;oprot_ = oprot;}protected TProtocol iprot_;protected TProtocol oprot_;protected int seqid_;public TProtocol getInputProtocol(){return this.iprot_;}public TProtocol getOutputProtocol(){return this.oprot_;}public List<Ticket> getTickets(long customerId) throws TException{send_getTickets(customerId);return recv_getTickets();}public void send_getTickets(long customerId) throws TException{oprot_.writeMessageBegin(new TMessage("getTickets", TMessageType.CALL, seqid_));getTickets_args args = new getTickets_args();args.customerId = customerId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Ticket> recv_getTickets() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTickets_result result = new getTickets_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");}public List<Ticket> getAssignedTickets(long agentId) throws TException{send_getAssignedTickets(agentId);return recv_getAssignedTickets();}public void send_getAssignedTickets(long agentId) throws TException{oprot_.writeMessageBegin(new TMessage("getAssignedTickets", TMessageType.CALL, seqid_));getAssignedTickets_args args = new getAssignedTickets_args();args.agentId = agentId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Ticket> recv_getAssignedTickets() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAssignedTickets_result result = new getAssignedTickets_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAssignedTickets failed: unknown result");}public List<Ticket> getUnassignedTickets() throws TException{send_getUnassignedTickets();return recv_getUnassignedTickets();}public void send_getUnassignedTickets() throws TException{oprot_.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.CALL, seqid_));getUnassignedTickets_args args = new getUnassignedTickets_args();args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Ticket> recv_getUnassignedTickets() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getUnassignedTickets_result result = new getUnassignedTickets_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");}public List<Ticket> getAllTickets(long agentId) throws TException{send_getAllTickets(agentId);return recv_getAllTickets();}public void send_getAllTickets(long agentId) throws TException{oprot_.writeMessageBegin(new TMessage("getAllTickets", TMessageType.CALL, seqid_));getAllTickets_args args = new getAllTickets_args();args.agentId = agentId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Ticket> recv_getAllTickets() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAllTickets_result result = new getAllTickets_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllTickets failed: unknown result");}public Ticket getTicket(long ticketId) throws TException{send_getTicket(ticketId);return recv_getTicket();}public void send_getTicket(long ticketId) throws TException{oprot_.writeMessageBegin(new TMessage("getTicket", TMessageType.CALL, seqid_));getTicket_args args = new getTicket_args();args.ticketId = ticketId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Ticket recv_getTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTicket_result result = new getTicket_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTicket failed: unknown result");}public void updateTicket(Ticket ticket, Activity activity) throws TException{send_updateTicket(ticket, activity);recv_updateTicket();}public void send_updateTicket(Ticket ticket, Activity activity) throws TException{oprot_.writeMessageBegin(new TMessage("updateTicket", TMessageType.CALL, seqid_));updateTicket_args args = new updateTicket_args();args.ticket = ticket;args.activity = activity;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updateTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updateTicket_result result = new updateTicket_result();result.read(iprot_);iprot_.readMessageEnd();return;}public long insertTicket(Ticket ticket, Activity activity) throws TException{send_insertTicket(ticket, activity);return recv_insertTicket();}public void send_insertTicket(Ticket ticket, Activity activity) throws TException{oprot_.writeMessageBegin(new TMessage("insertTicket", TMessageType.CALL, seqid_));insertTicket_args args = new insertTicket_args();args.ticket = ticket;args.activity = activity;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public long recv_insertTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}insertTicket_result result = new insertTicket_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");}public List<Activity> getActivities(long customerId) throws TException{send_getActivities(customerId);return recv_getActivities();}public void send_getActivities(long customerId) throws TException{oprot_.writeMessageBegin(new TMessage("getActivities", TMessageType.CALL, seqid_));getActivities_args args = new getActivities_args();args.customerId = customerId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Activity> recv_getActivities() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivities_result result = new getActivities_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");}public List<Activity> getActivitiesByCreator(long creatorId) throws TException{send_getActivitiesByCreator(creatorId);return recv_getActivitiesByCreator();}public void send_getActivitiesByCreator(long creatorId) throws TException{oprot_.writeMessageBegin(new TMessage("getActivitiesByCreator", TMessageType.CALL, seqid_));getActivitiesByCreator_args args = new getActivitiesByCreator_args();args.creatorId = creatorId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Activity> recv_getActivitiesByCreator() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivitiesByCreator_result result = new getActivitiesByCreator_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesByCreator failed: unknown result");}public List<Activity> getActivitiesForTicket(long ticketId) throws TException{send_getActivitiesForTicket(ticketId);return recv_getActivitiesForTicket();}public void send_getActivitiesForTicket(long ticketId) throws TException{oprot_.writeMessageBegin(new TMessage("getActivitiesForTicket", TMessageType.CALL, seqid_));getActivitiesForTicket_args args = new getActivitiesForTicket_args();args.ticketId = ticketId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Activity> recv_getActivitiesForTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivitiesForTicket_result result = new getActivitiesForTicket_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesForTicket failed: unknown result");}public Activity getActivity(long activityId) throws TException{send_getActivity(activityId);return recv_getActivity();}public void send_getActivity(long activityId) throws TException{oprot_.writeMessageBegin(new TMessage("getActivity", TMessageType.CALL, seqid_));getActivity_args args = new getActivity_args();args.activityId = activityId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Activity recv_getActivity() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivity_result result = new getActivity_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivity failed: unknown result");}public Activity getLastActivity(long ticketId) throws TException{send_getLastActivity(ticketId);return recv_getLastActivity();}public void send_getLastActivity(long ticketId) throws TException{oprot_.writeMessageBegin(new TMessage("getLastActivity", TMessageType.CALL, seqid_));getLastActivity_args args = new getLastActivity_args();args.ticketId = ticketId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Activity recv_getLastActivity() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getLastActivity_result result = new getLastActivity_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLastActivity failed: unknown result");}public void insertActivity(Activity activity) throws TException{send_insertActivity(activity);recv_insertActivity();}public void send_insertActivity(Activity activity) throws TException{oprot_.writeMessageBegin(new TMessage("insertActivity", TMessageType.CALL, seqid_));insertActivity_args args = new insertActivity_args();args.activity = activity;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_insertActivity() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}insertActivity_result result = new insertActivity_result();result.read(iprot_);iprot_.readMessageEnd();return;}public List<Agent> getAllAgents() throws TException{send_getAllAgents();return recv_getAllAgents();}public void send_getAllAgents() throws TException{oprot_.writeMessageBegin(new TMessage("getAllAgents", TMessageType.CALL, seqid_));getAllAgents_args args = new getAllAgents_args();args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Agent> recv_getAllAgents() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAllAgents_result result = new getAllAgents_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllAgents failed: unknown result");}public Agent getAgent(long agentId) throws TException{send_getAgent(agentId);return recv_getAgent();}public void send_getAgent(long agentId) throws TException{oprot_.writeMessageBegin(new TMessage("getAgent", TMessageType.CALL, seqid_));getAgent_args args = new getAgent_args();args.agentId = agentId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Agent recv_getAgent() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAgent_result result = new getAgent_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgent failed: unknown result");}public Agent getAgentByEmailId(String agentEmailId) throws TException{send_getAgentByEmailId(agentEmailId);return recv_getAgentByEmailId();}public void send_getAgentByEmailId(String agentEmailId) throws TException{oprot_.writeMessageBegin(new TMessage("getAgentByEmailId", TMessageType.CALL, seqid_));getAgentByEmailId_args args = new getAgentByEmailId_args();args.agentEmailId = agentEmailId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Agent recv_getAgentByEmailId() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAgentByEmailId_result result = new getAgentByEmailId_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgentByEmailId failed: unknown result");}public void updatePasswordForAgent(String agentEmailId, String password) throws TException{send_updatePasswordForAgent(agentEmailId, password);recv_updatePasswordForAgent();}public void send_updatePasswordForAgent(String agentEmailId, String password) throws TException{oprot_.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.CALL, seqid_));updatePasswordForAgent_args args = new updatePasswordForAgent_args();args.agentEmailId = agentEmailId;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updatePasswordForAgent() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updatePasswordForAgent_result result = new updatePasswordForAgent_result();result.read(iprot_);iprot_.readMessageEnd();return;}public List<String> getRoleNamesForAgent(String agentEmailId) throws TException{send_getRoleNamesForAgent(agentEmailId);return recv_getRoleNamesForAgent();}public void send_getRoleNamesForAgent(String agentEmailId) throws TException{oprot_.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.CALL, seqid_));getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();args.agentEmailId = agentEmailId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<String> recv_getRoleNamesForAgent() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");}public List<String> getPermissionsForRoleName(String roleName) throws TException{send_getPermissionsForRoleName(roleName);return recv_getPermissionsForRoleName();}public void send_getPermissionsForRoleName(String roleName) throws TException{oprot_.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.CALL, seqid_));getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();args.roleName = roleName;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<String> recv_getPermissionsForRoleName() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");}public long getLastEmailProcessedTimestamp() throws TException{send_getLastEmailProcessedTimestamp();return recv_getLastEmailProcessedTimestamp();}public void send_getLastEmailProcessedTimestamp() throws TException{oprot_.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public long recv_getLastEmailProcessedTimestamp() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");}public void updateLastEmailProcessedTimestamp(long timestamp) throws TException{send_updateLastEmailProcessedTimestamp(timestamp);recv_updateLastEmailProcessedTimestamp();}public void send_updateLastEmailProcessedTimestamp(long timestamp) throws TException{oprot_.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();args.timestamp = timestamp;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updateLastEmailProcessedTimestamp() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();result.read(iprot_);iprot_.readMessageEnd();return;}}public static class Processor implements TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(Iface iface){iface_ = iface;processMap_.put("getTickets", new getTickets());processMap_.put("getAssignedTickets", new getAssignedTickets());processMap_.put("getUnassignedTickets", new getUnassignedTickets());processMap_.put("getAllTickets", new getAllTickets());processMap_.put("getTicket", new getTicket());processMap_.put("updateTicket", new updateTicket());processMap_.put("insertTicket", new insertTicket());processMap_.put("getActivities", new getActivities());processMap_.put("getActivitiesByCreator", new getActivitiesByCreator());processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());processMap_.put("getActivity", new getActivity());processMap_.put("getLastActivity", new getLastActivity());processMap_.put("insertActivity", new insertActivity());processMap_.put("getAllAgents", new getAllAgents());processMap_.put("getAgent", new getAgent());processMap_.put("getAgentByEmailId", new getAgentByEmailId());processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());processMap_.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());processMap_.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());}protected static interface ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;}private Iface iface_;protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();public boolean process(TProtocol iprot, TProtocol oprot) throws TException{TMessage msg = iprot.readMessageBegin();ProcessFunction fn = processMap_.get(msg.name);if (fn == null) {TProtocolUtil.skip(iprot, TType.STRUCT);iprot.readMessageEnd();TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return true;}fn.process(msg.seqid, iprot, oprot);return true;}private class getTickets implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTickets_args args = new getTickets_args();args.read(iprot);iprot.readMessageEnd();getTickets_result result = new getTickets_result();result.success = iface_.getTickets(args.customerId);oprot.writeMessageBegin(new TMessage("getTickets", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAssignedTickets implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAssignedTickets_args args = new getAssignedTickets_args();args.read(iprot);iprot.readMessageEnd();getAssignedTickets_result result = new getAssignedTickets_result();result.success = iface_.getAssignedTickets(args.agentId);oprot.writeMessageBegin(new TMessage("getAssignedTickets", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getUnassignedTickets implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getUnassignedTickets_args args = new getUnassignedTickets_args();args.read(iprot);iprot.readMessageEnd();getUnassignedTickets_result result = new getUnassignedTickets_result();result.success = iface_.getUnassignedTickets();oprot.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAllTickets implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAllTickets_args args = new getAllTickets_args();args.read(iprot);iprot.readMessageEnd();getAllTickets_result result = new getAllTickets_result();result.success = iface_.getAllTickets(args.agentId);oprot.writeMessageBegin(new TMessage("getAllTickets", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTicket_args args = new getTicket_args();args.read(iprot);iprot.readMessageEnd();getTicket_result result = new getTicket_result();result.success = iface_.getTicket(args.ticketId);oprot.writeMessageBegin(new TMessage("getTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updateTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updateTicket_args args = new updateTicket_args();args.read(iprot);iprot.readMessageEnd();updateTicket_result result = new updateTicket_result();iface_.updateTicket(args.ticket, args.activity);oprot.writeMessageBegin(new TMessage("updateTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class insertTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{insertTicket_args args = new insertTicket_args();args.read(iprot);iprot.readMessageEnd();insertTicket_result result = new insertTicket_result();result.success = iface_.insertTicket(args.ticket, args.activity);result.setSuccessIsSet(true);oprot.writeMessageBegin(new TMessage("insertTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivities implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivities_args args = new getActivities_args();args.read(iprot);iprot.readMessageEnd();getActivities_result result = new getActivities_result();result.success = iface_.getActivities(args.customerId);oprot.writeMessageBegin(new TMessage("getActivities", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivitiesByCreator implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivitiesByCreator_args args = new getActivitiesByCreator_args();args.read(iprot);iprot.readMessageEnd();getActivitiesByCreator_result result = new getActivitiesByCreator_result();result.success = iface_.getActivitiesByCreator(args.creatorId);oprot.writeMessageBegin(new TMessage("getActivitiesByCreator", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivitiesForTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivitiesForTicket_args args = new getActivitiesForTicket_args();args.read(iprot);iprot.readMessageEnd();getActivitiesForTicket_result result = new getActivitiesForTicket_result();result.success = iface_.getActivitiesForTicket(args.ticketId);oprot.writeMessageBegin(new TMessage("getActivitiesForTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivity implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivity_args args = new getActivity_args();args.read(iprot);iprot.readMessageEnd();getActivity_result result = new getActivity_result();result.success = iface_.getActivity(args.activityId);oprot.writeMessageBegin(new TMessage("getActivity", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getLastActivity implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getLastActivity_args args = new getLastActivity_args();args.read(iprot);iprot.readMessageEnd();getLastActivity_result result = new getLastActivity_result();result.success = iface_.getLastActivity(args.ticketId);oprot.writeMessageBegin(new TMessage("getLastActivity", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class insertActivity implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{insertActivity_args args = new insertActivity_args();args.read(iprot);iprot.readMessageEnd();insertActivity_result result = new insertActivity_result();iface_.insertActivity(args.activity);oprot.writeMessageBegin(new TMessage("insertActivity", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAllAgents implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAllAgents_args args = new getAllAgents_args();args.read(iprot);iprot.readMessageEnd();getAllAgents_result result = new getAllAgents_result();result.success = iface_.getAllAgents();oprot.writeMessageBegin(new TMessage("getAllAgents", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAgent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAgent_args args = new getAgent_args();args.read(iprot);iprot.readMessageEnd();getAgent_result result = new getAgent_result();result.success = iface_.getAgent(args.agentId);oprot.writeMessageBegin(new TMessage("getAgent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAgentByEmailId implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAgentByEmailId_args args = new getAgentByEmailId_args();args.read(iprot);iprot.readMessageEnd();getAgentByEmailId_result result = new getAgentByEmailId_result();result.success = iface_.getAgentByEmailId(args.agentEmailId);oprot.writeMessageBegin(new TMessage("getAgentByEmailId", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updatePasswordForAgent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updatePasswordForAgent_args args = new updatePasswordForAgent_args();args.read(iprot);iprot.readMessageEnd();updatePasswordForAgent_result result = new updatePasswordForAgent_result();iface_.updatePasswordForAgent(args.agentEmailId, args.password);oprot.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getRoleNamesForAgent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();args.read(iprot);iprot.readMessageEnd();getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();result.success = iface_.getRoleNamesForAgent(args.agentEmailId);oprot.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getPermissionsForRoleName implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();args.read(iprot);iprot.readMessageEnd();getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();result.success = iface_.getPermissionsForRoleName(args.roleName);oprot.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getLastEmailProcessedTimestamp implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();args.read(iprot);iprot.readMessageEnd();getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();result.success = iface_.getLastEmailProcessedTimestamp();result.setSuccessIsSet(true);oprot.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updateLastEmailProcessedTimestamp implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();args.read(iprot);iprot.readMessageEnd();updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();iface_.updateLastEmailProcessedTimestamp(args.timestamp);oprot.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}}public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args> {private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);private long customerId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {CUSTOMER_ID((short)1, "customerId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);}public getTickets_args() {}public getTickets_args(long customerId){this();this.customerId = customerId;setCustomerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTickets_args(getTickets_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;}public getTickets_args deepCopy() {return new getTickets_args(this);}@Deprecatedpublic getTickets_args clone() {return new getTickets_args(this);}public long getCustomerId() {return this.customerId;}public getTickets_args setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);return this;}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been asigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return new Long(getCustomerId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case CUSTOMER_ID:return isSetCustomerId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTickets_args)return this.equals((getTickets_args)that);return false;}public boolean equals(getTickets_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTickets_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTickets_args typedOther = (getTickets_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case CUSTOMER_ID:if (field.type == TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTickets_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTickets_result implements TBase<getTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_result> {private static final TStruct STRUCT_DESC = new TStruct("getTickets_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Ticket> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Ticket.class))));}});static {FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);}public getTickets_result() {}public getTickets_result(List<Ticket> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getTickets_result(getTickets_result other) {if (other.isSetSuccess()) {List<Ticket> __this__success = new ArrayList<Ticket>();for (Ticket other_element : other.success) {__this__success.add(new Ticket(other_element));}this.success = __this__success;}}public getTickets_result deepCopy() {return new getTickets_result(this);}@Deprecatedpublic getTickets_result clone() {return new getTickets_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Ticket> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Ticket elem) {if (this.success == null) {this.success = new ArrayList<Ticket>();}this.success.add(elem);}public List<Ticket> getSuccess() {return this.success;}public getTickets_result setSuccess(List<Ticket> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Ticket>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTickets_result)return this.equals((getTickets_result)that);return false;}public boolean equals(getTickets_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTickets_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTickets_result typedOther = (getTickets_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list0 = iprot.readListBegin();this.success = new ArrayList<Ticket>(_list0.size);for (int _i1 = 0; _i1 < _list0.size; ++_i1){Ticket _elem2;_elem2 = new Ticket();_elem2.read(iprot);this.success.add(_elem2);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Ticket _iter3 : this.success){_iter3.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTickets_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAssignedTickets_args implements TBase<getAssignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAssignedTickets_args> {private static final TStruct STRUCT_DESC = new TStruct("getAssignedTickets_args");private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);private long agentId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_ID((short)1, "agentId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __AGENTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getAssignedTickets_args.class, metaDataMap);}public getAssignedTickets_args() {}public getAssignedTickets_args(long agentId){this();this.agentId = agentId;setAgentIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAssignedTickets_args(getAssignedTickets_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.agentId = other.agentId;}public getAssignedTickets_args deepCopy() {return new getAssignedTickets_args(this);}@Deprecatedpublic getAssignedTickets_args clone() {return new getAssignedTickets_args(this);}public long getAgentId() {return this.agentId;}public getAssignedTickets_args setAgentId(long agentId) {this.agentId = agentId;setAgentIdIsSet(true);return this;}public void unsetAgentId() {__isset_bit_vector.clear(__AGENTID_ISSET_ID);}/** Returns true if field agentId is set (has been asigned a value) and false otherwise */public boolean isSetAgentId() {return __isset_bit_vector.get(__AGENTID_ISSET_ID);}public void setAgentIdIsSet(boolean value) {__isset_bit_vector.set(__AGENTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_ID:if (value == null) {unsetAgentId();} else {setAgentId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_ID:return new Long(getAgentId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_ID:return isSetAgentId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAssignedTickets_args)return this.equals((getAssignedTickets_args)that);return false;}public boolean equals(getAssignedTickets_args that) {if (that == null)return false;boolean this_present_agentId = true;boolean that_present_agentId = true;if (this_present_agentId || that_present_agentId) {if (!(this_present_agentId && that_present_agentId))return false;if (this.agentId != that.agentId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAssignedTickets_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAssignedTickets_args typedOther = (getAssignedTickets_args)other;lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_ID:if (field.type == TType.I64) {this.agentId = iprot.readI64();setAgentIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);oprot.writeI64(this.agentId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAssignedTickets_args(");boolean first = true;sb.append("agentId:");sb.append(this.agentId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAssignedTickets_result implements TBase<getAssignedTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAssignedTickets_result> {private static final TStruct STRUCT_DESC = new TStruct("getAssignedTickets_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Ticket> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Ticket.class))));}});static {FieldMetaData.addStructMetaDataMap(getAssignedTickets_result.class, metaDataMap);}public getAssignedTickets_result() {}public getAssignedTickets_result(List<Ticket> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAssignedTickets_result(getAssignedTickets_result other) {if (other.isSetSuccess()) {List<Ticket> __this__success = new ArrayList<Ticket>();for (Ticket other_element : other.success) {__this__success.add(new Ticket(other_element));}this.success = __this__success;}}public getAssignedTickets_result deepCopy() {return new getAssignedTickets_result(this);}@Deprecatedpublic getAssignedTickets_result clone() {return new getAssignedTickets_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Ticket> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Ticket elem) {if (this.success == null) {this.success = new ArrayList<Ticket>();}this.success.add(elem);}public List<Ticket> getSuccess() {return this.success;}public getAssignedTickets_result setSuccess(List<Ticket> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Ticket>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAssignedTickets_result)return this.equals((getAssignedTickets_result)that);return false;}public boolean equals(getAssignedTickets_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAssignedTickets_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAssignedTickets_result typedOther = (getAssignedTickets_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list4 = iprot.readListBegin();this.success = new ArrayList<Ticket>(_list4.size);for (int _i5 = 0; _i5 < _list4.size; ++_i5){Ticket _elem6;_elem6 = new Ticket();_elem6.read(iprot);this.success.add(_elem6);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Ticket _iter7 : this.success){_iter7.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAssignedTickets_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getUnassignedTickets_args implements TBase<getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_args> {private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);}public getUnassignedTickets_args() {}/*** Performs a deep copy on <i>other</i>.*/public getUnassignedTickets_args(getUnassignedTickets_args other) {}public getUnassignedTickets_args deepCopy() {return new getUnassignedTickets_args(this);}@Deprecatedpublic getUnassignedTickets_args clone() {return new getUnassignedTickets_args(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUnassignedTickets_args)return this.equals((getUnassignedTickets_args)that);return false;}public boolean equals(getUnassignedTickets_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUnassignedTickets_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUnassignedTickets_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getUnassignedTickets_result implements TBase<getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_result> {private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Ticket> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Ticket.class))));}});static {FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);}public getUnassignedTickets_result() {}public getUnassignedTickets_result(List<Ticket> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getUnassignedTickets_result(getUnassignedTickets_result other) {if (other.isSetSuccess()) {List<Ticket> __this__success = new ArrayList<Ticket>();for (Ticket other_element : other.success) {__this__success.add(new Ticket(other_element));}this.success = __this__success;}}public getUnassignedTickets_result deepCopy() {return new getUnassignedTickets_result(this);}@Deprecatedpublic getUnassignedTickets_result clone() {return new getUnassignedTickets_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Ticket> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Ticket elem) {if (this.success == null) {this.success = new ArrayList<Ticket>();}this.success.add(elem);}public List<Ticket> getSuccess() {return this.success;}public getUnassignedTickets_result setSuccess(List<Ticket> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Ticket>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUnassignedTickets_result)return this.equals((getUnassignedTickets_result)that);return false;}public boolean equals(getUnassignedTickets_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUnassignedTickets_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list8 = iprot.readListBegin();this.success = new ArrayList<Ticket>(_list8.size);for (int _i9 = 0; _i9 < _list8.size; ++_i9){Ticket _elem10;_elem10 = new Ticket();_elem10.read(iprot);this.success.add(_elem10);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Ticket _iter11 : this.success){_iter11.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAllTickets_args implements TBase<getAllTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTickets_args> {private static final TStruct STRUCT_DESC = new TStruct("getAllTickets_args");private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);private long agentId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_ID((short)1, "agentId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __AGENTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getAllTickets_args.class, metaDataMap);}public getAllTickets_args() {}public getAllTickets_args(long agentId){this();this.agentId = agentId;setAgentIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllTickets_args(getAllTickets_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.agentId = other.agentId;}public getAllTickets_args deepCopy() {return new getAllTickets_args(this);}@Deprecatedpublic getAllTickets_args clone() {return new getAllTickets_args(this);}public long getAgentId() {return this.agentId;}public getAllTickets_args setAgentId(long agentId) {this.agentId = agentId;setAgentIdIsSet(true);return this;}public void unsetAgentId() {__isset_bit_vector.clear(__AGENTID_ISSET_ID);}/** Returns true if field agentId is set (has been asigned a value) and false otherwise */public boolean isSetAgentId() {return __isset_bit_vector.get(__AGENTID_ISSET_ID);}public void setAgentIdIsSet(boolean value) {__isset_bit_vector.set(__AGENTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_ID:if (value == null) {unsetAgentId();} else {setAgentId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_ID:return new Long(getAgentId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_ID:return isSetAgentId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllTickets_args)return this.equals((getAllTickets_args)that);return false;}public boolean equals(getAllTickets_args that) {if (that == null)return false;boolean this_present_agentId = true;boolean that_present_agentId = true;if (this_present_agentId || that_present_agentId) {if (!(this_present_agentId && that_present_agentId))return false;if (this.agentId != that.agentId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllTickets_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllTickets_args typedOther = (getAllTickets_args)other;lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_ID:if (field.type == TType.I64) {this.agentId = iprot.readI64();setAgentIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);oprot.writeI64(this.agentId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllTickets_args(");boolean first = true;sb.append("agentId:");sb.append(this.agentId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAllTickets_result implements TBase<getAllTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTickets_result> {private static final TStruct STRUCT_DESC = new TStruct("getAllTickets_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Ticket> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Ticket.class))));}});static {FieldMetaData.addStructMetaDataMap(getAllTickets_result.class, metaDataMap);}public getAllTickets_result() {}public getAllTickets_result(List<Ticket> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllTickets_result(getAllTickets_result other) {if (other.isSetSuccess()) {List<Ticket> __this__success = new ArrayList<Ticket>();for (Ticket other_element : other.success) {__this__success.add(new Ticket(other_element));}this.success = __this__success;}}public getAllTickets_result deepCopy() {return new getAllTickets_result(this);}@Deprecatedpublic getAllTickets_result clone() {return new getAllTickets_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Ticket> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Ticket elem) {if (this.success == null) {this.success = new ArrayList<Ticket>();}this.success.add(elem);}public List<Ticket> getSuccess() {return this.success;}public getAllTickets_result setSuccess(List<Ticket> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Ticket>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllTickets_result)return this.equals((getAllTickets_result)that);return false;}public boolean equals(getAllTickets_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllTickets_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllTickets_result typedOther = (getAllTickets_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list12 = iprot.readListBegin();this.success = new ArrayList<Ticket>(_list12.size);for (int _i13 = 0; _i13 < _list12.size; ++_i13){Ticket _elem14;_elem14 = new Ticket();_elem14.read(iprot);this.success.add(_elem14);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Ticket _iter15 : this.success){_iter15.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllTickets_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTicket_args implements TBase<getTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("getTicket_args");private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);private long ticketId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET_ID((short)1, "ticketId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TICKETID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTicket_args.class, metaDataMap);}public getTicket_args() {}public getTicket_args(long ticketId){this();this.ticketId = ticketId;setTicketIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTicket_args(getTicket_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.ticketId = other.ticketId;}public getTicket_args deepCopy() {return new getTicket_args(this);}@Deprecatedpublic getTicket_args clone() {return new getTicket_args(this);}public long getTicketId() {return this.ticketId;}public getTicket_args setTicketId(long ticketId) {this.ticketId = ticketId;setTicketIdIsSet(true);return this;}public void unsetTicketId() {__isset_bit_vector.clear(__TICKETID_ISSET_ID);}/** Returns true if field ticketId is set (has been asigned a value) and false otherwise */public boolean isSetTicketId() {return __isset_bit_vector.get(__TICKETID_ISSET_ID);}public void setTicketIdIsSet(boolean value) {__isset_bit_vector.set(__TICKETID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET_ID:if (value == null) {unsetTicketId();} else {setTicketId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET_ID:return new Long(getTicketId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET_ID:return isSetTicketId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTicket_args)return this.equals((getTicket_args)that);return false;}public boolean equals(getTicket_args that) {if (that == null)return false;boolean this_present_ticketId = true;boolean that_present_ticketId = true;if (this_present_ticketId || that_present_ticketId) {if (!(this_present_ticketId && that_present_ticketId))return false;if (this.ticketId != that.ticketId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTicket_args typedOther = (getTicket_args)other;lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET_ID:if (field.type == TType.I64) {this.ticketId = iprot.readI64();setTicketIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);oprot.writeI64(this.ticketId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTicket_args(");boolean first = true;sb.append("ticketId:");sb.append(this.ticketId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTicket_result implements TBase<getTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("getTicket_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Ticket success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Ticket.class)));}});static {FieldMetaData.addStructMetaDataMap(getTicket_result.class, metaDataMap);}public getTicket_result() {}public getTicket_result(Ticket success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getTicket_result(getTicket_result other) {if (other.isSetSuccess()) {this.success = new Ticket(other.success);}}public getTicket_result deepCopy() {return new getTicket_result(this);}@Deprecatedpublic getTicket_result clone() {return new getTicket_result(this);}public Ticket getSuccess() {return this.success;}public getTicket_result setSuccess(Ticket success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Ticket)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTicket_result)return this.equals((getTicket_result)that);return false;}public boolean equals(getTicket_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTicket_result typedOther = (getTicket_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Ticket();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTicket_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateTicket_args implements TBase<updateTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("updateTicket_args");private static final TField TICKET_FIELD_DESC = new TField("ticket", TType.STRUCT, (short)1);private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)2);private Ticket ticket;private Activity activity;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET((short)1, "ticket"),ACTIVITY((short)2, "activity");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET, new FieldMetaData("ticket", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Ticket.class)));put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);}public updateTicket_args() {}public updateTicket_args(Ticket ticket,Activity activity){this();this.ticket = ticket;this.activity = activity;}/*** Performs a deep copy on <i>other</i>.*/public updateTicket_args(updateTicket_args other) {if (other.isSetTicket()) {this.ticket = new Ticket(other.ticket);}if (other.isSetActivity()) {this.activity = new Activity(other.activity);}}public updateTicket_args deepCopy() {return new updateTicket_args(this);}@Deprecatedpublic updateTicket_args clone() {return new updateTicket_args(this);}public Ticket getTicket() {return this.ticket;}public updateTicket_args setTicket(Ticket ticket) {this.ticket = ticket;return this;}public void unsetTicket() {this.ticket = null;}/** Returns true if field ticket is set (has been asigned a value) and false otherwise */public boolean isSetTicket() {return this.ticket != null;}public void setTicketIsSet(boolean value) {if (!value) {this.ticket = null;}}public Activity getActivity() {return this.activity;}public updateTicket_args setActivity(Activity activity) {this.activity = activity;return this;}public void unsetActivity() {this.activity = null;}/** Returns true if field activity is set (has been asigned a value) and false otherwise */public boolean isSetActivity() {return this.activity != null;}public void setActivityIsSet(boolean value) {if (!value) {this.activity = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET:if (value == null) {unsetTicket();} else {setTicket((Ticket)value);}break;case ACTIVITY:if (value == null) {unsetActivity();} else {setActivity((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET:return getTicket();case ACTIVITY:return getActivity();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET:return isSetTicket();case ACTIVITY:return isSetActivity();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateTicket_args)return this.equals((updateTicket_args)that);return false;}public boolean equals(updateTicket_args that) {if (that == null)return false;boolean this_present_ticket = true && this.isSetTicket();boolean that_present_ticket = true && that.isSetTicket();if (this_present_ticket || that_present_ticket) {if (!(this_present_ticket && that_present_ticket))return false;if (!this.ticket.equals(that.ticket))return false;}boolean this_present_activity = true && this.isSetActivity();boolean that_present_activity = true && that.isSetActivity();if (this_present_activity || that_present_activity) {if (!(this_present_activity && that_present_activity))return false;if (!this.activity.equals(that.activity))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateTicket_args typedOther = (updateTicket_args)other;lastComparison = Boolean.valueOf(isSetTicket()).compareTo(isSetTicket());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticket, typedOther.ticket);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET:if (field.type == TType.STRUCT) {this.ticket = new Ticket();this.ticket.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case ACTIVITY:if (field.type == TType.STRUCT) {this.activity = new Activity();this.activity.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.ticket != null) {oprot.writeFieldBegin(TICKET_FIELD_DESC);this.ticket.write(oprot);oprot.writeFieldEnd();}if (this.activity != null) {oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);this.activity.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateTicket_args(");boolean first = true;sb.append("ticket:");if (this.ticket == null) {sb.append("null");} else {sb.append(this.ticket);}first = false;if (!first) sb.append(", ");sb.append("activity:");if (this.activity == null) {sb.append("null");} else {sb.append(this.activity);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateTicket_result implements TBase<updateTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("updateTicket_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(updateTicket_result.class, metaDataMap);}public updateTicket_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateTicket_result(updateTicket_result other) {}public updateTicket_result deepCopy() {return new updateTicket_result(this);}@Deprecatedpublic updateTicket_result clone() {return new updateTicket_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateTicket_result)return this.equals((updateTicket_result)that);return false;}public boolean equals(updateTicket_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateTicket_result typedOther = (updateTicket_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateTicket_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertTicket_args implements TBase<insertTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("insertTicket_args");private static final TField TICKET_FIELD_DESC = new TField("ticket", TType.STRUCT, (short)1);private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)2);private Ticket ticket;private Activity activity;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET((short)1, "ticket"),ACTIVITY((short)2, "activity");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET, new FieldMetaData("ticket", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Ticket.class)));put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);}public insertTicket_args() {}public insertTicket_args(Ticket ticket,Activity activity){this();this.ticket = ticket;this.activity = activity;}/*** Performs a deep copy on <i>other</i>.*/public insertTicket_args(insertTicket_args other) {if (other.isSetTicket()) {this.ticket = new Ticket(other.ticket);}if (other.isSetActivity()) {this.activity = new Activity(other.activity);}}public insertTicket_args deepCopy() {return new insertTicket_args(this);}@Deprecatedpublic insertTicket_args clone() {return new insertTicket_args(this);}public Ticket getTicket() {return this.ticket;}public insertTicket_args setTicket(Ticket ticket) {this.ticket = ticket;return this;}public void unsetTicket() {this.ticket = null;}/** Returns true if field ticket is set (has been asigned a value) and false otherwise */public boolean isSetTicket() {return this.ticket != null;}public void setTicketIsSet(boolean value) {if (!value) {this.ticket = null;}}public Activity getActivity() {return this.activity;}public insertTicket_args setActivity(Activity activity) {this.activity = activity;return this;}public void unsetActivity() {this.activity = null;}/** Returns true if field activity is set (has been asigned a value) and false otherwise */public boolean isSetActivity() {return this.activity != null;}public void setActivityIsSet(boolean value) {if (!value) {this.activity = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET:if (value == null) {unsetTicket();} else {setTicket((Ticket)value);}break;case ACTIVITY:if (value == null) {unsetActivity();} else {setActivity((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET:return getTicket();case ACTIVITY:return getActivity();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET:return isSetTicket();case ACTIVITY:return isSetActivity();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertTicket_args)return this.equals((insertTicket_args)that);return false;}public boolean equals(insertTicket_args that) {if (that == null)return false;boolean this_present_ticket = true && this.isSetTicket();boolean that_present_ticket = true && that.isSetTicket();if (this_present_ticket || that_present_ticket) {if (!(this_present_ticket && that_present_ticket))return false;if (!this.ticket.equals(that.ticket))return false;}boolean this_present_activity = true && this.isSetActivity();boolean that_present_activity = true && that.isSetActivity();if (this_present_activity || that_present_activity) {if (!(this_present_activity && that_present_activity))return false;if (!this.activity.equals(that.activity))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertTicket_args typedOther = (insertTicket_args)other;lastComparison = Boolean.valueOf(isSetTicket()).compareTo(isSetTicket());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticket, typedOther.ticket);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET:if (field.type == TType.STRUCT) {this.ticket = new Ticket();this.ticket.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case ACTIVITY:if (field.type == TType.STRUCT) {this.activity = new Activity();this.activity.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.ticket != null) {oprot.writeFieldBegin(TICKET_FIELD_DESC);this.ticket.write(oprot);oprot.writeFieldEnd();}if (this.activity != null) {oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);this.activity.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertTicket_args(");boolean first = true;sb.append("ticket:");if (this.ticket == null) {sb.append("null");} else {sb.append(this.ticket);}first = false;if (!first) sb.append(", ");sb.append("activity:");if (this.activity == null) {sb.append("null");} else {sb.append(this.activity);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertTicket_result implements TBase<insertTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("insertTicket_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);private long success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);}public insertTicket_result() {}public insertTicket_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public insertTicket_result(insertTicket_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public insertTicket_result deepCopy() {return new insertTicket_result(this);}@Deprecatedpublic insertTicket_result clone() {return new insertTicket_result(this);}public long getSuccess() {return this.success;}public insertTicket_result setSuccess(long success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Long(getSuccess());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertTicket_result)return this.equals((insertTicket_result)that);return false;}public boolean equals(insertTicket_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertTicket_result typedOther = (insertTicket_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertTicket_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivities_args implements TBase<getActivities_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivities_args");private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);private long customerId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {CUSTOMER_ID((short)1, "customerId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);}public getActivities_args() {}public getActivities_args(long customerId){this();this.customerId = customerId;setCustomerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getActivities_args(getActivities_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;}public getActivities_args deepCopy() {return new getActivities_args(this);}@Deprecatedpublic getActivities_args clone() {return new getActivities_args(this);}public long getCustomerId() {return this.customerId;}public getActivities_args setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);return this;}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been asigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return new Long(getCustomerId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case CUSTOMER_ID:return isSetCustomerId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivities_args)return this.equals((getActivities_args)that);return false;}public boolean equals(getActivities_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivities_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivities_args typedOther = (getActivities_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case CUSTOMER_ID:if (field.type == TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivities_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivities_result implements TBase<getActivities_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivities_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Activity> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Activity.class))));}});static {FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);}public getActivities_result() {}public getActivities_result(List<Activity> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivities_result(getActivities_result other) {if (other.isSetSuccess()) {List<Activity> __this__success = new ArrayList<Activity>();for (Activity other_element : other.success) {__this__success.add(new Activity(other_element));}this.success = __this__success;}}public getActivities_result deepCopy() {return new getActivities_result(this);}@Deprecatedpublic getActivities_result clone() {return new getActivities_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Activity> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Activity elem) {if (this.success == null) {this.success = new ArrayList<Activity>();}this.success.add(elem);}public List<Activity> getSuccess() {return this.success;}public getActivities_result setSuccess(List<Activity> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Activity>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivities_result)return this.equals((getActivities_result)that);return false;}public boolean equals(getActivities_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivities_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivities_result typedOther = (getActivities_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list16 = iprot.readListBegin();this.success = new ArrayList<Activity>(_list16.size);for (int _i17 = 0; _i17 < _list16.size; ++_i17){Activity _elem18;_elem18 = new Activity();_elem18.read(iprot);this.success.add(_elem18);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Activity _iter19 : this.success){_iter19.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivities_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivitiesByCreator_args implements TBase<getActivitiesByCreator_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesByCreator_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivitiesByCreator_args");private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)1);private long creatorId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {CREATOR_ID((short)1, "creatorId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CREATORID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getActivitiesByCreator_args.class, metaDataMap);}public getActivitiesByCreator_args() {}public getActivitiesByCreator_args(long creatorId){this();this.creatorId = creatorId;setCreatorIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getActivitiesByCreator_args(getActivitiesByCreator_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.creatorId = other.creatorId;}public getActivitiesByCreator_args deepCopy() {return new getActivitiesByCreator_args(this);}@Deprecatedpublic getActivitiesByCreator_args clone() {return new getActivitiesByCreator_args(this);}public long getCreatorId() {return this.creatorId;}public getActivitiesByCreator_args setCreatorId(long creatorId) {this.creatorId = creatorId;setCreatorIdIsSet(true);return this;}public void unsetCreatorId() {__isset_bit_vector.clear(__CREATORID_ISSET_ID);}/** Returns true if field creatorId is set (has been asigned a value) and false otherwise */public boolean isSetCreatorId() {return __isset_bit_vector.get(__CREATORID_ISSET_ID);}public void setCreatorIdIsSet(boolean value) {__isset_bit_vector.set(__CREATORID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CREATOR_ID:if (value == null) {unsetCreatorId();} else {setCreatorId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case CREATOR_ID:return new Long(getCreatorId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case CREATOR_ID:return isSetCreatorId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivitiesByCreator_args)return this.equals((getActivitiesByCreator_args)that);return false;}public boolean equals(getActivitiesByCreator_args that) {if (that == null)return false;boolean this_present_creatorId = true;boolean that_present_creatorId = true;if (this_present_creatorId || that_present_creatorId) {if (!(this_present_creatorId && that_present_creatorId))return false;if (this.creatorId != that.creatorId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivitiesByCreator_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivitiesByCreator_args typedOther = (getActivitiesByCreator_args)other;lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case CREATOR_ID:if (field.type == TType.I64) {this.creatorId = iprot.readI64();setCreatorIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);oprot.writeI64(this.creatorId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivitiesByCreator_args(");boolean first = true;sb.append("creatorId:");sb.append(this.creatorId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivitiesByCreator_result implements TBase<getActivitiesByCreator_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesByCreator_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivitiesByCreator_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Activity> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Activity.class))));}});static {FieldMetaData.addStructMetaDataMap(getActivitiesByCreator_result.class, metaDataMap);}public getActivitiesByCreator_result() {}public getActivitiesByCreator_result(List<Activity> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivitiesByCreator_result(getActivitiesByCreator_result other) {if (other.isSetSuccess()) {List<Activity> __this__success = new ArrayList<Activity>();for (Activity other_element : other.success) {__this__success.add(new Activity(other_element));}this.success = __this__success;}}public getActivitiesByCreator_result deepCopy() {return new getActivitiesByCreator_result(this);}@Deprecatedpublic getActivitiesByCreator_result clone() {return new getActivitiesByCreator_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Activity> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Activity elem) {if (this.success == null) {this.success = new ArrayList<Activity>();}this.success.add(elem);}public List<Activity> getSuccess() {return this.success;}public getActivitiesByCreator_result setSuccess(List<Activity> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Activity>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivitiesByCreator_result)return this.equals((getActivitiesByCreator_result)that);return false;}public boolean equals(getActivitiesByCreator_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivitiesByCreator_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivitiesByCreator_result typedOther = (getActivitiesByCreator_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list20 = iprot.readListBegin();this.success = new ArrayList<Activity>(_list20.size);for (int _i21 = 0; _i21 < _list20.size; ++_i21){Activity _elem22;_elem22 = new Activity();_elem22.read(iprot);this.success.add(_elem22);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Activity _iter23 : this.success){_iter23.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivitiesByCreator_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivitiesForTicket_args implements TBase<getActivitiesForTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_args");private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);private long ticketId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET_ID((short)1, "ticketId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TICKETID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getActivitiesForTicket_args.class, metaDataMap);}public getActivitiesForTicket_args() {}public getActivitiesForTicket_args(long ticketId){this();this.ticketId = ticketId;setTicketIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getActivitiesForTicket_args(getActivitiesForTicket_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.ticketId = other.ticketId;}public getActivitiesForTicket_args deepCopy() {return new getActivitiesForTicket_args(this);}@Deprecatedpublic getActivitiesForTicket_args clone() {return new getActivitiesForTicket_args(this);}public long getTicketId() {return this.ticketId;}public getActivitiesForTicket_args setTicketId(long ticketId) {this.ticketId = ticketId;setTicketIdIsSet(true);return this;}public void unsetTicketId() {__isset_bit_vector.clear(__TICKETID_ISSET_ID);}/** Returns true if field ticketId is set (has been asigned a value) and false otherwise */public boolean isSetTicketId() {return __isset_bit_vector.get(__TICKETID_ISSET_ID);}public void setTicketIdIsSet(boolean value) {__isset_bit_vector.set(__TICKETID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET_ID:if (value == null) {unsetTicketId();} else {setTicketId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET_ID:return new Long(getTicketId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET_ID:return isSetTicketId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivitiesForTicket_args)return this.equals((getActivitiesForTicket_args)that);return false;}public boolean equals(getActivitiesForTicket_args that) {if (that == null)return false;boolean this_present_ticketId = true;boolean that_present_ticketId = true;if (this_present_ticketId || that_present_ticketId) {if (!(this_present_ticketId && that_present_ticketId))return false;if (this.ticketId != that.ticketId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivitiesForTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivitiesForTicket_args typedOther = (getActivitiesForTicket_args)other;lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET_ID:if (field.type == TType.I64) {this.ticketId = iprot.readI64();setTicketIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);oprot.writeI64(this.ticketId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivitiesForTicket_args(");boolean first = true;sb.append("ticketId:");sb.append(this.ticketId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivitiesForTicket_result implements TBase<getActivitiesForTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Activity> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Activity.class))));}});static {FieldMetaData.addStructMetaDataMap(getActivitiesForTicket_result.class, metaDataMap);}public getActivitiesForTicket_result() {}public getActivitiesForTicket_result(List<Activity> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivitiesForTicket_result(getActivitiesForTicket_result other) {if (other.isSetSuccess()) {List<Activity> __this__success = new ArrayList<Activity>();for (Activity other_element : other.success) {__this__success.add(new Activity(other_element));}this.success = __this__success;}}public getActivitiesForTicket_result deepCopy() {return new getActivitiesForTicket_result(this);}@Deprecatedpublic getActivitiesForTicket_result clone() {return new getActivitiesForTicket_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Activity> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Activity elem) {if (this.success == null) {this.success = new ArrayList<Activity>();}this.success.add(elem);}public List<Activity> getSuccess() {return this.success;}public getActivitiesForTicket_result setSuccess(List<Activity> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Activity>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivitiesForTicket_result)return this.equals((getActivitiesForTicket_result)that);return false;}public boolean equals(getActivitiesForTicket_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivitiesForTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivitiesForTicket_result typedOther = (getActivitiesForTicket_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list24 = iprot.readListBegin();this.success = new ArrayList<Activity>(_list24.size);for (int _i25 = 0; _i25 < _list24.size; ++_i25){Activity _elem26;_elem26 = new Activity();_elem26.read(iprot);this.success.add(_elem26);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Activity _iter27 : this.success){_iter27.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivitiesForTicket_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivity_args implements TBase<getActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivity_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivity_args");private static final TField ACTIVITY_ID_FIELD_DESC = new TField("activityId", TType.I64, (short)1);private long activityId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ACTIVITY_ID((short)1, "activityId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ACTIVITYID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ACTIVITY_ID, new FieldMetaData("activityId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getActivity_args.class, metaDataMap);}public getActivity_args() {}public getActivity_args(long activityId){this();this.activityId = activityId;setActivityIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getActivity_args(getActivity_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.activityId = other.activityId;}public getActivity_args deepCopy() {return new getActivity_args(this);}@Deprecatedpublic getActivity_args clone() {return new getActivity_args(this);}public long getActivityId() {return this.activityId;}public getActivity_args setActivityId(long activityId) {this.activityId = activityId;setActivityIdIsSet(true);return this;}public void unsetActivityId() {__isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);}/** Returns true if field activityId is set (has been asigned a value) and false otherwise */public boolean isSetActivityId() {return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);}public void setActivityIdIsSet(boolean value) {__isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ACTIVITY_ID:if (value == null) {unsetActivityId();} else {setActivityId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ACTIVITY_ID:return new Long(getActivityId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ACTIVITY_ID:return isSetActivityId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivity_args)return this.equals((getActivity_args)that);return false;}public boolean equals(getActivity_args that) {if (that == null)return false;boolean this_present_activityId = true;boolean that_present_activityId = true;if (this_present_activityId || that_present_activityId) {if (!(this_present_activityId && that_present_activityId))return false;if (this.activityId != that.activityId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivity_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivity_args typedOther = (getActivity_args)other;lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(isSetActivityId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activityId, typedOther.activityId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ACTIVITY_ID:if (field.type == TType.I64) {this.activityId = iprot.readI64();setActivityIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);oprot.writeI64(this.activityId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivity_args(");boolean first = true;sb.append("activityId:");sb.append(this.activityId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivity_result implements TBase<getActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivity_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivity_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Activity success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(getActivity_result.class, metaDataMap);}public getActivity_result() {}public getActivity_result(Activity success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivity_result(getActivity_result other) {if (other.isSetSuccess()) {this.success = new Activity(other.success);}}public getActivity_result deepCopy() {return new getActivity_result(this);}@Deprecatedpublic getActivity_result clone() {return new getActivity_result(this);}public Activity getSuccess() {return this.success;}public getActivity_result setSuccess(Activity success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivity_result)return this.equals((getActivity_result)that);return false;}public boolean equals(getActivity_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivity_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivity_result typedOther = (getActivity_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Activity();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivity_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastActivity_args implements TBase<getLastActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLastActivity_args> {private static final TStruct STRUCT_DESC = new TStruct("getLastActivity_args");private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);private long ticketId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET_ID((short)1, "ticketId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TICKETID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getLastActivity_args.class, metaDataMap);}public getLastActivity_args() {}public getLastActivity_args(long ticketId){this();this.ticketId = ticketId;setTicketIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getLastActivity_args(getLastActivity_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.ticketId = other.ticketId;}public getLastActivity_args deepCopy() {return new getLastActivity_args(this);}@Deprecatedpublic getLastActivity_args clone() {return new getLastActivity_args(this);}public long getTicketId() {return this.ticketId;}public getLastActivity_args setTicketId(long ticketId) {this.ticketId = ticketId;setTicketIdIsSet(true);return this;}public void unsetTicketId() {__isset_bit_vector.clear(__TICKETID_ISSET_ID);}/** Returns true if field ticketId is set (has been asigned a value) and false otherwise */public boolean isSetTicketId() {return __isset_bit_vector.get(__TICKETID_ISSET_ID);}public void setTicketIdIsSet(boolean value) {__isset_bit_vector.set(__TICKETID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET_ID:if (value == null) {unsetTicketId();} else {setTicketId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET_ID:return new Long(getTicketId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET_ID:return isSetTicketId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastActivity_args)return this.equals((getLastActivity_args)that);return false;}public boolean equals(getLastActivity_args that) {if (that == null)return false;boolean this_present_ticketId = true;boolean that_present_ticketId = true;if (this_present_ticketId || that_present_ticketId) {if (!(this_present_ticketId && that_present_ticketId))return false;if (this.ticketId != that.ticketId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastActivity_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastActivity_args typedOther = (getLastActivity_args)other;lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET_ID:if (field.type == TType.I64) {this.ticketId = iprot.readI64();setTicketIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);oprot.writeI64(this.ticketId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastActivity_args(");boolean first = true;sb.append("ticketId:");sb.append(this.ticketId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastActivity_result implements TBase<getLastActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLastActivity_result> {private static final TStruct STRUCT_DESC = new TStruct("getLastActivity_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Activity success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(getLastActivity_result.class, metaDataMap);}public getLastActivity_result() {}public getLastActivity_result(Activity success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getLastActivity_result(getLastActivity_result other) {if (other.isSetSuccess()) {this.success = new Activity(other.success);}}public getLastActivity_result deepCopy() {return new getLastActivity_result(this);}@Deprecatedpublic getLastActivity_result clone() {return new getLastActivity_result(this);}public Activity getSuccess() {return this.success;}public getLastActivity_result setSuccess(Activity success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastActivity_result)return this.equals((getLastActivity_result)that);return false;}public boolean equals(getLastActivity_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastActivity_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastActivity_result typedOther = (getLastActivity_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Activity();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastActivity_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertActivity_args implements TBase<insertActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_args> {private static final TStruct STRUCT_DESC = new TStruct("insertActivity_args");private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)1);private Activity activity;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ACTIVITY((short)1, "activity");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);}public insertActivity_args() {}public insertActivity_args(Activity activity){this();this.activity = activity;}/*** Performs a deep copy on <i>other</i>.*/public insertActivity_args(insertActivity_args other) {if (other.isSetActivity()) {this.activity = new Activity(other.activity);}}public insertActivity_args deepCopy() {return new insertActivity_args(this);}@Deprecatedpublic insertActivity_args clone() {return new insertActivity_args(this);}public Activity getActivity() {return this.activity;}public insertActivity_args setActivity(Activity activity) {this.activity = activity;return this;}public void unsetActivity() {this.activity = null;}/** Returns true if field activity is set (has been asigned a value) and false otherwise */public boolean isSetActivity() {return this.activity != null;}public void setActivityIsSet(boolean value) {if (!value) {this.activity = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ACTIVITY:if (value == null) {unsetActivity();} else {setActivity((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ACTIVITY:return getActivity();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ACTIVITY:return isSetActivity();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertActivity_args)return this.equals((insertActivity_args)that);return false;}public boolean equals(insertActivity_args that) {if (that == null)return false;boolean this_present_activity = true && this.isSetActivity();boolean that_present_activity = true && that.isSetActivity();if (this_present_activity || that_present_activity) {if (!(this_present_activity && that_present_activity))return false;if (!this.activity.equals(that.activity))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertActivity_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertActivity_args typedOther = (insertActivity_args)other;lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ACTIVITY:if (field.type == TType.STRUCT) {this.activity = new Activity();this.activity.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.activity != null) {oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);this.activity.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertActivity_args(");boolean first = true;sb.append("activity:");if (this.activity == null) {sb.append("null");} else {sb.append(this.activity);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertActivity_result implements TBase<insertActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_result> {private static final TStruct STRUCT_DESC = new TStruct("insertActivity_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);}public insertActivity_result() {}/*** Performs a deep copy on <i>other</i>.*/public insertActivity_result(insertActivity_result other) {}public insertActivity_result deepCopy() {return new insertActivity_result(this);}@Deprecatedpublic insertActivity_result clone() {return new insertActivity_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertActivity_result)return this.equals((insertActivity_result)that);return false;}public boolean equals(insertActivity_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertActivity_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertActivity_result typedOther = (insertActivity_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertActivity_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAllAgents_args implements TBase<getAllAgents_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAgents_args> {private static final TStruct STRUCT_DESC = new TStruct("getAllAgents_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(getAllAgents_args.class, metaDataMap);}public getAllAgents_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAllAgents_args(getAllAgents_args other) {}public getAllAgents_args deepCopy() {return new getAllAgents_args(this);}@Deprecatedpublic getAllAgents_args clone() {return new getAllAgents_args(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAgents_args)return this.equals((getAllAgents_args)that);return false;}public boolean equals(getAllAgents_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAgents_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAgents_args typedOther = (getAllAgents_args)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAgents_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAllAgents_result implements TBase<getAllAgents_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAgents_result> {private static final TStruct STRUCT_DESC = new TStruct("getAllAgents_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Agent> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Agent.class))));}});static {FieldMetaData.addStructMetaDataMap(getAllAgents_result.class, metaDataMap);}public getAllAgents_result() {}public getAllAgents_result(List<Agent> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllAgents_result(getAllAgents_result other) {if (other.isSetSuccess()) {List<Agent> __this__success = new ArrayList<Agent>();for (Agent other_element : other.success) {__this__success.add(new Agent(other_element));}this.success = __this__success;}}public getAllAgents_result deepCopy() {return new getAllAgents_result(this);}@Deprecatedpublic getAllAgents_result clone() {return new getAllAgents_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Agent> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Agent elem) {if (this.success == null) {this.success = new ArrayList<Agent>();}this.success.add(elem);}public List<Agent> getSuccess() {return this.success;}public getAllAgents_result setSuccess(List<Agent> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Agent>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAgents_result)return this.equals((getAllAgents_result)that);return false;}public boolean equals(getAllAgents_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAgents_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAgents_result typedOther = (getAllAgents_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list28 = iprot.readListBegin();this.success = new ArrayList<Agent>(_list28.size);for (int _i29 = 0; _i29 < _list28.size; ++_i29){Agent _elem30;_elem30 = new Agent();_elem30.read(iprot);this.success.add(_elem30);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Agent _iter31 : this.success){_iter31.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAgents_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgent_args implements TBase<getAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_args> {private static final TStruct STRUCT_DESC = new TStruct("getAgent_args");private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);private long agentId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_ID((short)1, "agentId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __AGENTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getAgent_args.class, metaDataMap);}public getAgent_args() {}public getAgent_args(long agentId){this();this.agentId = agentId;setAgentIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAgent_args(getAgent_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.agentId = other.agentId;}public getAgent_args deepCopy() {return new getAgent_args(this);}@Deprecatedpublic getAgent_args clone() {return new getAgent_args(this);}public long getAgentId() {return this.agentId;}public getAgent_args setAgentId(long agentId) {this.agentId = agentId;setAgentIdIsSet(true);return this;}public void unsetAgentId() {__isset_bit_vector.clear(__AGENTID_ISSET_ID);}/** Returns true if field agentId is set (has been asigned a value) and false otherwise */public boolean isSetAgentId() {return __isset_bit_vector.get(__AGENTID_ISSET_ID);}public void setAgentIdIsSet(boolean value) {__isset_bit_vector.set(__AGENTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_ID:if (value == null) {unsetAgentId();} else {setAgentId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_ID:return new Long(getAgentId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_ID:return isSetAgentId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgent_args)return this.equals((getAgent_args)that);return false;}public boolean equals(getAgent_args that) {if (that == null)return false;boolean this_present_agentId = true;boolean that_present_agentId = true;if (this_present_agentId || that_present_agentId) {if (!(this_present_agentId && that_present_agentId))return false;if (this.agentId != that.agentId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgent_args typedOther = (getAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_ID:if (field.type == TType.I64) {this.agentId = iprot.readI64();setAgentIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);oprot.writeI64(this.agentId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgent_args(");boolean first = true;sb.append("agentId:");sb.append(this.agentId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgent_result implements TBase<getAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_result> {private static final TStruct STRUCT_DESC = new TStruct("getAgent_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Agent success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Agent.class)));}});static {FieldMetaData.addStructMetaDataMap(getAgent_result.class, metaDataMap);}public getAgent_result() {}public getAgent_result(Agent success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAgent_result(getAgent_result other) {if (other.isSetSuccess()) {this.success = new Agent(other.success);}}public getAgent_result deepCopy() {return new getAgent_result(this);}@Deprecatedpublic getAgent_result clone() {return new getAgent_result(this);}public Agent getSuccess() {return this.success;}public getAgent_result setSuccess(Agent success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Agent)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgent_result)return this.equals((getAgent_result)that);return false;}public boolean equals(getAgent_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgent_result typedOther = (getAgent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Agent();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgent_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgentByEmailId_args implements TBase<getAgentByEmailId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgentByEmailId_args> {private static final TStruct STRUCT_DESC = new TStruct("getAgentByEmailId_args");private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);private String agentEmailId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(getAgentByEmailId_args.class, metaDataMap);}public getAgentByEmailId_args() {}public getAgentByEmailId_args(String agentEmailId){this();this.agentEmailId = agentEmailId;}/*** Performs a deep copy on <i>other</i>.*/public getAgentByEmailId_args(getAgentByEmailId_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}}public getAgentByEmailId_args deepCopy() {return new getAgentByEmailId_args(this);}@Deprecatedpublic getAgentByEmailId_args clone() {return new getAgentByEmailId_args(this);}public String getAgentEmailId() {return this.agentEmailId;}public getAgentByEmailId_args setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;return this;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgentByEmailId_args)return this.equals((getAgentByEmailId_args)that);return false;}public boolean equals(getAgentByEmailId_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgentByEmailId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgentByEmailId_args typedOther = (getAgentByEmailId_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_EMAIL_ID:if (field.type == TType.STRING) {this.agentEmailId = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgentByEmailId_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgentByEmailId_result implements TBase<getAgentByEmailId_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgentByEmailId_result> {private static final TStruct STRUCT_DESC = new TStruct("getAgentByEmailId_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Agent success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Agent.class)));}});static {FieldMetaData.addStructMetaDataMap(getAgentByEmailId_result.class, metaDataMap);}public getAgentByEmailId_result() {}public getAgentByEmailId_result(Agent success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAgentByEmailId_result(getAgentByEmailId_result other) {if (other.isSetSuccess()) {this.success = new Agent(other.success);}}public getAgentByEmailId_result deepCopy() {return new getAgentByEmailId_result(this);}@Deprecatedpublic getAgentByEmailId_result clone() {return new getAgentByEmailId_result(this);}public Agent getSuccess() {return this.success;}public getAgentByEmailId_result setSuccess(Agent success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Agent)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgentByEmailId_result)return this.equals((getAgentByEmailId_result)that);return false;}public boolean equals(getAgentByEmailId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgentByEmailId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgentByEmailId_result typedOther = (getAgentByEmailId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Agent();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgentByEmailId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePasswordForAgent_args implements TBase<updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_args> {private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_args");private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String agentEmailId;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId"),PASSWORD((short)2, "password");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);}public updatePasswordForAgent_args() {}public updatePasswordForAgent_args(String agentEmailId,String password){this();this.agentEmailId = agentEmailId;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public updatePasswordForAgent_args(updatePasswordForAgent_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}if (other.isSetPassword()) {this.password = other.password;}}public updatePasswordForAgent_args deepCopy() {return new updatePasswordForAgent_args(this);}@Deprecatedpublic updatePasswordForAgent_args clone() {return new updatePasswordForAgent_args(this);}public String getAgentEmailId() {return this.agentEmailId;}public updatePasswordForAgent_args setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;return this;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public String getPassword() {return this.password;}public updatePasswordForAgent_args setPassword(String password) {this.password = password;return this;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been asigned a value) and false otherwise */public boolean isSetPassword() {return this.password != null;}public void setPasswordIsSet(boolean value) {if (!value) {this.password = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();case PASSWORD:return getPassword();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePasswordForAgent_args)return this.equals((updatePasswordForAgent_args)that);return false;}public boolean equals(updatePasswordForAgent_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}boolean this_present_password = true && this.isSetPassword();boolean that_present_password = true && that.isSetPassword();if (this_present_password || that_present_password) {if (!(this_present_password && that_present_password))return false;if (!this.password.equals(that.password))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePasswordForAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(password, typedOther.password);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_EMAIL_ID:if (field.type == TType.STRING) {this.agentEmailId = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case PASSWORD:if (field.type == TType.STRING) {this.password = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePasswordForAgent_result implements TBase<updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_result> {private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);}public updatePasswordForAgent_result() {}/*** Performs a deep copy on <i>other</i>.*/public updatePasswordForAgent_result(updatePasswordForAgent_result other) {}public updatePasswordForAgent_result deepCopy() {return new updatePasswordForAgent_result(this);}@Deprecatedpublic updatePasswordForAgent_result clone() {return new updatePasswordForAgent_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePasswordForAgent_result)return this.equals((updatePasswordForAgent_result)that);return false;}public boolean equals(updatePasswordForAgent_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePasswordForAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getRoleNamesForAgent_args implements TBase<getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_args> {private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_args");private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);private String agentEmailId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);}public getRoleNamesForAgent_args() {}public getRoleNamesForAgent_args(String agentEmailId){this();this.agentEmailId = agentEmailId;}/*** Performs a deep copy on <i>other</i>.*/public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}}public getRoleNamesForAgent_args deepCopy() {return new getRoleNamesForAgent_args(this);}@Deprecatedpublic getRoleNamesForAgent_args clone() {return new getRoleNamesForAgent_args(this);}public String getAgentEmailId() {return this.agentEmailId;}public getRoleNamesForAgent_args setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;return this;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRoleNamesForAgent_args)return this.equals((getRoleNamesForAgent_args)that);return false;}public boolean equals(getRoleNamesForAgent_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRoleNamesForAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_EMAIL_ID:if (field.type == TType.STRING) {this.agentEmailId = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getRoleNamesForAgent_result implements TBase<getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_result> {private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<String> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new FieldValueMetaData(TType.STRING))));}});static {FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);}public getRoleNamesForAgent_result() {}public getRoleNamesForAgent_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getRoleNamesForAgent_result deepCopy() {return new getRoleNamesForAgent_result(this);}@Deprecatedpublic getRoleNamesForAgent_result clone() {return new getRoleNamesForAgent_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public getRoleNamesForAgent_result setSuccess(List<String> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRoleNamesForAgent_result)return this.equals((getRoleNamesForAgent_result)that);return false;}public boolean equals(getRoleNamesForAgent_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRoleNamesForAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list32 = iprot.readListBegin();this.success = new ArrayList<String>(_list32.size);for (int _i33 = 0; _i33 < _list32.size; ++_i33){String _elem34;_elem34 = iprot.readString();this.success.add(_elem34);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRING, this.success.size()));for (String _iter35 : this.success){oprot.writeString(_iter35);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getPermissionsForRoleName_args implements TBase<getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_args> {private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_args");private static final TField ROLE_NAME_FIELD_DESC = new TField("roleName", TType.STRING, (short)1);private String roleName;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ROLE_NAME((short)1, "roleName");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ROLE_NAME, new FieldMetaData("roleName", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);}public getPermissionsForRoleName_args() {}public getPermissionsForRoleName_args(String roleName){this();this.roleName = roleName;}/*** Performs a deep copy on <i>other</i>.*/public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {if (other.isSetRoleName()) {this.roleName = other.roleName;}}public getPermissionsForRoleName_args deepCopy() {return new getPermissionsForRoleName_args(this);}@Deprecatedpublic getPermissionsForRoleName_args clone() {return new getPermissionsForRoleName_args(this);}public String getRoleName() {return this.roleName;}public getPermissionsForRoleName_args setRoleName(String roleName) {this.roleName = roleName;return this;}public void unsetRoleName() {this.roleName = null;}/** Returns true if field roleName is set (has been asigned a value) and false otherwise */public boolean isSetRoleName() {return this.roleName != null;}public void setRoleNameIsSet(boolean value) {if (!value) {this.roleName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ROLE_NAME:if (value == null) {unsetRoleName();} else {setRoleName((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ROLE_NAME:return getRoleName();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ROLE_NAME:return isSetRoleName();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPermissionsForRoleName_args)return this.equals((getPermissionsForRoleName_args)that);return false;}public boolean equals(getPermissionsForRoleName_args that) {if (that == null)return false;boolean this_present_roleName = true && this.isSetRoleName();boolean that_present_roleName = true && that.isSetRoleName();if (this_present_roleName || that_present_roleName) {if (!(this_present_roleName && that_present_roleName))return false;if (!this.roleName.equals(that.roleName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPermissionsForRoleName_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(isSetRoleName());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(roleName, typedOther.roleName);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ROLE_NAME:if (field.type == TType.STRING) {this.roleName = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.roleName != null) {oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);oprot.writeString(this.roleName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");boolean first = true;sb.append("roleName:");if (this.roleName == null) {sb.append("null");} else {sb.append(this.roleName);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getPermissionsForRoleName_result implements TBase<getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_result> {private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<String> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new FieldValueMetaData(TType.STRING))));}});static {FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);}public getPermissionsForRoleName_result() {}public getPermissionsForRoleName_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getPermissionsForRoleName_result deepCopy() {return new getPermissionsForRoleName_result(this);}@Deprecatedpublic getPermissionsForRoleName_result clone() {return new getPermissionsForRoleName_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public getPermissionsForRoleName_result setSuccess(List<String> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPermissionsForRoleName_result)return this.equals((getPermissionsForRoleName_result)that);return false;}public boolean equals(getPermissionsForRoleName_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPermissionsForRoleName_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list36 = iprot.readListBegin();this.success = new ArrayList<String>(_list36.size);for (int _i37 = 0; _i37 < _list36.size; ++_i37){String _elem38;_elem38 = iprot.readString();this.success.add(_elem38);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRING, this.success.size()));for (String _iter39 : this.success){oprot.writeString(_iter39);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastEmailProcessedTimestamp_args implements TBase<getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_args> {private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);}public getLastEmailProcessedTimestamp_args() {}/*** Performs a deep copy on <i>other</i>.*/public getLastEmailProcessedTimestamp_args(getLastEmailProcessedTimestamp_args other) {}public getLastEmailProcessedTimestamp_args deepCopy() {return new getLastEmailProcessedTimestamp_args(this);}@Deprecatedpublic getLastEmailProcessedTimestamp_args clone() {return new getLastEmailProcessedTimestamp_args(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastEmailProcessedTimestamp_args)return this.equals((getLastEmailProcessedTimestamp_args)that);return false;}public boolean equals(getLastEmailProcessedTimestamp_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastEmailProcessedTimestamp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastEmailProcessedTimestamp_result implements TBase<getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_result> {private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);private long success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);}public getLastEmailProcessedTimestamp_result() {}public getLastEmailProcessedTimestamp_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getLastEmailProcessedTimestamp_result(getLastEmailProcessedTimestamp_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getLastEmailProcessedTimestamp_result deepCopy() {return new getLastEmailProcessedTimestamp_result(this);}@Deprecatedpublic getLastEmailProcessedTimestamp_result clone() {return new getLastEmailProcessedTimestamp_result(this);}public long getSuccess() {return this.success;}public getLastEmailProcessedTimestamp_result setSuccess(long success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Long(getSuccess());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastEmailProcessedTimestamp_result)return this.equals((getLastEmailProcessedTimestamp_result)that);return false;}public boolean equals(getLastEmailProcessedTimestamp_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastEmailProcessedTimestamp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateLastEmailProcessedTimestamp_args implements TBase<updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_args> {private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_args");private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)1);private long timestamp;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TIMESTAMP((short)1, "timestamp");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TIMESTAMP_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);}public updateLastEmailProcessedTimestamp_args() {}public updateLastEmailProcessedTimestamp_args(long timestamp){this();this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateLastEmailProcessedTimestamp_args(updateLastEmailProcessedTimestamp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.timestamp = other.timestamp;}public updateLastEmailProcessedTimestamp_args deepCopy() {return new updateLastEmailProcessedTimestamp_args(this);}@Deprecatedpublic updateLastEmailProcessedTimestamp_args clone() {return new updateLastEmailProcessedTimestamp_args(this);}public long getTimestamp() {return this.timestamp;}public updateLastEmailProcessedTimestamp_args setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);return this;}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been asigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TIMESTAMP:return new Long(getTimestamp());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateLastEmailProcessedTimestamp_args)return this.equals((updateLastEmailProcessedTimestamp_args)that);return false;}public boolean equals(updateLastEmailProcessedTimestamp_args that) {if (that == null)return false;boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateLastEmailProcessedTimestamp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TIMESTAMP:if (field.type == TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_args(");boolean first = true;sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateLastEmailProcessedTimestamp_result implements TBase<updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_result> {private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);}public updateLastEmailProcessedTimestamp_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateLastEmailProcessedTimestamp_result(updateLastEmailProcessedTimestamp_result other) {}public updateLastEmailProcessedTimestamp_result deepCopy() {return new updateLastEmailProcessedTimestamp_result(this);}@Deprecatedpublic updateLastEmailProcessedTimestamp_result clone() {return new updateLastEmailProcessedTimestamp_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateLastEmailProcessedTimestamp_result)return this.equals((updateLastEmailProcessedTimestamp_result)that);return false;}public boolean equals(updateLastEmailProcessedTimestamp_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateLastEmailProcessedTimestamp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}}