Rev 2357 | Rev 3086 | 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.utils;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 HelperService {public interface Iface {/*** For closing the open session in sqlalchemy*/public void closeSession() throws TException;public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, TException;public List<UserEmail> getEmailsToBeSent(String emailType) throws HelperServiceException, TException;public void markEmailAsSent(long emailId) throws HelperServiceException, TException;public void sendMail(Mail mail) throws HelperServiceException, TException;public void sendText(TextMessage message) throws HelperServiceException, TException;public void addMessage(Message message) throws HelperServiceException, TException;public void updateMessage(long id, String message) throws HelperServiceException, TException;public Message getMessage(long id) throws HelperServiceException, TException;public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException;public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException;public boolean deleteUser(String username) throws HelperServiceException, TException;/*** Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.* The loggedOn timestamp for the dashboard user is updated .** @param username* @param password*/public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, TException;/*** Update the password of the dashboard user. Currently, there is no place where this method is called.** @param username* @param oldPassword* @param newPassword*/public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException;/*** Returns the LogisticsUser struct associated with the given username and password if they match.* Throws an exception otherwise.** @param username* @param password*/public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, TException;/*** Returns the StatisticsUser struct associated with the given username and password if they match.* Throws an exception otherwise.** @param username* @param password*/public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, TException;/*** Returns the ReportUser struct associated with the given username and password if they match.* Throws an exception otherwise.** @param username* @param password*/public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, TException;/*** Returns list of reports which are configured for the given role.** @param role*/public List<Report> getReports(long role) throws TException;/*** Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.* Throws an exception otherwise.** @param username* @param password* @param role*/public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, 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 void closeSession() throws TException{send_closeSession();recv_closeSession();}public void send_closeSession() throws TException{oprot_.writeMessageBegin(new TMessage("closeSession", TMessageType.CALL, seqid_));closeSession_args args = new closeSession_args();args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_closeSession() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}closeSession_result result = new closeSession_result();result.read(iprot_);iprot_.readMessageEnd();return;}public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, TException{send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);recv_saveUserEmailForSending();}public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws TException{oprot_.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.CALL, seqid_));saveUserEmailForSending_args args = new saveUserEmailForSending_args();args.emailTo = emailTo;args.emailFrom = emailFrom;args.subject = subject;args.body = body;args.source = source;args.emailType = emailType;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_saveUserEmailForSending() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}saveUserEmailForSending_result result = new saveUserEmailForSending_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public List<UserEmail> getEmailsToBeSent(String emailType) throws HelperServiceException, TException{send_getEmailsToBeSent(emailType);return recv_getEmailsToBeSent();}public void send_getEmailsToBeSent(String emailType) throws TException{oprot_.writeMessageBegin(new TMessage("getEmailsToBeSent", TMessageType.CALL, seqid_));getEmailsToBeSent_args args = new getEmailsToBeSent_args();args.emailType = emailType;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getEmailsToBeSent_result result = new getEmailsToBeSent_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");}public void markEmailAsSent(long emailId) throws HelperServiceException, TException{send_markEmailAsSent(emailId);recv_markEmailAsSent();}public void send_markEmailAsSent(long emailId) throws TException{oprot_.writeMessageBegin(new TMessage("markEmailAsSent", TMessageType.CALL, seqid_));markEmailAsSent_args args = new markEmailAsSent_args();args.emailId = emailId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_markEmailAsSent() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}markEmailAsSent_result result = new markEmailAsSent_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public void sendMail(Mail mail) throws HelperServiceException, TException{send_sendMail(mail);recv_sendMail();}public void send_sendMail(Mail mail) throws TException{oprot_.writeMessageBegin(new TMessage("sendMail", TMessageType.CALL, seqid_));sendMail_args args = new sendMail_args();args.mail = mail;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_sendMail() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}sendMail_result result = new sendMail_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public void sendText(TextMessage message) throws HelperServiceException, TException{send_sendText(message);recv_sendText();}public void send_sendText(TextMessage message) throws TException{oprot_.writeMessageBegin(new TMessage("sendText", TMessageType.CALL, seqid_));sendText_args args = new sendText_args();args.message = message;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_sendText() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}sendText_result result = new sendText_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public void addMessage(Message message) throws HelperServiceException, TException{send_addMessage(message);recv_addMessage();}public void send_addMessage(Message message) throws TException{oprot_.writeMessageBegin(new TMessage("addMessage", TMessageType.CALL, seqid_));addMessage_args args = new addMessage_args();args.message = message;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_addMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}addMessage_result result = new addMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public void updateMessage(long id, String message) throws HelperServiceException, TException{send_updateMessage(id, message);recv_updateMessage();}public void send_updateMessage(long id, String message) throws TException{oprot_.writeMessageBegin(new TMessage("updateMessage", TMessageType.CALL, seqid_));updateMessage_args args = new updateMessage_args();args.id = id;args.message = message;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updateMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updateMessage_result result = new updateMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public Message getMessage(long id) throws HelperServiceException, TException{send_getMessage(id);return recv_getMessage();}public void send_getMessage(long id) throws TException{oprot_.writeMessageBegin(new TMessage("getMessage", TMessageType.CALL, seqid_));getMessage_args args = new getMessage_args();args.id = id;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Message recv_getMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getMessage_result result = new getMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");}public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException{send_getSubstitutedMessage(id, params);return recv_getSubstitutedMessage();}public void send_getSubstitutedMessage(long id, Map<String,String> params) throws TException{oprot_.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.CALL, seqid_));getSubstitutedMessage_args args = new getSubstitutedMessage_args();args.id = id;args.params = params;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Message recv_getSubstitutedMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getSubstitutedMessage_result result = new getSubstitutedMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");}public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException{send_addUser(username, password, warehouseId);return recv_addUser();}public void send_addUser(String username, String password, long warehouseId) throws TException{oprot_.writeMessageBegin(new TMessage("addUser", TMessageType.CALL, seqid_));addUser_args args = new addUser_args();args.username = username;args.password = password;args.warehouseId = warehouseId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_addUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}addUser_result result = new addUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");}public boolean deleteUser(String username) throws HelperServiceException, TException{send_deleteUser(username);return recv_deleteUser();}public void send_deleteUser(String username) throws TException{oprot_.writeMessageBegin(new TMessage("deleteUser", TMessageType.CALL, seqid_));deleteUser_args args = new deleteUser_args();args.username = username;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_deleteUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}deleteUser_result result = new deleteUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");}public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, TException{send_authenticateDashboardUser(username, password);return recv_authenticateDashboardUser();}public void send_authenticateDashboardUser(String username, String password) throws TException{oprot_.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.CALL, seqid_));authenticateDashboardUser_args args = new authenticateDashboardUser_args();args.username = username;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}authenticateDashboardUser_result result = new authenticateDashboardUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");}public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException{send_updatePassword(username, oldPassword, newPassword);return recv_updatePassword();}public void send_updatePassword(String username, String oldPassword, String newPassword) throws TException{oprot_.writeMessageBegin(new TMessage("updatePassword", TMessageType.CALL, seqid_));updatePassword_args args = new updatePassword_args();args.username = username;args.oldPassword = oldPassword;args.newPassword = newPassword;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_updatePassword() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updatePassword_result result = new updatePassword_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");}public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, TException{send_authenticateLogisticsUser(username, password);return recv_authenticateLogisticsUser();}public void send_authenticateLogisticsUser(String username, String password) throws TException{oprot_.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.CALL, seqid_));authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();args.username = username;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");}public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, TException{send_authenticateStatisticsUser(username, password);return recv_authenticateStatisticsUser();}public void send_authenticateStatisticsUser(String username, String password) throws TException{oprot_.writeMessageBegin(new TMessage("authenticateStatisticsUser", TMessageType.CALL, seqid_));authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();args.username = username;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");}public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, TException{send_authenticateReportUser(username, password);return recv_authenticateReportUser();}public void send_authenticateReportUser(String username, String password) throws TException{oprot_.writeMessageBegin(new TMessage("authenticateReportUser", TMessageType.CALL, seqid_));authenticateReportUser_args args = new authenticateReportUser_args();args.username = username;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public ReportUser recv_authenticateReportUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}authenticateReportUser_result result = new authenticateReportUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");}public List<Report> getReports(long role) throws TException{send_getReports(role);return recv_getReports();}public void send_getReports(long role) throws TException{oprot_.writeMessageBegin(new TMessage("getReports", TMessageType.CALL, seqid_));getReports_args args = new getReports_args();args.role = role;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Report> recv_getReports() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getReports_result result = new getReports_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");}public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, TException{send_authenticateCatalogUser(username, password, role);return recv_authenticateCatalogUser();}public void send_authenticateCatalogUser(String username, String password, long role) throws TException{oprot_.writeMessageBegin(new TMessage("authenticateCatalogUser", TMessageType.CALL, seqid_));authenticateCatalogUser_args args = new authenticateCatalogUser_args();args.username = username;args.password = password;args.role = role;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}authenticateCatalogUser_result result = new authenticateCatalogUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");}}public static class Processor implements TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(Iface iface){iface_ = iface;processMap_.put("closeSession", new closeSession());processMap_.put("saveUserEmailForSending", new saveUserEmailForSending());processMap_.put("getEmailsToBeSent", new getEmailsToBeSent());processMap_.put("markEmailAsSent", new markEmailAsSent());processMap_.put("sendMail", new sendMail());processMap_.put("sendText", new sendText());processMap_.put("addMessage", new addMessage());processMap_.put("updateMessage", new updateMessage());processMap_.put("getMessage", new getMessage());processMap_.put("getSubstitutedMessage", new getSubstitutedMessage());processMap_.put("addUser", new addUser());processMap_.put("deleteUser", new deleteUser());processMap_.put("authenticateDashboardUser", new authenticateDashboardUser());processMap_.put("updatePassword", new updatePassword());processMap_.put("authenticateLogisticsUser", new authenticateLogisticsUser());processMap_.put("authenticateStatisticsUser", new authenticateStatisticsUser());processMap_.put("authenticateReportUser", new authenticateReportUser());processMap_.put("getReports", new getReports());processMap_.put("authenticateCatalogUser", new authenticateCatalogUser());}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 closeSession implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{closeSession_args args = new closeSession_args();args.read(iprot);iprot.readMessageEnd();closeSession_result result = new closeSession_result();iface_.closeSession();oprot.writeMessageBegin(new TMessage("closeSession", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class saveUserEmailForSending implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{saveUserEmailForSending_args args = new saveUserEmailForSending_args();args.read(iprot);iprot.readMessageEnd();saveUserEmailForSending_result result = new saveUserEmailForSending_result();try {iface_.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing saveUserEmailForSending", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing saveUserEmailForSending");oprot.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getEmailsToBeSent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getEmailsToBeSent_args args = new getEmailsToBeSent_args();args.read(iprot);iprot.readMessageEnd();getEmailsToBeSent_result result = new getEmailsToBeSent_result();try {result.success = iface_.getEmailsToBeSent(args.emailType);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing getEmailsToBeSent", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getEmailsToBeSent");oprot.writeMessageBegin(new TMessage("getEmailsToBeSent", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getEmailsToBeSent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class markEmailAsSent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{markEmailAsSent_args args = new markEmailAsSent_args();args.read(iprot);iprot.readMessageEnd();markEmailAsSent_result result = new markEmailAsSent_result();try {iface_.markEmailAsSent(args.emailId);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing markEmailAsSent", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing markEmailAsSent");oprot.writeMessageBegin(new TMessage("markEmailAsSent", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("markEmailAsSent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class sendMail implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{sendMail_args args = new sendMail_args();args.read(iprot);iprot.readMessageEnd();sendMail_result result = new sendMail_result();try {iface_.sendMail(args.mail);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing sendMail", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendMail");oprot.writeMessageBegin(new TMessage("sendMail", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("sendMail", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class sendText implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{sendText_args args = new sendText_args();args.read(iprot);iprot.readMessageEnd();sendText_result result = new sendText_result();try {iface_.sendText(args.message);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing sendText", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendText");oprot.writeMessageBegin(new TMessage("sendText", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("sendText", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class addMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{addMessage_args args = new addMessage_args();args.read(iprot);iprot.readMessageEnd();addMessage_result result = new addMessage_result();try {iface_.addMessage(args.message);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing addMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addMessage");oprot.writeMessageBegin(new TMessage("addMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("addMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updateMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updateMessage_args args = new updateMessage_args();args.read(iprot);iprot.readMessageEnd();updateMessage_result result = new updateMessage_result();try {iface_.updateMessage(args.id, args.message);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing updateMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateMessage");oprot.writeMessageBegin(new TMessage("updateMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("updateMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getMessage_args args = new getMessage_args();args.read(iprot);iprot.readMessageEnd();getMessage_result result = new getMessage_result();try {result.success = iface_.getMessage(args.id);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing getMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMessage");oprot.writeMessageBegin(new TMessage("getMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getSubstitutedMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getSubstitutedMessage_args args = new getSubstitutedMessage_args();args.read(iprot);iprot.readMessageEnd();getSubstitutedMessage_result result = new getSubstitutedMessage_result();try {result.success = iface_.getSubstitutedMessage(args.id, args.params);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing getSubstitutedMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getSubstitutedMessage");oprot.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class addUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{addUser_args args = new addUser_args();args.read(iprot);iprot.readMessageEnd();addUser_result result = new addUser_result();try {result.success = iface_.addUser(args.username, args.password, args.warehouseId);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing addUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addUser");oprot.writeMessageBegin(new TMessage("addUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("addUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class deleteUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{deleteUser_args args = new deleteUser_args();args.read(iprot);iprot.readMessageEnd();deleteUser_result result = new deleteUser_result();try {result.success = iface_.deleteUser(args.username);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing deleteUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteUser");oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class authenticateDashboardUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{authenticateDashboardUser_args args = new authenticateDashboardUser_args();args.read(iprot);iprot.readMessageEnd();authenticateDashboardUser_result result = new authenticateDashboardUser_result();try {result.success = iface_.authenticateDashboardUser(args.username, args.password);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing authenticateDashboardUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateDashboardUser");oprot.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updatePassword implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updatePassword_args args = new updatePassword_args();args.read(iprot);iprot.readMessageEnd();updatePassword_result result = new updatePassword_result();try {result.success = iface_.updatePassword(args.username, args.oldPassword, args.newPassword);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing updatePassword", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updatePassword");oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class authenticateLogisticsUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();args.read(iprot);iprot.readMessageEnd();authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();try {result.success = iface_.authenticateLogisticsUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;} catch (Throwable th) {LOGGER.error("Internal error processing authenticateLogisticsUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateLogisticsUser");oprot.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class authenticateStatisticsUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();args.read(iprot);iprot.readMessageEnd();authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();try {result.success = iface_.authenticateStatisticsUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;} catch (Throwable th) {LOGGER.error("Internal error processing authenticateStatisticsUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateStatisticsUser");oprot.writeMessageBegin(new TMessage("authenticateStatisticsUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("authenticateStatisticsUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class authenticateReportUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{authenticateReportUser_args args = new authenticateReportUser_args();args.read(iprot);iprot.readMessageEnd();authenticateReportUser_result result = new authenticateReportUser_result();try {result.success = iface_.authenticateReportUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;} catch (Throwable th) {LOGGER.error("Internal error processing authenticateReportUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateReportUser");oprot.writeMessageBegin(new TMessage("authenticateReportUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("authenticateReportUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getReports implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getReports_args args = new getReports_args();args.read(iprot);iprot.readMessageEnd();getReports_result result = new getReports_result();result.success = iface_.getReports(args.role);oprot.writeMessageBegin(new TMessage("getReports", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class authenticateCatalogUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{authenticateCatalogUser_args args = new authenticateCatalogUser_args();args.read(iprot);iprot.readMessageEnd();authenticateCatalogUser_result result = new authenticateCatalogUser_result();try {result.success = iface_.authenticateCatalogUser(args.username, args.password, args.role);} catch (HelperServiceException hse) {result.hse = hse;} catch (Throwable th) {LOGGER.error("Internal error processing authenticateCatalogUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateCatalogUser");oprot.writeMessageBegin(new TMessage("authenticateCatalogUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("authenticateCatalogUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}}public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args> {private static final TStruct STRUCT_DESC = new TStruct("closeSession_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(closeSession_args.class, metaDataMap);}public closeSession_args() {}/*** Performs a deep copy on <i>other</i>.*/public closeSession_args(closeSession_args other) {}public closeSession_args deepCopy() {return new closeSession_args(this);}@Deprecatedpublic closeSession_args clone() {return new closeSession_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 closeSession_args)return this.equals((closeSession_args)that);return false;}public boolean equals(closeSession_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(closeSession_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;closeSession_args typedOther = (closeSession_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("closeSession_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class closeSession_result implements TBase<closeSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_result> {private static final TStruct STRUCT_DESC = new TStruct("closeSession_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(closeSession_result.class, metaDataMap);}public closeSession_result() {}/*** Performs a deep copy on <i>other</i>.*/public closeSession_result(closeSession_result other) {}public closeSession_result deepCopy() {return new closeSession_result(this);}@Deprecatedpublic closeSession_result clone() {return new closeSession_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 closeSession_result)return this.equals((closeSession_result)that);return false;}public boolean equals(closeSession_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(closeSession_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;closeSession_result typedOther = (closeSession_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("closeSession_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class saveUserEmailForSending_args implements TBase<saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable, Comparable<saveUserEmailForSending_args> {private static final TStruct STRUCT_DESC = new TStruct("saveUserEmailForSending_args");private static final TField EMAIL_TO_FIELD_DESC = new TField("emailTo", TType.STRING, (short)1);private static final TField EMAIL_FROM_FIELD_DESC = new TField("emailFrom", TType.STRING, (short)2);private static final TField SUBJECT_FIELD_DESC = new TField("subject", TType.STRING, (short)3);private static final TField BODY_FIELD_DESC = new TField("body", TType.STRING, (short)4);private static final TField SOURCE_FIELD_DESC = new TField("source", TType.STRING, (short)5);private static final TField EMAIL_TYPE_FIELD_DESC = new TField("emailType", TType.STRING, (short)6);private String emailTo;private String emailFrom;private String subject;private String body;private String source;private String emailType;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {EMAIL_TO((short)1, "emailTo"),EMAIL_FROM((short)2, "emailFrom"),SUBJECT((short)3, "subject"),BODY((short)4, "body"),SOURCE((short)5, "source"),EMAIL_TYPE((short)6, "emailType");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.EMAIL_TO, new FieldMetaData("emailTo", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.EMAIL_FROM, new FieldMetaData("emailFrom", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.SUBJECT, new FieldMetaData("subject", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.BODY, new FieldMetaData("body", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.SOURCE, new FieldMetaData("source", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.EMAIL_TYPE, new FieldMetaData("emailType", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);}public saveUserEmailForSending_args() {}public saveUserEmailForSending_args(String emailTo,String emailFrom,String subject,String body,String source,String emailType){this();this.emailTo = emailTo;this.emailFrom = emailFrom;this.subject = subject;this.body = body;this.source = source;this.emailType = emailType;}/*** Performs a deep copy on <i>other</i>.*/public saveUserEmailForSending_args(saveUserEmailForSending_args other) {if (other.isSetEmailTo()) {this.emailTo = other.emailTo;}if (other.isSetEmailFrom()) {this.emailFrom = other.emailFrom;}if (other.isSetSubject()) {this.subject = other.subject;}if (other.isSetBody()) {this.body = other.body;}if (other.isSetSource()) {this.source = other.source;}if (other.isSetEmailType()) {this.emailType = other.emailType;}}public saveUserEmailForSending_args deepCopy() {return new saveUserEmailForSending_args(this);}@Deprecatedpublic saveUserEmailForSending_args clone() {return new saveUserEmailForSending_args(this);}public String getEmailTo() {return this.emailTo;}public saveUserEmailForSending_args setEmailTo(String emailTo) {this.emailTo = emailTo;return this;}public void unsetEmailTo() {this.emailTo = null;}/** Returns true if field emailTo is set (has been asigned a value) and false otherwise */public boolean isSetEmailTo() {return this.emailTo != null;}public void setEmailToIsSet(boolean value) {if (!value) {this.emailTo = null;}}public String getEmailFrom() {return this.emailFrom;}public saveUserEmailForSending_args setEmailFrom(String emailFrom) {this.emailFrom = emailFrom;return this;}public void unsetEmailFrom() {this.emailFrom = null;}/** Returns true if field emailFrom is set (has been asigned a value) and false otherwise */public boolean isSetEmailFrom() {return this.emailFrom != null;}public void setEmailFromIsSet(boolean value) {if (!value) {this.emailFrom = null;}}public String getSubject() {return this.subject;}public saveUserEmailForSending_args setSubject(String subject) {this.subject = subject;return this;}public void unsetSubject() {this.subject = null;}/** Returns true if field subject is set (has been asigned a value) and false otherwise */public boolean isSetSubject() {return this.subject != null;}public void setSubjectIsSet(boolean value) {if (!value) {this.subject = null;}}public String getBody() {return this.body;}public saveUserEmailForSending_args setBody(String body) {this.body = body;return this;}public void unsetBody() {this.body = null;}/** Returns true if field body is set (has been asigned a value) and false otherwise */public boolean isSetBody() {return this.body != null;}public void setBodyIsSet(boolean value) {if (!value) {this.body = null;}}public String getSource() {return this.source;}public saveUserEmailForSending_args setSource(String source) {this.source = source;return this;}public void unsetSource() {this.source = null;}/** Returns true if field source is set (has been asigned a value) and false otherwise */public boolean isSetSource() {return this.source != null;}public void setSourceIsSet(boolean value) {if (!value) {this.source = null;}}public String getEmailType() {return this.emailType;}public saveUserEmailForSending_args setEmailType(String emailType) {this.emailType = emailType;return this;}public void unsetEmailType() {this.emailType = null;}/** Returns true if field emailType is set (has been asigned a value) and false otherwise */public boolean isSetEmailType() {return this.emailType != null;}public void setEmailTypeIsSet(boolean value) {if (!value) {this.emailType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EMAIL_TO:if (value == null) {unsetEmailTo();} else {setEmailTo((String)value);}break;case EMAIL_FROM:if (value == null) {unsetEmailFrom();} else {setEmailFrom((String)value);}break;case SUBJECT:if (value == null) {unsetSubject();} else {setSubject((String)value);}break;case BODY:if (value == null) {unsetBody();} else {setBody((String)value);}break;case SOURCE:if (value == null) {unsetSource();} else {setSource((String)value);}break;case EMAIL_TYPE:if (value == null) {unsetEmailType();} else {setEmailType((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case EMAIL_TO:return getEmailTo();case EMAIL_FROM:return getEmailFrom();case SUBJECT:return getSubject();case BODY:return getBody();case SOURCE:return getSource();case EMAIL_TYPE:return getEmailType();}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 EMAIL_TO:return isSetEmailTo();case EMAIL_FROM:return isSetEmailFrom();case SUBJECT:return isSetSubject();case BODY:return isSetBody();case SOURCE:return isSetSource();case EMAIL_TYPE:return isSetEmailType();}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 saveUserEmailForSending_args)return this.equals((saveUserEmailForSending_args)that);return false;}public boolean equals(saveUserEmailForSending_args that) {if (that == null)return false;boolean this_present_emailTo = true && this.isSetEmailTo();boolean that_present_emailTo = true && that.isSetEmailTo();if (this_present_emailTo || that_present_emailTo) {if (!(this_present_emailTo && that_present_emailTo))return false;if (!this.emailTo.equals(that.emailTo))return false;}boolean this_present_emailFrom = true && this.isSetEmailFrom();boolean that_present_emailFrom = true && that.isSetEmailFrom();if (this_present_emailFrom || that_present_emailFrom) {if (!(this_present_emailFrom && that_present_emailFrom))return false;if (!this.emailFrom.equals(that.emailFrom))return false;}boolean this_present_subject = true && this.isSetSubject();boolean that_present_subject = true && that.isSetSubject();if (this_present_subject || that_present_subject) {if (!(this_present_subject && that_present_subject))return false;if (!this.subject.equals(that.subject))return false;}boolean this_present_body = true && this.isSetBody();boolean that_present_body = true && that.isSetBody();if (this_present_body || that_present_body) {if (!(this_present_body && that_present_body))return false;if (!this.body.equals(that.body))return false;}boolean this_present_source = true && this.isSetSource();boolean that_present_source = true && that.isSetSource();if (this_present_source || that_present_source) {if (!(this_present_source && that_present_source))return false;if (!this.source.equals(that.source))return false;}boolean this_present_emailType = true && this.isSetEmailType();boolean that_present_emailType = true && that.isSetEmailType();if (this_present_emailType || that_present_emailType) {if (!(this_present_emailType && that_present_emailType))return false;if (!this.emailType.equals(that.emailType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveUserEmailForSending_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(isSetEmailTo());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(emailTo, typedOther.emailTo);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(isSetEmailFrom());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(emailFrom, typedOther.emailFrom);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSubject()).compareTo(isSetSubject());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(subject, typedOther.subject);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetBody()).compareTo(isSetBody());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(body, typedOther.body);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSource()).compareTo(isSetSource());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(source, typedOther.source);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(isSetEmailType());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(emailType, typedOther.emailType);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 EMAIL_TO:if (field.type == TType.STRING) {this.emailTo = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case EMAIL_FROM:if (field.type == TType.STRING) {this.emailFrom = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case SUBJECT:if (field.type == TType.STRING) {this.subject = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case BODY:if (field.type == TType.STRING) {this.body = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case SOURCE:if (field.type == TType.STRING) {this.source = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case EMAIL_TYPE:if (field.type == TType.STRING) {this.emailType = 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.emailTo != null) {oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);oprot.writeString(this.emailTo);oprot.writeFieldEnd();}if (this.emailFrom != null) {oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);oprot.writeString(this.emailFrom);oprot.writeFieldEnd();}if (this.subject != null) {oprot.writeFieldBegin(SUBJECT_FIELD_DESC);oprot.writeString(this.subject);oprot.writeFieldEnd();}if (this.body != null) {oprot.writeFieldBegin(BODY_FIELD_DESC);oprot.writeString(this.body);oprot.writeFieldEnd();}if (this.source != null) {oprot.writeFieldBegin(SOURCE_FIELD_DESC);oprot.writeString(this.source);oprot.writeFieldEnd();}if (this.emailType != null) {oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);oprot.writeString(this.emailType);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");boolean first = true;sb.append("emailTo:");if (this.emailTo == null) {sb.append("null");} else {sb.append(this.emailTo);}first = false;if (!first) sb.append(", ");sb.append("emailFrom:");if (this.emailFrom == null) {sb.append("null");} else {sb.append(this.emailFrom);}first = false;if (!first) sb.append(", ");sb.append("subject:");if (this.subject == null) {sb.append("null");} else {sb.append(this.subject);}first = false;if (!first) sb.append(", ");sb.append("body:");if (this.body == null) {sb.append("null");} else {sb.append(this.body);}first = false;if (!first) sb.append(", ");sb.append("source:");if (this.source == null) {sb.append("null");} else {sb.append(this.source);}first = false;if (!first) sb.append(", ");sb.append("emailType:");if (this.emailType == null) {sb.append("null");} else {sb.append(this.emailType);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class saveUserEmailForSending_result implements TBase<saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable, Comparable<saveUserEmailForSending_result> {private static final TStruct STRUCT_DESC = new TStruct("saveUserEmailForSending_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");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.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);}public saveUserEmailForSending_result() {}public saveUserEmailForSending_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public saveUserEmailForSending_result(saveUserEmailForSending_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public saveUserEmailForSending_result deepCopy() {return new saveUserEmailForSending_result(this);}@Deprecatedpublic saveUserEmailForSending_result clone() {return new saveUserEmailForSending_result(this);}public HelperServiceException getSe() {return this.se;}public saveUserEmailForSending_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}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 SE:return isSetSe();}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 saveUserEmailForSending_result)return this.equals((saveUserEmailForSending_result)that);return false;}public boolean equals(saveUserEmailForSending_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveUserEmailForSending_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getEmailsToBeSent_args implements TBase<getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getEmailsToBeSent_args> {private static final TStruct STRUCT_DESC = new TStruct("getEmailsToBeSent_args");private static final TField EMAIL_TYPE_FIELD_DESC = new TField("emailType", TType.STRING, (short)1);private String emailType;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {EMAIL_TYPE((short)1, "emailType");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.EMAIL_TYPE, new FieldMetaData("emailType", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);}public getEmailsToBeSent_args() {}public getEmailsToBeSent_args(String emailType){this();this.emailType = emailType;}/*** Performs a deep copy on <i>other</i>.*/public getEmailsToBeSent_args(getEmailsToBeSent_args other) {if (other.isSetEmailType()) {this.emailType = other.emailType;}}public getEmailsToBeSent_args deepCopy() {return new getEmailsToBeSent_args(this);}@Deprecatedpublic getEmailsToBeSent_args clone() {return new getEmailsToBeSent_args(this);}public String getEmailType() {return this.emailType;}public getEmailsToBeSent_args setEmailType(String emailType) {this.emailType = emailType;return this;}public void unsetEmailType() {this.emailType = null;}/** Returns true if field emailType is set (has been asigned a value) and false otherwise */public boolean isSetEmailType() {return this.emailType != null;}public void setEmailTypeIsSet(boolean value) {if (!value) {this.emailType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EMAIL_TYPE:if (value == null) {unsetEmailType();} else {setEmailType((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case EMAIL_TYPE:return getEmailType();}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 EMAIL_TYPE:return isSetEmailType();}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 getEmailsToBeSent_args)return this.equals((getEmailsToBeSent_args)that);return false;}public boolean equals(getEmailsToBeSent_args that) {if (that == null)return false;boolean this_present_emailType = true && this.isSetEmailType();boolean that_present_emailType = true && that.isSetEmailType();if (this_present_emailType || that_present_emailType) {if (!(this_present_emailType && that_present_emailType))return false;if (!this.emailType.equals(that.emailType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEmailsToBeSent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(isSetEmailType());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(emailType, typedOther.emailType);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 EMAIL_TYPE:if (field.type == TType.STRING) {this.emailType = 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.emailType != null) {oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);oprot.writeString(this.emailType);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");boolean first = true;sb.append("emailType:");if (this.emailType == null) {sb.append("null");} else {sb.append(this.emailType);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getEmailsToBeSent_result implements TBase<getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getEmailsToBeSent_result> {private static final TStruct STRUCT_DESC = new TStruct("getEmailsToBeSent_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private List<UserEmail> success;private HelperServiceException se;/** 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"),SE((short)1, "se");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, UserEmail.class))));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);}public getEmailsToBeSent_result() {}public getEmailsToBeSent_result(List<UserEmail> success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getEmailsToBeSent_result(getEmailsToBeSent_result other) {if (other.isSetSuccess()) {List<UserEmail> __this__success = new ArrayList<UserEmail>();for (UserEmail other_element : other.success) {__this__success.add(new UserEmail(other_element));}this.success = __this__success;}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getEmailsToBeSent_result deepCopy() {return new getEmailsToBeSent_result(this);}@Deprecatedpublic getEmailsToBeSent_result clone() {return new getEmailsToBeSent_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<UserEmail> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(UserEmail elem) {if (this.success == null) {this.success = new ArrayList<UserEmail>();}this.success.add(elem);}public List<UserEmail> getSuccess() {return this.success;}public getEmailsToBeSent_result setSuccess(List<UserEmail> 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 HelperServiceException getSe() {return this.se;}public getEmailsToBeSent_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<UserEmail>)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)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();case SE:return getSe();}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();case SE:return isSetSe();}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 getEmailsToBeSent_result)return this.equals((getEmailsToBeSent_result)that);return false;}public boolean equals(getEmailsToBeSent_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;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEmailsToBeSent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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<UserEmail>(_list8.size);for (int _i9 = 0; _i9 < _list8.size; ++_i9){UserEmail _elem10;_elem10 = new UserEmail();_elem10.read(iprot);this.success.add(_elem10);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (UserEmail _iter11 : this.success){_iter11.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class markEmailAsSent_args implements TBase<markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable, Comparable<markEmailAsSent_args> {private static final TStruct STRUCT_DESC = new TStruct("markEmailAsSent_args");private static final TField EMAIL_ID_FIELD_DESC = new TField("emailId", TType.I64, (short)1);private long emailId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {EMAIL_ID((short)1, "emailId");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 __EMAILID_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.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);}public markEmailAsSent_args() {}public markEmailAsSent_args(long emailId){this();this.emailId = emailId;setEmailIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markEmailAsSent_args(markEmailAsSent_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.emailId = other.emailId;}public markEmailAsSent_args deepCopy() {return new markEmailAsSent_args(this);}@Deprecatedpublic markEmailAsSent_args clone() {return new markEmailAsSent_args(this);}public long getEmailId() {return this.emailId;}public markEmailAsSent_args setEmailId(long emailId) {this.emailId = emailId;setEmailIdIsSet(true);return this;}public void unsetEmailId() {__isset_bit_vector.clear(__EMAILID_ISSET_ID);}/** Returns true if field emailId is set (has been asigned a value) and false otherwise */public boolean isSetEmailId() {return __isset_bit_vector.get(__EMAILID_ISSET_ID);}public void setEmailIdIsSet(boolean value) {__isset_bit_vector.set(__EMAILID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case EMAIL_ID:if (value == null) {unsetEmailId();} else {setEmailId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case EMAIL_ID:return new Long(getEmailId());}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 EMAIL_ID:return isSetEmailId();}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 markEmailAsSent_args)return this.equals((markEmailAsSent_args)that);return false;}public boolean equals(markEmailAsSent_args that) {if (that == null)return false;boolean this_present_emailId = true;boolean that_present_emailId = true;if (this_present_emailId || that_present_emailId) {if (!(this_present_emailId && that_present_emailId))return false;if (this.emailId != that.emailId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markEmailAsSent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markEmailAsSent_args typedOther = (markEmailAsSent_args)other;lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(isSetEmailId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(emailId, typedOther.emailId);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 EMAIL_ID:if (field.type == TType.I64) {this.emailId = iprot.readI64();setEmailIdIsSet(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(EMAIL_ID_FIELD_DESC);oprot.writeI64(this.emailId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markEmailAsSent_args(");boolean first = true;sb.append("emailId:");sb.append(this.emailId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class markEmailAsSent_result implements TBase<markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable, Comparable<markEmailAsSent_result> {private static final TStruct STRUCT_DESC = new TStruct("markEmailAsSent_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");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.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);}public markEmailAsSent_result() {}public markEmailAsSent_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public markEmailAsSent_result(markEmailAsSent_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public markEmailAsSent_result deepCopy() {return new markEmailAsSent_result(this);}@Deprecatedpublic markEmailAsSent_result clone() {return new markEmailAsSent_result(this);}public HelperServiceException getSe() {return this.se;}public markEmailAsSent_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}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 SE:return isSetSe();}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 markEmailAsSent_result)return this.equals((markEmailAsSent_result)that);return false;}public boolean equals(markEmailAsSent_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markEmailAsSent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markEmailAsSent_result typedOther = (markEmailAsSent_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markEmailAsSent_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendMail_args implements TBase<sendMail_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_args> {private static final TStruct STRUCT_DESC = new TStruct("sendMail_args");private static final TField MAIL_FIELD_DESC = new TField("mail", TType.STRUCT, (short)1);private Mail mail;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {MAIL((short)1, "mail");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.MAIL, new FieldMetaData("mail", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Mail.class)));}});static {FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);}public sendMail_args() {}public sendMail_args(Mail mail){this();this.mail = mail;}/*** Performs a deep copy on <i>other</i>.*/public sendMail_args(sendMail_args other) {if (other.isSetMail()) {this.mail = new Mail(other.mail);}}public sendMail_args deepCopy() {return new sendMail_args(this);}@Deprecatedpublic sendMail_args clone() {return new sendMail_args(this);}public Mail getMail() {return this.mail;}public sendMail_args setMail(Mail mail) {this.mail = mail;return this;}public void unsetMail() {this.mail = null;}/** Returns true if field mail is set (has been asigned a value) and false otherwise */public boolean isSetMail() {return this.mail != null;}public void setMailIsSet(boolean value) {if (!value) {this.mail = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MAIL:if (value == null) {unsetMail();} else {setMail((Mail)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case MAIL:return getMail();}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 MAIL:return isSetMail();}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 sendMail_args)return this.equals((sendMail_args)that);return false;}public boolean equals(sendMail_args that) {if (that == null)return false;boolean this_present_mail = true && this.isSetMail();boolean that_present_mail = true && that.isSetMail();if (this_present_mail || that_present_mail) {if (!(this_present_mail && that_present_mail))return false;if (!this.mail.equals(that.mail))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendMail_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendMail_args typedOther = (sendMail_args)other;lastComparison = Boolean.valueOf(isSetMail()).compareTo(isSetMail());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(mail, typedOther.mail);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 MAIL:if (field.type == TType.STRUCT) {this.mail = new Mail();this.mail.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.mail != null) {oprot.writeFieldBegin(MAIL_FIELD_DESC);this.mail.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendMail_args(");boolean first = true;sb.append("mail:");if (this.mail == null) {sb.append("null");} else {sb.append(this.mail);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendMail_result implements TBase<sendMail_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_result> {private static final TStruct STRUCT_DESC = new TStruct("sendMail_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");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.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);}public sendMail_result() {}public sendMail_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public sendMail_result(sendMail_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public sendMail_result deepCopy() {return new sendMail_result(this);}@Deprecatedpublic sendMail_result clone() {return new sendMail_result(this);}public HelperServiceException getSe() {return this.se;}public sendMail_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}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 SE:return isSetSe();}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 sendMail_result)return this.equals((sendMail_result)that);return false;}public boolean equals(sendMail_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendMail_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendMail_result typedOther = (sendMail_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendMail_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendText_args implements TBase<sendText_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendText_args> {private static final TStruct STRUCT_DESC = new TStruct("sendText_args");private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRUCT, (short)1);private TextMessage message;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {MESSAGE((short)1, "message");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.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, TextMessage.class)));}});static {FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);}public sendText_args() {}public sendText_args(TextMessage message){this();this.message = message;}/*** Performs a deep copy on <i>other</i>.*/public sendText_args(sendText_args other) {if (other.isSetMessage()) {this.message = new TextMessage(other.message);}}public sendText_args deepCopy() {return new sendText_args(this);}@Deprecatedpublic sendText_args clone() {return new sendText_args(this);}public TextMessage getMessage() {return this.message;}public sendText_args setMessage(TextMessage message) {this.message = message;return this;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been asigned a value) and false otherwise */public boolean isSetMessage() {return this.message != null;}public void setMessageIsSet(boolean value) {if (!value) {this.message = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MESSAGE:if (value == null) {unsetMessage();} else {setMessage((TextMessage)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case MESSAGE:return getMessage();}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 MESSAGE:return isSetMessage();}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 sendText_args)return this.equals((sendText_args)that);return false;}public boolean equals(sendText_args that) {if (that == null)return false;boolean this_present_message = true && this.isSetMessage();boolean that_present_message = true && that.isSetMessage();if (this_present_message || that_present_message) {if (!(this_present_message && that_present_message))return false;if (!this.message.equals(that.message))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendText_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendText_args typedOther = (sendText_args)other;lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(message, typedOther.message);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 MESSAGE:if (field.type == TType.STRUCT) {this.message = new TextMessage();this.message.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.message != null) {oprot.writeFieldBegin(MESSAGE_FIELD_DESC);this.message.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendText_args(");boolean first = true;sb.append("message:");if (this.message == null) {sb.append("null");} else {sb.append(this.message);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendText_result implements TBase<sendText_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendText_result> {private static final TStruct STRUCT_DESC = new TStruct("sendText_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");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.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);}public sendText_result() {}public sendText_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public sendText_result(sendText_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public sendText_result deepCopy() {return new sendText_result(this);}@Deprecatedpublic sendText_result clone() {return new sendText_result(this);}public HelperServiceException getSe() {return this.se;}public sendText_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}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 SE:return isSetSe();}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 sendText_result)return this.equals((sendText_result)that);return false;}public boolean equals(sendText_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendText_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendText_result typedOther = (sendText_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendText_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addMessage_args implements TBase<addMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<addMessage_args> {private static final TStruct STRUCT_DESC = new TStruct("addMessage_args");private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRUCT, (short)1);private Message message;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {MESSAGE((short)1, "message");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.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Message.class)));}});static {FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);}public addMessage_args() {}public addMessage_args(Message message){this();this.message = message;}/*** Performs a deep copy on <i>other</i>.*/public addMessage_args(addMessage_args other) {if (other.isSetMessage()) {this.message = new Message(other.message);}}public addMessage_args deepCopy() {return new addMessage_args(this);}@Deprecatedpublic addMessage_args clone() {return new addMessage_args(this);}public Message getMessage() {return this.message;}public addMessage_args setMessage(Message message) {this.message = message;return this;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been asigned a value) and false otherwise */public boolean isSetMessage() {return this.message != null;}public void setMessageIsSet(boolean value) {if (!value) {this.message = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MESSAGE:if (value == null) {unsetMessage();} else {setMessage((Message)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case MESSAGE:return getMessage();}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 MESSAGE:return isSetMessage();}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 addMessage_args)return this.equals((addMessage_args)that);return false;}public boolean equals(addMessage_args that) {if (that == null)return false;boolean this_present_message = true && this.isSetMessage();boolean that_present_message = true && that.isSetMessage();if (this_present_message || that_present_message) {if (!(this_present_message && that_present_message))return false;if (!this.message.equals(that.message))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addMessage_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addMessage_args typedOther = (addMessage_args)other;lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(message, typedOther.message);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 MESSAGE:if (field.type == TType.STRUCT) {this.message = new Message();this.message.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.message != null) {oprot.writeFieldBegin(MESSAGE_FIELD_DESC);this.message.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addMessage_args(");boolean first = true;sb.append("message:");if (this.message == null) {sb.append("null");} else {sb.append(this.message);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addMessage_result implements TBase<addMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<addMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("addMessage_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");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.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);}public addMessage_result() {}public addMessage_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public addMessage_result(addMessage_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public addMessage_result deepCopy() {return new addMessage_result(this);}@Deprecatedpublic addMessage_result clone() {return new addMessage_result(this);}public HelperServiceException getSe() {return this.se;}public addMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}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 SE:return isSetSe();}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 addMessage_result)return this.equals((addMessage_result)that);return false;}public boolean equals(addMessage_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addMessage_result typedOther = (addMessage_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addMessage_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateMessage_args implements TBase<updateMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateMessage_args> {private static final TStruct STRUCT_DESC = new TStruct("updateMessage_args");private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)2);private long id;private String message;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ID((short)1, "id"),MESSAGE((short)2, "message");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 __ID_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.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);}public updateMessage_args() {}public updateMessage_args(long id,String message){this();this.id = id;setIdIsSet(true);this.message = message;}/*** Performs a deep copy on <i>other</i>.*/public updateMessage_args(updateMessage_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;if (other.isSetMessage()) {this.message = other.message;}}public updateMessage_args deepCopy() {return new updateMessage_args(this);}@Deprecatedpublic updateMessage_args clone() {return new updateMessage_args(this);}public long getId() {return this.id;}public updateMessage_args setId(long id) {this.id = id;setIdIsSet(true);return this;}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been asigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public String getMessage() {return this.message;}public updateMessage_args setMessage(String message) {this.message = message;return this;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been asigned a value) and false otherwise */public boolean isSetMessage() {return this.message != null;}public void setMessageIsSet(boolean value) {if (!value) {this.message = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case MESSAGE:if (value == null) {unsetMessage();} else {setMessage((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ID:return new Long(getId());case MESSAGE:return getMessage();}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 ID:return isSetId();case MESSAGE:return isSetMessage();}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 updateMessage_args)return this.equals((updateMessage_args)that);return false;}public boolean equals(updateMessage_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_message = true && this.isSetMessage();boolean that_present_message = true && that.isSetMessage();if (this_present_message || that_present_message) {if (!(this_present_message && that_present_message))return false;if (!this.message.equals(that.message))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMessage_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMessage_args typedOther = (updateMessage_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(id, typedOther.id);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(message, typedOther.message);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 ID:if (field.type == TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case MESSAGE:if (field.type == TType.STRING) {this.message = 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);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();if (this.message != null) {oprot.writeFieldBegin(MESSAGE_FIELD_DESC);oprot.writeString(this.message);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMessage_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("message:");if (this.message == null) {sb.append("null");} else {sb.append(this.message);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateMessage_result implements TBase<updateMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("updateMessage_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");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.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);}public updateMessage_result() {}public updateMessage_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public updateMessage_result(updateMessage_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public updateMessage_result deepCopy() {return new updateMessage_result(this);}@Deprecatedpublic updateMessage_result clone() {return new updateMessage_result(this);}public HelperServiceException getSe() {return this.se;}public updateMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}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 SE:return isSetSe();}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 updateMessage_result)return this.equals((updateMessage_result)that);return false;}public boolean equals(updateMessage_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMessage_result typedOther = (updateMessage_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMessage_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getMessage_args implements TBase<getMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMessage_args> {private static final TStruct STRUCT_DESC = new TStruct("getMessage_args");private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);private long id;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ID((short)1, "id");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 __ID_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.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);}public getMessage_args() {}public getMessage_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getMessage_args(getMessage_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getMessage_args deepCopy() {return new getMessage_args(this);}@Deprecatedpublic getMessage_args clone() {return new getMessage_args(this);}public long getId() {return this.id;}public getMessage_args setId(long id) {this.id = id;setIdIsSet(true);return this;}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been asigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ID:return new Long(getId());}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 ID:return isSetId();}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 getMessage_args)return this.equals((getMessage_args)that);return false;}public boolean equals(getMessage_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMessage_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMessage_args typedOther = (getMessage_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(id, typedOther.id);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 ID:if (field.type == TType.I64) {this.id = iprot.readI64();setIdIsSet(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(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMessage_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getMessage_result implements TBase<getMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("getMessage_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private Message success;private HelperServiceException se;/** 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"),SE((short)1, "se");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, Message.class)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);}public getMessage_result() {}public getMessage_result(Message success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getMessage_result(getMessage_result other) {if (other.isSetSuccess()) {this.success = new Message(other.success);}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getMessage_result deepCopy() {return new getMessage_result(this);}@Deprecatedpublic getMessage_result clone() {return new getMessage_result(this);}public Message getSuccess() {return this.success;}public getMessage_result setSuccess(Message 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 HelperServiceException getSe() {return this.se;}public getMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Message)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)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();case SE:return getSe();}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();case SE:return isSetSe();}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 getMessage_result)return this.equals((getMessage_result)that);return false;}public boolean equals(getMessage_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;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMessage_result typedOther = (getMessage_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 Message();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMessage_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getSubstitutedMessage_args implements TBase<getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getSubstitutedMessage_args");private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);private static final TField PARAMS_FIELD_DESC = new TField("params", TType.MAP, (short)2);private long id;private Map<String,String> params;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ID((short)1, "id"),PARAMS((short)2, "params");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 __ID_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.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.PARAMS, new FieldMetaData("params", TFieldRequirementType.DEFAULT,new MapMetaData(TType.MAP,new FieldValueMetaData(TType.STRING),new FieldValueMetaData(TType.STRING))));}});static {FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);}public getSubstitutedMessage_args() {}public getSubstitutedMessage_args(long id,Map<String,String> params){this();this.id = id;setIdIsSet(true);this.params = params;}/*** Performs a deep copy on <i>other</i>.*/public getSubstitutedMessage_args(getSubstitutedMessage_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;if (other.isSetParams()) {Map<String,String> __this__params = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.params.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__params_copy_key = other_element_key;String __this__params_copy_value = other_element_value;__this__params.put(__this__params_copy_key, __this__params_copy_value);}this.params = __this__params;}}public getSubstitutedMessage_args deepCopy() {return new getSubstitutedMessage_args(this);}@Deprecatedpublic getSubstitutedMessage_args clone() {return new getSubstitutedMessage_args(this);}public long getId() {return this.id;}public getSubstitutedMessage_args setId(long id) {this.id = id;setIdIsSet(true);return this;}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been asigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public int getParamsSize() {return (this.params == null) ? 0 : this.params.size();}public void putToParams(String key, String val) {if (this.params == null) {this.params = new HashMap<String,String>();}this.params.put(key, val);}public Map<String,String> getParams() {return this.params;}public getSubstitutedMessage_args setParams(Map<String,String> params) {this.params = params;return this;}public void unsetParams() {this.params = null;}/** Returns true if field params is set (has been asigned a value) and false otherwise */public boolean isSetParams() {return this.params != null;}public void setParamsIsSet(boolean value) {if (!value) {this.params = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case PARAMS:if (value == null) {unsetParams();} else {setParams((Map<String,String>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ID:return new Long(getId());case PARAMS:return getParams();}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 ID:return isSetId();case PARAMS:return isSetParams();}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 getSubstitutedMessage_args)return this.equals((getSubstitutedMessage_args)that);return false;}public boolean equals(getSubstitutedMessage_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_params = true && this.isSetParams();boolean that_present_params = true && that.isSetParams();if (this_present_params || that_present_params) {if (!(this_present_params && that_present_params))return false;if (!this.params.equals(that.params))return false;}return true;}@Overridepublic int hashCode() {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 ID:if (field.type == TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case PARAMS:if (field.type == TType.MAP) {{TMap _map12 = iprot.readMapBegin();this.params = new HashMap<String,String>(2*_map12.size);for (int _i13 = 0; _i13 < _map12.size; ++_i13){String _key14;String _val15;_key14 = iprot.readString();_val15 = iprot.readString();this.params.put(_key14, _val15);}iprot.readMapEnd();}} 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(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();if (this.params != null) {oprot.writeFieldBegin(PARAMS_FIELD_DESC);{oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.params.size()));for (Map.Entry<String, String> _iter16 : this.params.entrySet()){oprot.writeString(_iter16.getKey());oprot.writeString(_iter16.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("params:");if (this.params == null) {sb.append("null");} else {sb.append(this.params);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getSubstitutedMessage_result implements TBase<getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSubstitutedMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("getSubstitutedMessage_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private Message success;private HelperServiceException se;/** 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"),SE((short)1, "se");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, Message.class)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);}public getSubstitutedMessage_result() {}public getSubstitutedMessage_result(Message success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getSubstitutedMessage_result(getSubstitutedMessage_result other) {if (other.isSetSuccess()) {this.success = new Message(other.success);}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getSubstitutedMessage_result deepCopy() {return new getSubstitutedMessage_result(this);}@Deprecatedpublic getSubstitutedMessage_result clone() {return new getSubstitutedMessage_result(this);}public Message getSuccess() {return this.success;}public getSubstitutedMessage_result setSuccess(Message 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 HelperServiceException getSe() {return this.se;}public getSubstitutedMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Message)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)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();case SE:return getSe();}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();case SE:return isSetSe();}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 getSubstitutedMessage_result)return this.equals((getSubstitutedMessage_result)that);return false;}public boolean equals(getSubstitutedMessage_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;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSubstitutedMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 Message();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addUser_args implements TBase<addUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_args> {private static final TStruct STRUCT_DESC = new TStruct("addUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)3);private String username;private String password;private long warehouseId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password"),WAREHOUSE_ID((short)3, "warehouseId");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 __WAREHOUSEID_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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);}public addUser_args() {}public addUser_args(String username,String password,long warehouseId){this();this.username = username;this.password = password;this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addUser_args(addUser_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}this.warehouseId = other.warehouseId;}public addUser_args deepCopy() {return new addUser_args(this);}@Deprecatedpublic addUser_args clone() {return new addUser_args(this);}public String getUsername() {return this.username;}public addUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public addUser_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 long getWarehouseId() {return this.warehouseId;}public addUser_args setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);return this;}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();case WAREHOUSE_ID:return new Long(getWarehouseId());}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 USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();case WAREHOUSE_ID:return isSetWarehouseId();}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 addUser_args)return this.equals((addUser_args)that);return false;}public boolean equals(addUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))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;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addUser_args typedOther = (addUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);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;}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);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 USERNAME:if (field.type == TType.STRING) {this.username = 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;case WAREHOUSE_ID:if (field.type == TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(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);if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addUser_result implements TBase<addUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_result> {private static final TStruct STRUCT_DESC = new TStruct("addUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private boolean success;private HelperServiceException se;/** 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"),SE((short)1, "se");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.BOOL)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);}public addUser_result() {}public addUser_result(boolean success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public addUser_result(addUser_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public addUser_result deepCopy() {return new addUser_result(this);}@Deprecatedpublic addUser_result clone() {return new addUser_result(this);}public boolean isSuccess() {return this.success;}public addUser_result setSuccess(boolean 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 HelperServiceException getSe() {return this.se;}public addUser_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)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 Boolean(isSuccess());case SE:return getSe();}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();case SE:return isSetSe();}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 addUser_result)return this.equals((addUser_result)that);return false;}public boolean equals(addUser_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;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addUser_result typedOther = (addUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addUser_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class deleteUser_args implements TBase<deleteUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_args> {private static final TStruct STRUCT_DESC = new TStruct("deleteUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private String username;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username");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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);}public deleteUser_args() {}public deleteUser_args(String username){this();this.username = username;}/*** Performs a deep copy on <i>other</i>.*/public deleteUser_args(deleteUser_args other) {if (other.isSetUsername()) {this.username = other.username;}}public deleteUser_args deepCopy() {return new deleteUser_args(this);}@Deprecatedpublic deleteUser_args clone() {return new deleteUser_args(this);}public String getUsername() {return this.username;}public deleteUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();}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 USERNAME:return isSetUsername();}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 deleteUser_args)return this.equals((deleteUser_args)that);return false;}public boolean equals(deleteUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteUser_args typedOther = (deleteUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);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 USERNAME:if (field.type == TType.STRING) {this.username = 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.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class deleteUser_result implements TBase<deleteUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_result> {private static final TStruct STRUCT_DESC = new TStruct("deleteUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private boolean success;private HelperServiceException se;/** 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"),SE((short)1, "se");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.BOOL)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);}public deleteUser_result() {}public deleteUser_result(boolean success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public deleteUser_result(deleteUser_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public deleteUser_result deepCopy() {return new deleteUser_result(this);}@Deprecatedpublic deleteUser_result clone() {return new deleteUser_result(this);}public boolean isSuccess() {return this.success;}public deleteUser_result setSuccess(boolean 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 HelperServiceException getSe() {return this.se;}public deleteUser_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)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 Boolean(isSuccess());case SE:return getSe();}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();case SE:return isSetSe();}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 deleteUser_result)return this.equals((deleteUser_result)that);return false;}public boolean equals(deleteUser_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;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteUser_result typedOther = (deleteUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteUser_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateDashboardUser_args implements TBase<authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateDashboardUser_args> {private static final TStruct STRUCT_DESC = new TStruct("authenticateDashboardUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String username;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);}public authenticateDashboardUser_args() {}public authenticateDashboardUser_args(String username,String password){this();this.username = username;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public authenticateDashboardUser_args(authenticateDashboardUser_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}}public authenticateDashboardUser_args deepCopy() {return new authenticateDashboardUser_args(this);}@Deprecatedpublic authenticateDashboardUser_args clone() {return new authenticateDashboardUser_args(this);}public String getUsername() {return this.username;}public authenticateDashboardUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public authenticateDashboardUser_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 USERNAME:if (value == null) {unsetUsername();} else {setUsername((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 USERNAME:return getUsername();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 USERNAME:return isSetUsername();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 authenticateDashboardUser_args)return this.equals((authenticateDashboardUser_args)that);return false;}public boolean equals(authenticateDashboardUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))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(authenticateDashboardUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);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 USERNAME:if (field.type == TType.STRING) {this.username = 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.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);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("authenticateDashboardUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}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 authenticateDashboardUser_result implements TBase<authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateDashboardUser_result> {private static final TStruct STRUCT_DESC = new TStruct("authenticateDashboardUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private DashboardUser success;private HelperServiceException se;/** 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"),SE((short)1, "se");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, DashboardUser.class)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);}public authenticateDashboardUser_result() {}public authenticateDashboardUser_result(DashboardUser success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public authenticateDashboardUser_result(authenticateDashboardUser_result other) {if (other.isSetSuccess()) {this.success = new DashboardUser(other.success);}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public authenticateDashboardUser_result deepCopy() {return new authenticateDashboardUser_result(this);}@Deprecatedpublic authenticateDashboardUser_result clone() {return new authenticateDashboardUser_result(this);}public DashboardUser getSuccess() {return this.success;}public authenticateDashboardUser_result setSuccess(DashboardUser 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 HelperServiceException getSe() {return this.se;}public authenticateDashboardUser_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((DashboardUser)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)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();case SE:return getSe();}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();case SE:return isSetSe();}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 authenticateDashboardUser_result)return this.equals((authenticateDashboardUser_result)that);return false;}public boolean equals(authenticateDashboardUser_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;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateDashboardUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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 DashboardUser();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePassword_args implements TBase<updatePassword_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_args> {private static final TStruct STRUCT_DESC = new TStruct("updatePassword_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField OLD_PASSWORD_FIELD_DESC = new TField("oldPassword", TType.STRING, (short)2);private static final TField NEW_PASSWORD_FIELD_DESC = new TField("newPassword", TType.STRING, (short)3);private String username;private String oldPassword;private String newPassword;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),OLD_PASSWORD((short)2, "oldPassword"),NEW_PASSWORD((short)3, "newPassword");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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.OLD_PASSWORD, new FieldMetaData("oldPassword", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.NEW_PASSWORD, new FieldMetaData("newPassword", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);}public updatePassword_args() {}public updatePassword_args(String username,String oldPassword,String newPassword){this();this.username = username;this.oldPassword = oldPassword;this.newPassword = newPassword;}/*** Performs a deep copy on <i>other</i>.*/public updatePassword_args(updatePassword_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetOldPassword()) {this.oldPassword = other.oldPassword;}if (other.isSetNewPassword()) {this.newPassword = other.newPassword;}}public updatePassword_args deepCopy() {return new updatePassword_args(this);}@Deprecatedpublic updatePassword_args clone() {return new updatePassword_args(this);}public String getUsername() {return this.username;}public updatePassword_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getOldPassword() {return this.oldPassword;}public updatePassword_args setOldPassword(String oldPassword) {this.oldPassword = oldPassword;return this;}public void unsetOldPassword() {this.oldPassword = null;}/** Returns true if field oldPassword is set (has been asigned a value) and false otherwise */public boolean isSetOldPassword() {return this.oldPassword != null;}public void setOldPasswordIsSet(boolean value) {if (!value) {this.oldPassword = null;}}public String getNewPassword() {return this.newPassword;}public updatePassword_args setNewPassword(String newPassword) {this.newPassword = newPassword;return this;}public void unsetNewPassword() {this.newPassword = null;}/** Returns true if field newPassword is set (has been asigned a value) and false otherwise */public boolean isSetNewPassword() {return this.newPassword != null;}public void setNewPasswordIsSet(boolean value) {if (!value) {this.newPassword = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case OLD_PASSWORD:if (value == null) {unsetOldPassword();} else {setOldPassword((String)value);}break;case NEW_PASSWORD:if (value == null) {unsetNewPassword();} else {setNewPassword((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case OLD_PASSWORD:return getOldPassword();case NEW_PASSWORD:return getNewPassword();}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 USERNAME:return isSetUsername();case OLD_PASSWORD:return isSetOldPassword();case NEW_PASSWORD:return isSetNewPassword();}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 updatePassword_args)return this.equals((updatePassword_args)that);return false;}public boolean equals(updatePassword_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}boolean this_present_oldPassword = true && this.isSetOldPassword();boolean that_present_oldPassword = true && that.isSetOldPassword();if (this_present_oldPassword || that_present_oldPassword) {if (!(this_present_oldPassword && that_present_oldPassword))return false;if (!this.oldPassword.equals(that.oldPassword))return false;}boolean this_present_newPassword = true && this.isSetNewPassword();boolean that_present_newPassword = true && that.isSetNewPassword();if (this_present_newPassword || that_present_newPassword) {if (!(this_present_newPassword && that_present_newPassword))return false;if (!this.newPassword.equals(that.newPassword))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePassword_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePassword_args typedOther = (updatePassword_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(isSetOldPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(oldPassword, typedOther.oldPassword);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(isSetNewPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(newPassword, typedOther.newPassword);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 USERNAME:if (field.type == TType.STRING) {this.username = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case OLD_PASSWORD:if (field.type == TType.STRING) {this.oldPassword = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case NEW_PASSWORD:if (field.type == TType.STRING) {this.newPassword = 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.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.oldPassword != null) {oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);oprot.writeString(this.oldPassword);oprot.writeFieldEnd();}if (this.newPassword != null) {oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);oprot.writeString(this.newPassword);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePassword_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("oldPassword:");if (this.oldPassword == null) {sb.append("null");} else {sb.append(this.oldPassword);}first = false;if (!first) sb.append(", ");sb.append("newPassword:");if (this.newPassword == null) {sb.append("null");} else {sb.append(this.newPassword);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePassword_result implements TBase<updatePassword_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_result> {private static final TStruct STRUCT_DESC = new TStruct("updatePassword_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private boolean success;private HelperServiceException se;/** 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"),SE((short)1, "se");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.BOOL)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);}public updatePassword_result() {}public updatePassword_result(boolean success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public updatePassword_result(updatePassword_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public updatePassword_result deepCopy() {return new updatePassword_result(this);}@Deprecatedpublic updatePassword_result clone() {return new updatePassword_result(this);}public boolean isSuccess() {return this.success;}public updatePassword_result setSuccess(boolean 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 HelperServiceException getSe() {return this.se;}public updatePassword_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)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 Boolean(isSuccess());case SE:return getSe();}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();case SE:return isSetSe();}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 updatePassword_result)return this.equals((updatePassword_result)that);return false;}public boolean equals(updatePassword_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;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePassword_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePassword_result typedOther = (updatePassword_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);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.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.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);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePassword_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateLogisticsUser_args implements TBase<authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateLogisticsUser_args> {private static final TStruct STRUCT_DESC = new TStruct("authenticateLogisticsUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String username;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);}public authenticateLogisticsUser_args() {}public authenticateLogisticsUser_args(String username,String password){this();this.username = username;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}}public authenticateLogisticsUser_args deepCopy() {return new authenticateLogisticsUser_args(this);}@Deprecatedpublic authenticateLogisticsUser_args clone() {return new authenticateLogisticsUser_args(this);}public String getUsername() {return this.username;}public authenticateLogisticsUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public authenticateLogisticsUser_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 USERNAME:if (value == null) {unsetUsername();} else {setUsername((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 USERNAME:return getUsername();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 USERNAME:return isSetUsername();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 authenticateLogisticsUser_args)return this.equals((authenticateLogisticsUser_args)that);return false;}public boolean equals(authenticateLogisticsUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))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(authenticateLogisticsUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);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 USERNAME:if (field.type == TType.STRING) {this.username = 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.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);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("authenticateLogisticsUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}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 authenticateLogisticsUser_result implements TBase<authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateLogisticsUser_result> {private static final TStruct STRUCT_DESC = new TStruct("authenticateLogisticsUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);private LogisticsUser success;private HelperServiceException hse;/** 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"),HSE((short)1, "hse");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, LogisticsUser.class)));put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);}public authenticateLogisticsUser_result() {}public authenticateLogisticsUser_result(LogisticsUser success,HelperServiceException hse){this();this.success = success;this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {if (other.isSetSuccess()) {this.success = new LogisticsUser(other.success);}if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public authenticateLogisticsUser_result deepCopy() {return new authenticateLogisticsUser_result(this);}@Deprecatedpublic authenticateLogisticsUser_result clone() {return new authenticateLogisticsUser_result(this);}public LogisticsUser getSuccess() {return this.success;}public authenticateLogisticsUser_result setSuccess(LogisticsUser 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 HelperServiceException getHse() {return this.hse;}public authenticateLogisticsUser_result setHse(HelperServiceException hse) {this.hse = hse;return this;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been asigned a value) and false otherwise */public boolean isSetHse() {return this.hse != null;}public void setHseIsSet(boolean value) {if (!value) {this.hse = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((LogisticsUser)value);}break;case HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)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();case HSE:return getHse();}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();case HSE:return isSetHse();}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 authenticateLogisticsUser_result)return this.equals((authenticateLogisticsUser_result)that);return false;}public boolean equals(authenticateLogisticsUser_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;}boolean this_present_hse = true && this.isSetHse();boolean that_present_hse = true && that.isSetHse();if (this_present_hse || that_present_hse) {if (!(this_present_hse && that_present_hse))return false;if (!this.hse.equals(that.hse))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateLogisticsUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);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 LogisticsUser();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case HSE:if (field.type == TType.STRUCT) {this.hse = new HelperServiceException();this.hse.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();} else if (this.isSetHse()) {oprot.writeFieldBegin(HSE_FIELD_DESC);this.hse.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("hse:");if (this.hse == null) {sb.append("null");} else {sb.append(this.hse);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateStatisticsUser_args implements TBase<authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateStatisticsUser_args> {private static final TStruct STRUCT_DESC = new TStruct("authenticateStatisticsUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String username;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);}public authenticateStatisticsUser_args() {}public authenticateStatisticsUser_args(String username,String password){this();this.username = username;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}}public authenticateStatisticsUser_args deepCopy() {return new authenticateStatisticsUser_args(this);}@Deprecatedpublic authenticateStatisticsUser_args clone() {return new authenticateStatisticsUser_args(this);}public String getUsername() {return this.username;}public authenticateStatisticsUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public authenticateStatisticsUser_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 USERNAME:if (value == null) {unsetUsername();} else {setUsername((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 USERNAME:return getUsername();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 USERNAME:return isSetUsername();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 authenticateStatisticsUser_args)return this.equals((authenticateStatisticsUser_args)that);return false;}public boolean equals(authenticateStatisticsUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))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(authenticateStatisticsUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);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 USERNAME:if (field.type == TType.STRING) {this.username = 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.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);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("authenticateStatisticsUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}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 authenticateStatisticsUser_result implements TBase<authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateStatisticsUser_result> {private static final TStruct STRUCT_DESC = new TStruct("authenticateStatisticsUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);private StatisticsUser success;private HelperServiceException hse;/** 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"),HSE((short)1, "hse");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, StatisticsUser.class)));put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);}public authenticateStatisticsUser_result() {}public authenticateStatisticsUser_result(StatisticsUser success,HelperServiceException hse){this();this.success = success;this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {if (other.isSetSuccess()) {this.success = new StatisticsUser(other.success);}if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public authenticateStatisticsUser_result deepCopy() {return new authenticateStatisticsUser_result(this);}@Deprecatedpublic authenticateStatisticsUser_result clone() {return new authenticateStatisticsUser_result(this);}public StatisticsUser getSuccess() {return this.success;}public authenticateStatisticsUser_result setSuccess(StatisticsUser 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 HelperServiceException getHse() {return this.hse;}public authenticateStatisticsUser_result setHse(HelperServiceException hse) {this.hse = hse;return this;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been asigned a value) and false otherwise */public boolean isSetHse() {return this.hse != null;}public void setHseIsSet(boolean value) {if (!value) {this.hse = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((StatisticsUser)value);}break;case HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)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();case HSE:return getHse();}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();case HSE:return isSetHse();}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 authenticateStatisticsUser_result)return this.equals((authenticateStatisticsUser_result)that);return false;}public boolean equals(authenticateStatisticsUser_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;}boolean this_present_hse = true && this.isSetHse();boolean that_present_hse = true && that.isSetHse();if (this_present_hse || that_present_hse) {if (!(this_present_hse && that_present_hse))return false;if (!this.hse.equals(that.hse))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateStatisticsUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);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 StatisticsUser();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case HSE:if (field.type == TType.STRUCT) {this.hse = new HelperServiceException();this.hse.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();} else if (this.isSetHse()) {oprot.writeFieldBegin(HSE_FIELD_DESC);this.hse.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("hse:");if (this.hse == null) {sb.append("null");} else {sb.append(this.hse);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateReportUser_args implements TBase<authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateReportUser_args> {private static final TStruct STRUCT_DESC = new TStruct("authenticateReportUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String username;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);}public authenticateReportUser_args() {}public authenticateReportUser_args(String username,String password){this();this.username = username;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public authenticateReportUser_args(authenticateReportUser_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}}public authenticateReportUser_args deepCopy() {return new authenticateReportUser_args(this);}@Deprecatedpublic authenticateReportUser_args clone() {return new authenticateReportUser_args(this);}public String getUsername() {return this.username;}public authenticateReportUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public authenticateReportUser_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 USERNAME:if (value == null) {unsetUsername();} else {setUsername((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 USERNAME:return getUsername();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 USERNAME:return isSetUsername();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 authenticateReportUser_args)return this.equals((authenticateReportUser_args)that);return false;}public boolean equals(authenticateReportUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))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(authenticateReportUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateReportUser_args typedOther = (authenticateReportUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);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 USERNAME:if (field.type == TType.STRING) {this.username = 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.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);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("authenticateReportUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}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 authenticateReportUser_result implements TBase<authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateReportUser_result> {private static final TStruct STRUCT_DESC = new TStruct("authenticateReportUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);private ReportUser success;private HelperServiceException hse;/** 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"),HSE((short)1, "hse");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, ReportUser.class)));put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);}public authenticateReportUser_result() {}public authenticateReportUser_result(ReportUser success,HelperServiceException hse){this();this.success = success;this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public authenticateReportUser_result(authenticateReportUser_result other) {if (other.isSetSuccess()) {this.success = new ReportUser(other.success);}if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public authenticateReportUser_result deepCopy() {return new authenticateReportUser_result(this);}@Deprecatedpublic authenticateReportUser_result clone() {return new authenticateReportUser_result(this);}public ReportUser getSuccess() {return this.success;}public authenticateReportUser_result setSuccess(ReportUser 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 HelperServiceException getHse() {return this.hse;}public authenticateReportUser_result setHse(HelperServiceException hse) {this.hse = hse;return this;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been asigned a value) and false otherwise */public boolean isSetHse() {return this.hse != null;}public void setHseIsSet(boolean value) {if (!value) {this.hse = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((ReportUser)value);}break;case HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)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();case HSE:return getHse();}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();case HSE:return isSetHse();}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 authenticateReportUser_result)return this.equals((authenticateReportUser_result)that);return false;}public boolean equals(authenticateReportUser_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;}boolean this_present_hse = true && this.isSetHse();boolean that_present_hse = true && that.isSetHse();if (this_present_hse || that_present_hse) {if (!(this_present_hse && that_present_hse))return false;if (!this.hse.equals(that.hse))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateReportUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateReportUser_result typedOther = (authenticateReportUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);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 ReportUser();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case HSE:if (field.type == TType.STRUCT) {this.hse = new HelperServiceException();this.hse.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();} else if (this.isSetHse()) {oprot.writeFieldBegin(HSE_FIELD_DESC);this.hse.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateReportUser_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("hse:");if (this.hse == null) {sb.append("null");} else {sb.append(this.hse);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getReports_args implements TBase<getReports_args._Fields>, java.io.Serializable, Cloneable, Comparable<getReports_args> {private static final TStruct STRUCT_DESC = new TStruct("getReports_args");private static final TField ROLE_FIELD_DESC = new TField("role", TType.I64, (short)1);private long role;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ROLE((short)1, "role");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 __ROLE_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.ROLE, new FieldMetaData("role", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);}public getReports_args() {}public getReports_args(long role){this();this.role = role;setRoleIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getReports_args(getReports_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.role = other.role;}public getReports_args deepCopy() {return new getReports_args(this);}@Deprecatedpublic getReports_args clone() {return new getReports_args(this);}public long getRole() {return this.role;}public getReports_args setRole(long role) {this.role = role;setRoleIsSet(true);return this;}public void unsetRole() {__isset_bit_vector.clear(__ROLE_ISSET_ID);}/** Returns true if field role is set (has been asigned a value) and false otherwise */public boolean isSetRole() {return __isset_bit_vector.get(__ROLE_ISSET_ID);}public void setRoleIsSet(boolean value) {__isset_bit_vector.set(__ROLE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ROLE:if (value == null) {unsetRole();} else {setRole((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ROLE:return new Long(getRole());}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:return isSetRole();}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 getReports_args)return this.equals((getReports_args)that);return false;}public boolean equals(getReports_args that) {if (that == null)return false;boolean this_present_role = true;boolean that_present_role = true;if (this_present_role || that_present_role) {if (!(this_present_role && that_present_role))return false;if (this.role != that.role)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReports_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReports_args typedOther = (getReports_args)other;lastComparison = Boolean.valueOf(isSetRole()).compareTo(isSetRole());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(role, typedOther.role);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:if (field.type == TType.I64) {this.role = iprot.readI64();setRoleIsSet(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(ROLE_FIELD_DESC);oprot.writeI64(this.role);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReports_args(");boolean first = true;sb.append("role:");sb.append(this.role);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getReports_result implements TBase<getReports_result._Fields>, java.io.Serializable, Cloneable, Comparable<getReports_result> {private static final TStruct STRUCT_DESC = new TStruct("getReports_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Report> 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, Report.class))));}});static {FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);}public getReports_result() {}public getReports_result(List<Report> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getReports_result(getReports_result other) {if (other.isSetSuccess()) {List<Report> __this__success = new ArrayList<Report>();for (Report other_element : other.success) {__this__success.add(new Report(other_element));}this.success = __this__success;}}public getReports_result deepCopy() {return new getReports_result(this);}@Deprecatedpublic getReports_result clone() {return new getReports_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Report> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Report elem) {if (this.success == null) {this.success = new ArrayList<Report>();}this.success.add(elem);}public List<Report> getSuccess() {return this.success;}public getReports_result setSuccess(List<Report> 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<Report>)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 getReports_result)return this.equals((getReports_result)that);return false;}public boolean equals(getReports_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(getReports_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReports_result typedOther = (getReports_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 _list17 = iprot.readListBegin();this.success = new ArrayList<Report>(_list17.size);for (int _i18 = 0; _i18 < _list17.size; ++_i18){Report _elem19;_elem19 = new Report();_elem19.read(iprot);this.success.add(_elem19);}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 (Report _iter20 : this.success){_iter20.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReports_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 authenticateCatalogUser_args implements TBase<authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateCatalogUser_args> {private static final TStruct STRUCT_DESC = new TStruct("authenticateCatalogUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private static final TField ROLE_FIELD_DESC = new TField("role", TType.I64, (short)3);private String username;private String password;private long role;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password"),ROLE((short)3, "role");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 __ROLE_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.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.ROLE, new FieldMetaData("role", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);}public authenticateCatalogUser_args() {}public authenticateCatalogUser_args(String username,String password,long role){this();this.username = username;this.password = password;this.role = role;setRoleIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public authenticateCatalogUser_args(authenticateCatalogUser_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}this.role = other.role;}public authenticateCatalogUser_args deepCopy() {return new authenticateCatalogUser_args(this);}@Deprecatedpublic authenticateCatalogUser_args clone() {return new authenticateCatalogUser_args(this);}public String getUsername() {return this.username;}public authenticateCatalogUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public authenticateCatalogUser_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 long getRole() {return this.role;}public authenticateCatalogUser_args setRole(long role) {this.role = role;setRoleIsSet(true);return this;}public void unsetRole() {__isset_bit_vector.clear(__ROLE_ISSET_ID);}/** Returns true if field role is set (has been asigned a value) and false otherwise */public boolean isSetRole() {return __isset_bit_vector.get(__ROLE_ISSET_ID);}public void setRoleIsSet(boolean value) {__isset_bit_vector.set(__ROLE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;case ROLE:if (value == null) {unsetRole();} else {setRole((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();case ROLE:return new Long(getRole());}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 USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();case ROLE:return isSetRole();}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 authenticateCatalogUser_args)return this.equals((authenticateCatalogUser_args)that);return false;}public boolean equals(authenticateCatalogUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))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;}boolean this_present_role = true;boolean that_present_role = true;if (this_present_role || that_present_role) {if (!(this_present_role && that_present_role))return false;if (this.role != that.role)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateCatalogUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);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;}lastComparison = Boolean.valueOf(isSetRole()).compareTo(isSetRole());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(role, typedOther.role);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 USERNAME:if (field.type == TType.STRING) {this.username = 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;case ROLE:if (field.type == TType.I64) {this.role = iprot.readI64();setRoleIsSet(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);if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldBegin(ROLE_FIELD_DESC);oprot.writeI64(this.role);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;if (!first) sb.append(", ");sb.append("role:");sb.append(this.role);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateCatalogUser_result implements TBase<authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateCatalogUser_result> {private static final TStruct STRUCT_DESC = new TStruct("authenticateCatalogUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);private CatalogDashboardUser success;private HelperServiceException hse;/** 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"),HSE((short)1, "hse");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, CatalogDashboardUser.class)));put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);}public authenticateCatalogUser_result() {}public authenticateCatalogUser_result(CatalogDashboardUser success,HelperServiceException hse){this();this.success = success;this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public authenticateCatalogUser_result(authenticateCatalogUser_result other) {if (other.isSetSuccess()) {this.success = new CatalogDashboardUser(other.success);}if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public authenticateCatalogUser_result deepCopy() {return new authenticateCatalogUser_result(this);}@Deprecatedpublic authenticateCatalogUser_result clone() {return new authenticateCatalogUser_result(this);}public CatalogDashboardUser getSuccess() {return this.success;}public authenticateCatalogUser_result setSuccess(CatalogDashboardUser 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 HelperServiceException getHse() {return this.hse;}public authenticateCatalogUser_result setHse(HelperServiceException hse) {this.hse = hse;return this;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been asigned a value) and false otherwise */public boolean isSetHse() {return this.hse != null;}public void setHseIsSet(boolean value) {if (!value) {this.hse = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((CatalogDashboardUser)value);}break;case HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)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();case HSE:return getHse();}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();case HSE:return isSetHse();}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 authenticateCatalogUser_result)return this.equals((authenticateCatalogUser_result)that);return false;}public boolean equals(authenticateCatalogUser_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;}boolean this_present_hse = true && this.isSetHse();boolean that_present_hse = true && that.isSetHse();if (this_present_hse || that_present_hse) {if (!(this_present_hse && that_present_hse))return false;if (!this.hse.equals(that.hse))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateCatalogUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);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 CatalogDashboardUser();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case HSE:if (field.type == TType.STRUCT) {this.hse = new HelperServiceException();this.hse.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();} else if (this.isSetHse()) {oprot.writeFieldBegin(HSE_FIELD_DESC);this.hse.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("hse:");if (this.hse == null) {sb.append("null");} else {sb.append(this.hse);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}}