Rev 12691 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** 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.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class HelperService {public interface Iface extends in.shop2020.generic.GenericService.Iface {/*** Save email details, to be sent later; Also returns its identifier.** @param emailTo* @param emailFrom* @param subject* @param body* @param source* @param emailType* @param cc* @param bcc* @param sourceId*/public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException;/*** Retreives all the emails pending for dispatch*/public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;/*** Marks email as sent after successful dispatch** @param emailId*/public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.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, org.apache.thrift.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, org.apache.thrift.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, org.apache.thrift.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, org.apache.thrift.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, org.apache.thrift.TException;/*** Returns list of reports which are configured for the given role.** @param role*/public List<Report> getReports(long role) throws org.apache.thrift.TException;/*** Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.* Throws an exception otherwise.** @param username* @param password*/public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;/*** Saves the list of entity Ids to be shared with an email address** @param entityIds* @param email*/public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;public List<Agent> getAgents() throws org.apache.thrift.TException;public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;/*** Returns a list of emails to which product notifications have been sent in a given date range** @param startDatetime* @param endDatetime*/public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException;public long saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws HelperServiceException, org.apache.thrift.TException;public List<UserSms> getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException;public void addUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException;public boolean updateUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException;public UserSmsInfo getUserSmsInfo(long userId) throws HelperServiceException, org.apache.thrift.TException;public List<UserSmsInfo> getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws HelperServiceException, org.apache.thrift.TException;public List<UserSms> listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException;public boolean markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException;public boolean markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException;public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException;public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException;public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException;}public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException;public void saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserSmsForSending_call> resultHandler) throws org.apache.thrift.TException;public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException;public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException;public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException;public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException;public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException;public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException;public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authoriseDealer_call> resultHandler) throws org.apache.thrift.TException;}public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {public Factory() {}public Client getClient(org.apache.thrift.protocol.TProtocol prot) {return new Client(prot);}public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {return new Client(iprot, oprot);}}public Client(org.apache.thrift.protocol.TProtocol prot){super(prot, prot);}public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {super(iprot, oprot);}public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException{send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId);return recv_saveUserEmailForSending();}public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws org.apache.thrift.TException{saveUserEmailForSending_args args = new saveUserEmailForSending_args();args.setEmailTo(emailTo);args.setEmailFrom(emailFrom);args.setSubject(subject);args.setBody(body);args.setSource(source);args.setEmailType(emailType);args.setCc(cc);args.setBcc(bcc);args.setSourceId(sourceId);sendBase("saveUserEmailForSending", args);}public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException{saveUserEmailForSending_result result = new saveUserEmailForSending_result();receiveBase(result, "saveUserEmailForSending");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");}public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException{send_getEmailsToBeSent();return recv_getEmailsToBeSent();}public void send_getEmailsToBeSent() throws org.apache.thrift.TException{getEmailsToBeSent_args args = new getEmailsToBeSent_args();sendBase("getEmailsToBeSent", args);}public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException{getEmailsToBeSent_result result = new getEmailsToBeSent_result();receiveBase(result, "getEmailsToBeSent");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");}public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException{send_markEmailAsSent(emailId);recv_markEmailAsSent();}public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException{markEmailAsSent_args args = new markEmailAsSent_args();args.setEmailId(emailId);sendBase("markEmailAsSent", args);}public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException{markEmailAsSent_result result = new markEmailAsSent_result();receiveBase(result, "markEmailAsSent");if (result.se != null) {throw result.se;}return;}public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException{send_sendMail(mail);recv_sendMail();}public void send_sendMail(Mail mail) throws org.apache.thrift.TException{sendMail_args args = new sendMail_args();args.setMail(mail);sendBase("sendMail", args);}public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException{sendMail_result result = new sendMail_result();receiveBase(result, "sendMail");if (result.se != null) {throw result.se;}return;}public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException{send_sendText(message);recv_sendText();}public void send_sendText(TextMessage message) throws org.apache.thrift.TException{sendText_args args = new sendText_args();args.setMessage(message);sendBase("sendText", args);}public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException{sendText_result result = new sendText_result();receiveBase(result, "sendText");if (result.se != null) {throw result.se;}return;}public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException{send_addMessage(message);recv_addMessage();}public void send_addMessage(Message message) throws org.apache.thrift.TException{addMessage_args args = new addMessage_args();args.setMessage(message);sendBase("addMessage", args);}public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException{addMessage_result result = new addMessage_result();receiveBase(result, "addMessage");if (result.se != null) {throw result.se;}return;}public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException{send_updateMessage(id, message);recv_updateMessage();}public void send_updateMessage(long id, String message) throws org.apache.thrift.TException{updateMessage_args args = new updateMessage_args();args.setId(id);args.setMessage(message);sendBase("updateMessage", args);}public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException{updateMessage_result result = new updateMessage_result();receiveBase(result, "updateMessage");if (result.se != null) {throw result.se;}return;}public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException{send_getMessage(id);return recv_getMessage();}public void send_getMessage(long id) throws org.apache.thrift.TException{getMessage_args args = new getMessage_args();args.setId(id);sendBase("getMessage", args);}public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException{getMessage_result result = new getMessage_result();receiveBase(result, "getMessage");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");}public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException{send_getSubstitutedMessage(id, params);return recv_getSubstitutedMessage();}public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException{getSubstitutedMessage_args args = new getSubstitutedMessage_args();args.setId(id);args.setParams(params);sendBase("getSubstitutedMessage", args);}public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException{getSubstitutedMessage_result result = new getSubstitutedMessage_result();receiveBase(result, "getSubstitutedMessage");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");}public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException{send_addUser(username, password, warehouseId);return recv_addUser();}public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException{addUser_args args = new addUser_args();args.setUsername(username);args.setPassword(password);args.setWarehouseId(warehouseId);sendBase("addUser", args);}public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException{addUser_result result = new addUser_result();receiveBase(result, "addUser");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");}public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException{send_deleteUser(username);return recv_deleteUser();}public void send_deleteUser(String username) throws org.apache.thrift.TException{deleteUser_args args = new deleteUser_args();args.setUsername(username);sendBase("deleteUser", args);}public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException{deleteUser_result result = new deleteUser_result();receiveBase(result, "deleteUser");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");}public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException{send_authenticateDashboardUser(username, password);return recv_authenticateDashboardUser();}public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException{authenticateDashboardUser_args args = new authenticateDashboardUser_args();args.setUsername(username);args.setPassword(password);sendBase("authenticateDashboardUser", args);}public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException{authenticateDashboardUser_result result = new authenticateDashboardUser_result();receiveBase(result, "authenticateDashboardUser");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");}public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException{send_updatePassword(username, oldPassword, newPassword);return recv_updatePassword();}public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException{updatePassword_args args = new updatePassword_args();args.setUsername(username);args.setOldPassword(oldPassword);args.setNewPassword(newPassword);sendBase("updatePassword", args);}public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException{updatePassword_result result = new updatePassword_result();receiveBase(result, "updatePassword");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");}public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException{send_authenticateLogisticsUser(username, password);return recv_authenticateLogisticsUser();}public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException{authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();args.setUsername(username);args.setPassword(password);sendBase("authenticateLogisticsUser", args);}public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException{authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();receiveBase(result, "authenticateLogisticsUser");if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");}public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException{send_authenticateStatisticsUser(username, password);return recv_authenticateStatisticsUser();}public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException{authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();args.setUsername(username);args.setPassword(password);sendBase("authenticateStatisticsUser", args);}public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException{authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();receiveBase(result, "authenticateStatisticsUser");if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");}public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException{send_authenticateReportUser(username, password);return recv_authenticateReportUser();}public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException{authenticateReportUser_args args = new authenticateReportUser_args();args.setUsername(username);args.setPassword(password);sendBase("authenticateReportUser", args);}public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException{authenticateReportUser_result result = new authenticateReportUser_result();receiveBase(result, "authenticateReportUser");if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");}public List<Report> getReports(long role) throws org.apache.thrift.TException{send_getReports(role);return recv_getReports();}public void send_getReports(long role) throws org.apache.thrift.TException{getReports_args args = new getReports_args();args.setRole(role);sendBase("getReports", args);}public List<Report> recv_getReports() throws org.apache.thrift.TException{getReports_result result = new getReports_result();receiveBase(result, "getReports");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");}public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException{send_authenticateCatalogUser(username, password);return recv_authenticateCatalogUser();}public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException{authenticateCatalogUser_args args = new authenticateCatalogUser_args();args.setUsername(username);args.setPassword(password);sendBase("authenticateCatalogUser", args);}public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException{authenticateCatalogUser_result result = new authenticateCatalogUser_result();receiveBase(result, "authenticateCatalogUser");if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");}public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException{send_shareEntities(entityIds, email);recv_shareEntities();}public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException{shareEntities_args args = new shareEntities_args();args.setEntityIds(entityIds);args.setEmail(email);sendBase("shareEntities", args);}public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException{shareEntities_result result = new shareEntities_result();receiveBase(result, "shareEntities");if (result.hse != null) {throw result.hse;}return;}public List<Agent> getAgents() throws org.apache.thrift.TException{send_getAgents();return recv_getAgents();}public void send_getAgents() throws org.apache.thrift.TException{getAgents_args args = new getAgents_args();sendBase("getAgents", args);}public List<Agent> recv_getAgents() throws org.apache.thrift.TException{getAgents_result result = new getAgents_result();receiveBase(result, "getAgents");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");}public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException{send_validateLogIn(emailId, password);return recv_validateLogIn();}public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException{validateLogIn_args args = new validateLogIn_args();args.setEmailId(emailId);args.setPassword(password);sendBase("validateLogIn", args);}public boolean recv_validateLogIn() throws org.apache.thrift.TException{validateLogIn_result result = new validateLogIn_result();receiveBase(result, "validateLogIn");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");}public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException{send_updatePasswordForAgent(agentEmailId, password);recv_updatePasswordForAgent();}public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException{updatePasswordForAgent_args args = new updatePasswordForAgent_args();args.setAgentEmailId(agentEmailId);args.setPassword(password);sendBase("updatePasswordForAgent", args);}public void recv_updatePasswordForAgent() throws org.apache.thrift.TException{updatePasswordForAgent_result result = new updatePasswordForAgent_result();receiveBase(result, "updatePasswordForAgent");return;}public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException{send_getRoleNamesForAgent(agentEmailId);return recv_getRoleNamesForAgent();}public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException{getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();args.setAgentEmailId(agentEmailId);sendBase("getRoleNamesForAgent", args);}public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException{getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();receiveBase(result, "getRoleNamesForAgent");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");}public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException{send_getPermissionsForRoleName(roleName);return recv_getPermissionsForRoleName();}public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException{getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();args.setRoleName(roleName);sendBase("getPermissionsForRoleName", args);}public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException{getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();receiveBase(result, "getPermissionsForRoleName");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");}public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException{send_saveQuickLink(url, text);recv_saveQuickLink();}public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException{saveQuickLink_args args = new saveQuickLink_args();args.setUrl(url);args.setText(text);sendBase("saveQuickLink", args);}public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException{saveQuickLink_result result = new saveQuickLink_result();receiveBase(result, "saveQuickLink");if (result.hse != null) {throw result.hse;}return;}public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException{send_getQuickLinks();return recv_getQuickLinks();}public void send_getQuickLinks() throws org.apache.thrift.TException{getQuickLinks_args args = new getQuickLinks_args();sendBase("getQuickLinks", args);}public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException{getQuickLinks_result result = new getQuickLinks_result();receiveBase(result, "getQuickLinks");if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");}public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException{send_updateQuickLink(id, url, text);recv_updateQuickLink();}public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException{updateQuickLink_args args = new updateQuickLink_args();args.setId(id);args.setUrl(url);args.setText(text);sendBase("updateQuickLink", args);}public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException{updateQuickLink_result result = new updateQuickLink_result();receiveBase(result, "updateQuickLink");if (result.hse != null) {throw result.hse;}return;}public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException{send_getEmailsForNotificationsSent(startDatetime, endDatetime);return recv_getEmailsForNotificationsSent();}public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException{getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();args.setStartDatetime(startDatetime);args.setEndDatetime(endDatetime);sendBase("getEmailsForNotificationsSent", args);}public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException{getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();receiveBase(result, "getEmailsForNotificationsSent");if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");}public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException{send_getOrderConfirmationMail(orderId);return recv_getOrderConfirmationMail();}public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException{getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();args.setOrderId(orderId);sendBase("getOrderConfirmationMail", args);}public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException{getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();receiveBase(result, "getOrderConfirmationMail");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");}public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException{send_getOrderDeliveryMail(orderId);return recv_getOrderDeliveryMail();}public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException{getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();args.setOrderId(orderId);sendBase("getOrderDeliveryMail", args);}public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException{getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();receiveBase(result, "getOrderDeliveryMail");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");}public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException{send_getWarehouseIdsForAgent(agentEmailId);return recv_getWarehouseIdsForAgent();}public void send_getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException{getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();args.setAgentEmailId(agentEmailId);sendBase("getWarehouseIdsForAgent", args);}public List<Long> recv_getWarehouseIdsForAgent() throws org.apache.thrift.TException{getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();receiveBase(result, "getWarehouseIdsForAgent");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");}public long saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws HelperServiceException, org.apache.thrift.TException{send_saveUserSmsForSending(userId, mobileNo, text, type);return recv_saveUserSmsForSending();}public void send_saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws org.apache.thrift.TException{saveUserSmsForSending_args args = new saveUserSmsForSending_args();args.setUserId(userId);args.setMobileNo(mobileNo);args.setText(text);args.setType(type);sendBase("saveUserSmsForSending", args);}public long recv_saveUserSmsForSending() throws HelperServiceException, org.apache.thrift.TException{saveUserSmsForSending_result result = new saveUserSmsForSending_result();receiveBase(result, "saveUserSmsForSending");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserSmsForSending failed: unknown result");}public List<UserSms> getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException{send_getSmsToBeSent();return recv_getSmsToBeSent();}public void send_getSmsToBeSent() throws org.apache.thrift.TException{getSmsToBeSent_args args = new getSmsToBeSent_args();sendBase("getSmsToBeSent", args);}public List<UserSms> recv_getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException{getSmsToBeSent_result result = new getSmsToBeSent_result();receiveBase(result, "getSmsToBeSent");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSmsToBeSent failed: unknown result");}public void addUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException{send_addUserSmsInfo(userSmsInfo);recv_addUserSmsInfo();}public void send_addUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException{addUserSmsInfo_args args = new addUserSmsInfo_args();args.setUserSmsInfo(userSmsInfo);sendBase("addUserSmsInfo", args);}public void recv_addUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException{addUserSmsInfo_result result = new addUserSmsInfo_result();receiveBase(result, "addUserSmsInfo");if (result.se != null) {throw result.se;}return;}public boolean updateUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException{send_updateUserSmsInfo(userSmsInfo);return recv_updateUserSmsInfo();}public void send_updateUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException{updateUserSmsInfo_args args = new updateUserSmsInfo_args();args.setUserSmsInfo(userSmsInfo);sendBase("updateUserSmsInfo", args);}public boolean recv_updateUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException{updateUserSmsInfo_result result = new updateUserSmsInfo_result();receiveBase(result, "updateUserSmsInfo");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSmsInfo failed: unknown result");}public UserSmsInfo getUserSmsInfo(long userId) throws HelperServiceException, org.apache.thrift.TException{send_getUserSmsInfo(userId);return recv_getUserSmsInfo();}public void send_getUserSmsInfo(long userId) throws org.apache.thrift.TException{getUserSmsInfo_args args = new getUserSmsInfo_args();args.setUserId(userId);sendBase("getUserSmsInfo", args);}public UserSmsInfo recv_getUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException{getUserSmsInfo_result result = new getUserSmsInfo_result();receiveBase(result, "getUserSmsInfo");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSmsInfo failed: unknown result");}public List<UserSmsInfo> getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws HelperServiceException, org.apache.thrift.TException{send_getAllUsersSmsInfo(dndStatus, smsSubscribed);return recv_getAllUsersSmsInfo();}public void send_getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws org.apache.thrift.TException{getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();args.setDndStatus(dndStatus);args.setSmsSubscribed(smsSubscribed);sendBase("getAllUsersSmsInfo", args);}public List<UserSmsInfo> recv_getAllUsersSmsInfo() throws HelperServiceException, org.apache.thrift.TException{getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();receiveBase(result, "getAllUsersSmsInfo");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsersSmsInfo failed: unknown result");}public List<UserSms> listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException{send_listSmsToGetDeliveryInfo();return recv_listSmsToGetDeliveryInfo();}public void send_listSmsToGetDeliveryInfo() throws org.apache.thrift.TException{listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();sendBase("listSmsToGetDeliveryInfo", args);}public List<UserSms> recv_listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException{listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();receiveBase(result, "listSmsToGetDeliveryInfo");if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listSmsToGetDeliveryInfo failed: unknown result");}public boolean markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException{send_markMessagesAsSentToOperator(userSmsList);return recv_markMessagesAsSentToOperator();}public void send_markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException{markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();args.setUserSmsList(userSmsList);sendBase("markMessagesAsSentToOperator", args);}public boolean recv_markMessagesAsSentToOperator() throws org.apache.thrift.TException{markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();receiveBase(result, "markMessagesAsSentToOperator");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSentToOperator failed: unknown result");}public boolean markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException{send_markMessagesAsSubmittedToSmsc(userSmsList);return recv_markMessagesAsSubmittedToSmsc();}public void send_markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException{markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();args.setUserSmsList(userSmsList);sendBase("markMessagesAsSubmittedToSmsc", args);}public boolean recv_markMessagesAsSubmittedToSmsc() throws org.apache.thrift.TException{markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();receiveBase(result, "markMessagesAsSubmittedToSmsc");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSubmittedToSmsc failed: unknown result");}public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException{send_markMessagesAsSent(userSmsList);return recv_markMessagesAsSent();}public void send_markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException{markMessagesAsSent_args args = new markMessagesAsSent_args();args.setUserSmsList(userSmsList);sendBase("markMessagesAsSent", args);}public boolean recv_markMessagesAsSent() throws org.apache.thrift.TException{markMessagesAsSent_result result = new markMessagesAsSent_result();receiveBase(result, "markMessagesAsSent");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSent failed: unknown result");}public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException{send_markMessagesAsRetry(userSmsList);return recv_markMessagesAsRetry();}public void send_markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException{markMessagesAsRetry_args args = new markMessagesAsRetry_args();args.setUserSmsList(userSmsList);sendBase("markMessagesAsRetry", args);}public boolean recv_markMessagesAsRetry() throws org.apache.thrift.TException{markMessagesAsRetry_result result = new markMessagesAsRetry_result();receiveBase(result, "markMessagesAsRetry");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");}public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException{send_authoriseDealer(dealer);return recv_authoriseDealer();}public void send_authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException{authoriseDealer_args args = new authoriseDealer_args();args.setDealer(dealer);sendBase("authoriseDealer", args);}public DealerAuth recv_authoriseDealer() throws org.apache.thrift.TException{authoriseDealer_result result = new authoriseDealer_result();receiveBase(result, "authoriseDealer");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authoriseDealer failed: unknown result");}}public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {private org.apache.thrift.async.TAsyncClientManager clientManager;private org.apache.thrift.protocol.TProtocolFactory protocolFactory;public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {this.clientManager = clientManager;this.protocolFactory = protocolFactory;}public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {return new AsyncClient(protocolFactory, clientManager, transport);}}public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {super(protocolFactory, clientManager, transport);}public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {checkReady();saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {private List<String> emailTo;private String emailFrom;private String subject;private String body;private String source;private String emailType;private List<String> cc;private List<String> bcc;private long sourceId;public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.emailTo = emailTo;this.emailFrom = emailFrom;this.subject = subject;this.body = body;this.source = source;this.emailType = emailType;this.cc = cc;this.bcc = bcc;this.sourceId = sourceId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));saveUserEmailForSending_args args = new saveUserEmailForSending_args();args.setEmailTo(emailTo);args.setEmailFrom(emailFrom);args.setSubject(subject);args.setBody(body);args.setSource(source);args.setEmailType(emailType);args.setCc(cc);args.setBcc(bcc);args.setSourceId(sourceId);args.write(prot);prot.writeMessageEnd();}public long getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_saveUserEmailForSending();}}public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {checkReady();getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {public getEmailsToBeSent_call(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));getEmailsToBeSent_args args = new getEmailsToBeSent_args();args.write(prot);prot.writeMessageEnd();}public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getEmailsToBeSent();}}public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {checkReady();markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {private long emailId;public markEmailAsSent_call(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.emailId = emailId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));markEmailAsSent_args args = new markEmailAsSent_args();args.setEmailId(emailId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markEmailAsSent();}}public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {checkReady();sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {private Mail mail;public sendMail_call(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.mail = mail;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));sendMail_args args = new sendMail_args();args.setMail(mail);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_sendMail();}}public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {checkReady();sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {private TextMessage message;public sendText_call(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.message = message;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));sendText_args args = new sendText_args();args.setMessage(message);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_sendText();}}public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {checkReady();addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {private Message message;public addMessage_call(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.message = message;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));addMessage_args args = new addMessage_args();args.setMessage(message);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addMessage();}}public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;private String message;public updateMessage_call(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;this.message = message;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));updateMessage_args args = new updateMessage_args();args.setId(id);args.setMessage(message);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateMessage();}}public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {checkReady();getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;public getMessage_call(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));getMessage_args args = new getMessage_args();args.setId(id);args.write(prot);prot.writeMessageEnd();}public Message getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getMessage();}}public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;private Map<String,String> params;public getSubstitutedMessage_call(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;this.params = params;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));getSubstitutedMessage_args args = new getSubstitutedMessage_args();args.setId(id);args.setParams(params);args.write(prot);prot.writeMessageEnd();}public Message getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSubstitutedMessage();}}public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {checkReady();addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;private String password;private long warehouseId;public addUser_call(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;this.password = password;this.warehouseId = warehouseId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));addUser_args args = new addUser_args();args.setUsername(username);args.setPassword(password);args.setWarehouseId(warehouseId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addUser();}}public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {checkReady();deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;public deleteUser_call(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));deleteUser_args args = new deleteUser_args();args.setUsername(username);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_deleteUser();}}public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {checkReady();authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;private String password;public authenticateDashboardUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;this.password = password;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));authenticateDashboardUser_args args = new authenticateDashboardUser_args();args.setUsername(username);args.setPassword(password);args.write(prot);prot.writeMessageEnd();}public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_authenticateDashboardUser();}}public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {checkReady();updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;private String oldPassword;private String newPassword;public updatePassword_call(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;this.oldPassword = oldPassword;this.newPassword = newPassword;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));updatePassword_args args = new updatePassword_args();args.setUsername(username);args.setOldPassword(oldPassword);args.setNewPassword(newPassword);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updatePassword();}}public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {checkReady();authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;private String password;public authenticateLogisticsUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;this.password = password;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();args.setUsername(username);args.setPassword(password);args.write(prot);prot.writeMessageEnd();}public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_authenticateLogisticsUser();}}public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {checkReady();authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;private String password;public authenticateStatisticsUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;this.password = password;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();args.setUsername(username);args.setPassword(password);args.write(prot);prot.writeMessageEnd();}public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_authenticateStatisticsUser();}}public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {checkReady();authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;private String password;public authenticateReportUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;this.password = password;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));authenticateReportUser_args args = new authenticateReportUser_args();args.setUsername(username);args.setPassword(password);args.write(prot);prot.writeMessageEnd();}public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_authenticateReportUser();}}public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {private long role;public getReports_call(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.role = role;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));getReports_args args = new getReports_args();args.setRole(role);args.write(prot);prot.writeMessageEnd();}public List<Report> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReports();}}public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {checkReady();authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {private String username;private String password;public authenticateCatalogUser_call(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.username = username;this.password = password;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));authenticateCatalogUser_args args = new authenticateCatalogUser_args();args.setUsername(username);args.setPassword(password);args.write(prot);prot.writeMessageEnd();}public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_authenticateCatalogUser();}}public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {checkReady();shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> entityIds;private String email;public shareEntities_call(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.entityIds = entityIds;this.email = email;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));shareEntities_args args = new shareEntities_args();args.setEntityIds(entityIds);args.setEmail(email);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_shareEntities();}}public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {public getAgents_call(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));getAgents_args args = new getAgents_args();args.write(prot);prot.writeMessageEnd();}public List<Agent> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAgents();}}public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {checkReady();validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {private String emailId;private String password;public validateLogIn_call(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.emailId = emailId;this.password = password;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));validateLogIn_args args = new validateLogIn_args();args.setEmailId(emailId);args.setPassword(password);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_validateLogIn();}}public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {checkReady();updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {private String agentEmailId;private String password;public updatePasswordForAgent_call(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.agentEmailId = agentEmailId;this.password = password;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));updatePasswordForAgent_args args = new updatePasswordForAgent_args();args.setAgentEmailId(agentEmailId);args.setPassword(password);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updatePasswordForAgent();}}public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {checkReady();getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {private String agentEmailId;public getRoleNamesForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.agentEmailId = agentEmailId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();args.setAgentEmailId(agentEmailId);args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getRoleNamesForAgent();}}public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {checkReady();getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {private String roleName;public getPermissionsForRoleName_call(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.roleName = roleName;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();args.setRoleName(roleName);args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getPermissionsForRoleName();}}public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {checkReady();saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {private String url;private String text;public saveQuickLink_call(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.url = url;this.text = text;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));saveQuickLink_args args = new saveQuickLink_args();args.setUrl(url);args.setText(text);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_saveQuickLink();}}public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {checkReady();getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {public getQuickLinks_call(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));getQuickLinks_args args = new getQuickLinks_args();args.write(prot);prot.writeMessageEnd();}public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getQuickLinks();}}public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;private String url;private String text;public updateQuickLink_call(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;this.url = url;this.text = text;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));updateQuickLink_args args = new updateQuickLink_args();args.setId(id);args.setUrl(url);args.setText(text);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateQuickLink();}}public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {checkReady();getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {private long startDatetime;private long endDatetime;public getEmailsForNotificationsSent_call(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.startDatetime = startDatetime;this.endDatetime = endDatetime;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();args.setStartDatetime(startDatetime);args.setEndDatetime(endDatetime);args.write(prot);prot.writeMessageEnd();}public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getEmailsForNotificationsSent();}}public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public getOrderConfirmationMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public String getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderConfirmationMail();}}public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public getOrderDeliveryMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public String getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderDeliveryMail();}}public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException {checkReady();getWarehouseIdsForAgent_call method_call = new getWarehouseIdsForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getWarehouseIdsForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {private String agentEmailId;public getWarehouseIdsForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.agentEmailId = agentEmailId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseIdsForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();args.setAgentEmailId(agentEmailId);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getWarehouseIdsForAgent();}}public void saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<saveUserSmsForSending_call> resultHandler) throws org.apache.thrift.TException {checkReady();saveUserSmsForSending_call method_call = new saveUserSmsForSending_call(userId, mobileNo, text, type, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class saveUserSmsForSending_call extends org.apache.thrift.async.TAsyncMethodCall {private long userId;private String mobileNo;private String text;private SmsType type;public saveUserSmsForSending_call(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<saveUserSmsForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userId = userId;this.mobileNo = mobileNo;this.text = text;this.type = type;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserSmsForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));saveUserSmsForSending_args args = new saveUserSmsForSending_args();args.setUserId(userId);args.setMobileNo(mobileNo);args.setText(text);args.setType(type);args.write(prot);prot.writeMessageEnd();}public long getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_saveUserSmsForSending();}}public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSmsToBeSent_call method_call = new getSmsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSmsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {public getSmsToBeSent_call(org.apache.thrift.async.AsyncMethodCallback<getSmsToBeSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSmsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));getSmsToBeSent_args args = new getSmsToBeSent_args();args.write(prot);prot.writeMessageEnd();}public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSmsToBeSent();}}public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();addUserSmsInfo_call method_call = new addUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {private UserSmsInfo userSmsInfo;public addUserSmsInfo_call(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<addUserSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userSmsInfo = userSmsInfo;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));addUserSmsInfo_args args = new addUserSmsInfo_args();args.setUserSmsInfo(userSmsInfo);args.write(prot);prot.writeMessageEnd();}public void getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addUserSmsInfo();}}public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateUserSmsInfo_call method_call = new updateUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {private UserSmsInfo userSmsInfo;public updateUserSmsInfo_call(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<updateUserSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userSmsInfo = userSmsInfo;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));updateUserSmsInfo_args args = new updateUserSmsInfo_args();args.setUserSmsInfo(userSmsInfo);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateUserSmsInfo();}}public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();getUserSmsInfo_call method_call = new getUserSmsInfo_call(userId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {private long userId;public getUserSmsInfo_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userId = userId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));getUserSmsInfo_args args = new getUserSmsInfo_args();args.setUserId(userId);args.write(prot);prot.writeMessageEnd();}public UserSmsInfo getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getUserSmsInfo();}}public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllUsersSmsInfo_call method_call = new getAllUsersSmsInfo_call(dndStatus, smsSubscribed, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllUsersSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {private boolean dndStatus;private boolean smsSubscribed;public getAllUsersSmsInfo_call(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<getAllUsersSmsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.dndStatus = dndStatus;this.smsSubscribed = smsSubscribed;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsersSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();args.setDndStatus(dndStatus);args.setSmsSubscribed(smsSubscribed);args.write(prot);prot.writeMessageEnd();}public List<UserSmsInfo> getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllUsersSmsInfo();}}public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException {checkReady();listSmsToGetDeliveryInfo_call method_call = new listSmsToGetDeliveryInfo_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class listSmsToGetDeliveryInfo_call extends org.apache.thrift.async.TAsyncMethodCall {public listSmsToGetDeliveryInfo_call(org.apache.thrift.async.AsyncMethodCallback<listSmsToGetDeliveryInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listSmsToGetDeliveryInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();args.write(prot);prot.writeMessageEnd();}public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_listSmsToGetDeliveryInfo();}}public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException {checkReady();markMessagesAsSentToOperator_call method_call = new markMessagesAsSentToOperator_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markMessagesAsSentToOperator_call extends org.apache.thrift.async.TAsyncMethodCall {private List<UserSms> userSmsList;public markMessagesAsSentToOperator_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSentToOperator_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userSmsList = userSmsList;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSentToOperator", org.apache.thrift.protocol.TMessageType.CALL, 0));markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();args.setUserSmsList(userSmsList);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markMessagesAsSentToOperator();}}public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException {checkReady();markMessagesAsSubmittedToSmsc_call method_call = new markMessagesAsSubmittedToSmsc_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markMessagesAsSubmittedToSmsc_call extends org.apache.thrift.async.TAsyncMethodCall {private List<UserSms> userSmsList;public markMessagesAsSubmittedToSmsc_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSubmittedToSmsc_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userSmsList = userSmsList;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSubmittedToSmsc", org.apache.thrift.protocol.TMessageType.CALL, 0));markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();args.setUserSmsList(userSmsList);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markMessagesAsSubmittedToSmsc();}}public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException {checkReady();markMessagesAsSent_call method_call = new markMessagesAsSent_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markMessagesAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {private List<UserSms> userSmsList;public markMessagesAsSent_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userSmsList = userSmsList;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));markMessagesAsSent_args args = new markMessagesAsSent_args();args.setUserSmsList(userSmsList);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markMessagesAsSent();}}public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException {checkReady();markMessagesAsRetry_call method_call = new markMessagesAsRetry_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markMessagesAsRetry_call extends org.apache.thrift.async.TAsyncMethodCall {private List<UserSms> userSmsList;public markMessagesAsRetry_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsRetry_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.userSmsList = userSmsList;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsRetry", org.apache.thrift.protocol.TMessageType.CALL, 0));markMessagesAsRetry_args args = new markMessagesAsRetry_args();args.setUserSmsList(userSmsList);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markMessagesAsRetry();}}public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_call> resultHandler) throws org.apache.thrift.TException {checkReady();authoriseDealer_call method_call = new authoriseDealer_call(dealer, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class authoriseDealer_call extends org.apache.thrift.async.TAsyncMethodCall {private DealerAuth dealer;public authoriseDealer_call(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.dealer = dealer;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authoriseDealer", org.apache.thrift.protocol.TMessageType.CALL, 0));authoriseDealer_args args = new authoriseDealer_args();args.setDealer(dealer);args.write(prot);prot.writeMessageEnd();}public DealerAuth getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_authoriseDealer();}}}public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(I iface) {super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));}protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {super(iface, getProcessMap(processMap));}private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {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());processMap.put("shareEntities", new shareEntities());processMap.put("getAgents", new getAgents());processMap.put("validateLogIn", new validateLogIn());processMap.put("updatePasswordForAgent", new updatePasswordForAgent());processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());processMap.put("saveQuickLink", new saveQuickLink());processMap.put("getQuickLinks", new getQuickLinks());processMap.put("updateQuickLink", new updateQuickLink());processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());processMap.put("getWarehouseIdsForAgent", new getWarehouseIdsForAgent());processMap.put("saveUserSmsForSending", new saveUserSmsForSending());processMap.put("getSmsToBeSent", new getSmsToBeSent());processMap.put("addUserSmsInfo", new addUserSmsInfo());processMap.put("updateUserSmsInfo", new updateUserSmsInfo());processMap.put("getUserSmsInfo", new getUserSmsInfo());processMap.put("getAllUsersSmsInfo", new getAllUsersSmsInfo());processMap.put("listSmsToGetDeliveryInfo", new listSmsToGetDeliveryInfo());processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());processMap.put("markMessagesAsSent", new markMessagesAsSent());processMap.put("markMessagesAsRetry", new markMessagesAsRetry());processMap.put("authoriseDealer", new authoriseDealer());return processMap;}private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {public saveUserEmailForSending() {super("saveUserEmailForSending");}protected saveUserEmailForSending_args getEmptyArgsInstance() {return new saveUserEmailForSending_args();}protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {saveUserEmailForSending_result result = new saveUserEmailForSending_result();try {result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc, args.sourceId);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {public getEmailsToBeSent() {super("getEmailsToBeSent");}protected getEmailsToBeSent_args getEmptyArgsInstance() {return new getEmailsToBeSent_args();}protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {getEmailsToBeSent_result result = new getEmailsToBeSent_result();try {result.success = iface.getEmailsToBeSent();} catch (HelperServiceException se) {result.se = se;}return result;}}private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {public markEmailAsSent() {super("markEmailAsSent");}protected markEmailAsSent_args getEmptyArgsInstance() {return new markEmailAsSent_args();}protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {markEmailAsSent_result result = new markEmailAsSent_result();try {iface.markEmailAsSent(args.emailId);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {public sendMail() {super("sendMail");}protected sendMail_args getEmptyArgsInstance() {return new sendMail_args();}protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {sendMail_result result = new sendMail_result();try {iface.sendMail(args.mail);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {public sendText() {super("sendText");}protected sendText_args getEmptyArgsInstance() {return new sendText_args();}protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {sendText_result result = new sendText_result();try {iface.sendText(args.message);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {public addMessage() {super("addMessage");}protected addMessage_args getEmptyArgsInstance() {return new addMessage_args();}protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {addMessage_result result = new addMessage_result();try {iface.addMessage(args.message);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {public updateMessage() {super("updateMessage");}protected updateMessage_args getEmptyArgsInstance() {return new updateMessage_args();}protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {updateMessage_result result = new updateMessage_result();try {iface.updateMessage(args.id, args.message);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {public getMessage() {super("getMessage");}protected getMessage_args getEmptyArgsInstance() {return new getMessage_args();}protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {getMessage_result result = new getMessage_result();try {result.success = iface.getMessage(args.id);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {public getSubstitutedMessage() {super("getSubstitutedMessage");}protected getSubstitutedMessage_args getEmptyArgsInstance() {return new getSubstitutedMessage_args();}protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {getSubstitutedMessage_result result = new getSubstitutedMessage_result();try {result.success = iface.getSubstitutedMessage(args.id, args.params);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {public addUser() {super("addUser");}protected addUser_args getEmptyArgsInstance() {return new addUser_args();}protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {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;}return result;}}private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {public deleteUser() {super("deleteUser");}protected deleteUser_args getEmptyArgsInstance() {return new deleteUser_args();}protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {deleteUser_result result = new deleteUser_result();try {result.success = iface.deleteUser(args.username);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {public authenticateDashboardUser() {super("authenticateDashboardUser");}protected authenticateDashboardUser_args getEmptyArgsInstance() {return new authenticateDashboardUser_args();}protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {authenticateDashboardUser_result result = new authenticateDashboardUser_result();try {result.success = iface.authenticateDashboardUser(args.username, args.password);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {public updatePassword() {super("updatePassword");}protected updatePassword_args getEmptyArgsInstance() {return new updatePassword_args();}protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {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;}return result;}}private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {public authenticateLogisticsUser() {super("authenticateLogisticsUser");}protected authenticateLogisticsUser_args getEmptyArgsInstance() {return new authenticateLogisticsUser_args();}protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();try {result.success = iface.authenticateLogisticsUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {public authenticateStatisticsUser() {super("authenticateStatisticsUser");}protected authenticateStatisticsUser_args getEmptyArgsInstance() {return new authenticateStatisticsUser_args();}protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();try {result.success = iface.authenticateStatisticsUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {public authenticateReportUser() {super("authenticateReportUser");}protected authenticateReportUser_args getEmptyArgsInstance() {return new authenticateReportUser_args();}protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {authenticateReportUser_result result = new authenticateReportUser_result();try {result.success = iface.authenticateReportUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {public getReports() {super("getReports");}protected getReports_args getEmptyArgsInstance() {return new getReports_args();}protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {getReports_result result = new getReports_result();result.success = iface.getReports(args.role);return result;}}private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {public authenticateCatalogUser() {super("authenticateCatalogUser");}protected authenticateCatalogUser_args getEmptyArgsInstance() {return new authenticateCatalogUser_args();}protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {authenticateCatalogUser_result result = new authenticateCatalogUser_result();try {result.success = iface.authenticateCatalogUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {public shareEntities() {super("shareEntities");}protected shareEntities_args getEmptyArgsInstance() {return new shareEntities_args();}protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {shareEntities_result result = new shareEntities_result();try {iface.shareEntities(args.entityIds, args.email);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {public getAgents() {super("getAgents");}protected getAgents_args getEmptyArgsInstance() {return new getAgents_args();}protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {getAgents_result result = new getAgents_result();result.success = iface.getAgents();return result;}}private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {public validateLogIn() {super("validateLogIn");}protected validateLogIn_args getEmptyArgsInstance() {return new validateLogIn_args();}protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {validateLogIn_result result = new validateLogIn_result();result.success = iface.validateLogIn(args.emailId, args.password);result.setSuccessIsSet(true);return result;}}private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {public updatePasswordForAgent() {super("updatePasswordForAgent");}protected updatePasswordForAgent_args getEmptyArgsInstance() {return new updatePasswordForAgent_args();}protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {updatePasswordForAgent_result result = new updatePasswordForAgent_result();iface.updatePasswordForAgent(args.agentEmailId, args.password);return result;}}private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {public getRoleNamesForAgent() {super("getRoleNamesForAgent");}protected getRoleNamesForAgent_args getEmptyArgsInstance() {return new getRoleNamesForAgent_args();}protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();result.success = iface.getRoleNamesForAgent(args.agentEmailId);return result;}}private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {public getPermissionsForRoleName() {super("getPermissionsForRoleName");}protected getPermissionsForRoleName_args getEmptyArgsInstance() {return new getPermissionsForRoleName_args();}protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();result.success = iface.getPermissionsForRoleName(args.roleName);return result;}}private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {public saveQuickLink() {super("saveQuickLink");}protected saveQuickLink_args getEmptyArgsInstance() {return new saveQuickLink_args();}protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {saveQuickLink_result result = new saveQuickLink_result();try {iface.saveQuickLink(args.url, args.text);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {public getQuickLinks() {super("getQuickLinks");}protected getQuickLinks_args getEmptyArgsInstance() {return new getQuickLinks_args();}protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {getQuickLinks_result result = new getQuickLinks_result();try {result.success = iface.getQuickLinks();} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {public updateQuickLink() {super("updateQuickLink");}protected updateQuickLink_args getEmptyArgsInstance() {return new updateQuickLink_args();}protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {updateQuickLink_result result = new updateQuickLink_result();try {iface.updateQuickLink(args.id, args.url, args.text);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {public getEmailsForNotificationsSent() {super("getEmailsForNotificationsSent");}protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {return new getEmailsForNotificationsSent_args();}protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();try {result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);} catch (HelperServiceException hse) {result.hse = hse;}return result;}}private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {public getOrderConfirmationMail() {super("getOrderConfirmationMail");}protected getOrderConfirmationMail_args getEmptyArgsInstance() {return new getOrderConfirmationMail_args();}protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();result.success = iface.getOrderConfirmationMail(args.orderId);return result;}}private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {public getOrderDeliveryMail() {super("getOrderDeliveryMail");}protected getOrderDeliveryMail_args getEmptyArgsInstance() {return new getOrderDeliveryMail_args();}protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();result.success = iface.getOrderDeliveryMail(args.orderId);return result;}}private static class getWarehouseIdsForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseIdsForAgent_args> {public getWarehouseIdsForAgent() {super("getWarehouseIdsForAgent");}protected getWarehouseIdsForAgent_args getEmptyArgsInstance() {return new getWarehouseIdsForAgent_args();}protected getWarehouseIdsForAgent_result getResult(I iface, getWarehouseIdsForAgent_args args) throws org.apache.thrift.TException {getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();result.success = iface.getWarehouseIdsForAgent(args.agentEmailId);return result;}}private static class saveUserSmsForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserSmsForSending_args> {public saveUserSmsForSending() {super("saveUserSmsForSending");}protected saveUserSmsForSending_args getEmptyArgsInstance() {return new saveUserSmsForSending_args();}protected saveUserSmsForSending_result getResult(I iface, saveUserSmsForSending_args args) throws org.apache.thrift.TException {saveUserSmsForSending_result result = new saveUserSmsForSending_result();try {result.success = iface.saveUserSmsForSending(args.userId, args.mobileNo, args.text, args.type);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class getSmsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSmsToBeSent_args> {public getSmsToBeSent() {super("getSmsToBeSent");}protected getSmsToBeSent_args getEmptyArgsInstance() {return new getSmsToBeSent_args();}protected getSmsToBeSent_result getResult(I iface, getSmsToBeSent_args args) throws org.apache.thrift.TException {getSmsToBeSent_result result = new getSmsToBeSent_result();try {result.success = iface.getSmsToBeSent();} catch (HelperServiceException se) {result.se = se;}return result;}}private static class addUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUserSmsInfo_args> {public addUserSmsInfo() {super("addUserSmsInfo");}protected addUserSmsInfo_args getEmptyArgsInstance() {return new addUserSmsInfo_args();}protected addUserSmsInfo_result getResult(I iface, addUserSmsInfo_args args) throws org.apache.thrift.TException {addUserSmsInfo_result result = new addUserSmsInfo_result();try {iface.addUserSmsInfo(args.userSmsInfo);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class updateUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserSmsInfo_args> {public updateUserSmsInfo() {super("updateUserSmsInfo");}protected updateUserSmsInfo_args getEmptyArgsInstance() {return new updateUserSmsInfo_args();}protected updateUserSmsInfo_result getResult(I iface, updateUserSmsInfo_args args) throws org.apache.thrift.TException {updateUserSmsInfo_result result = new updateUserSmsInfo_result();try {result.success = iface.updateUserSmsInfo(args.userSmsInfo);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class getUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSmsInfo_args> {public getUserSmsInfo() {super("getUserSmsInfo");}protected getUserSmsInfo_args getEmptyArgsInstance() {return new getUserSmsInfo_args();}protected getUserSmsInfo_result getResult(I iface, getUserSmsInfo_args args) throws org.apache.thrift.TException {getUserSmsInfo_result result = new getUserSmsInfo_result();try {result.success = iface.getUserSmsInfo(args.userId);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class getAllUsersSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsersSmsInfo_args> {public getAllUsersSmsInfo() {super("getAllUsersSmsInfo");}protected getAllUsersSmsInfo_args getEmptyArgsInstance() {return new getAllUsersSmsInfo_args();}protected getAllUsersSmsInfo_result getResult(I iface, getAllUsersSmsInfo_args args) throws org.apache.thrift.TException {getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();try {result.success = iface.getAllUsersSmsInfo(args.dndStatus, args.smsSubscribed);} catch (HelperServiceException se) {result.se = se;}return result;}}private static class listSmsToGetDeliveryInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listSmsToGetDeliveryInfo_args> {public listSmsToGetDeliveryInfo() {super("listSmsToGetDeliveryInfo");}protected listSmsToGetDeliveryInfo_args getEmptyArgsInstance() {return new listSmsToGetDeliveryInfo_args();}protected listSmsToGetDeliveryInfo_result getResult(I iface, listSmsToGetDeliveryInfo_args args) throws org.apache.thrift.TException {listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();try {result.success = iface.listSmsToGetDeliveryInfo();} catch (HelperServiceException se) {result.se = se;}return result;}}private static class markMessagesAsSentToOperator<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSentToOperator_args> {public markMessagesAsSentToOperator() {super("markMessagesAsSentToOperator");}protected markMessagesAsSentToOperator_args getEmptyArgsInstance() {return new markMessagesAsSentToOperator_args();}protected markMessagesAsSentToOperator_result getResult(I iface, markMessagesAsSentToOperator_args args) throws org.apache.thrift.TException {markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();result.success = iface.markMessagesAsSentToOperator(args.userSmsList);result.setSuccessIsSet(true);return result;}}private static class markMessagesAsSubmittedToSmsc<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSubmittedToSmsc_args> {public markMessagesAsSubmittedToSmsc() {super("markMessagesAsSubmittedToSmsc");}protected markMessagesAsSubmittedToSmsc_args getEmptyArgsInstance() {return new markMessagesAsSubmittedToSmsc_args();}protected markMessagesAsSubmittedToSmsc_result getResult(I iface, markMessagesAsSubmittedToSmsc_args args) throws org.apache.thrift.TException {markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();result.success = iface.markMessagesAsSubmittedToSmsc(args.userSmsList);result.setSuccessIsSet(true);return result;}}private static class markMessagesAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSent_args> {public markMessagesAsSent() {super("markMessagesAsSent");}protected markMessagesAsSent_args getEmptyArgsInstance() {return new markMessagesAsSent_args();}protected markMessagesAsSent_result getResult(I iface, markMessagesAsSent_args args) throws org.apache.thrift.TException {markMessagesAsSent_result result = new markMessagesAsSent_result();result.success = iface.markMessagesAsSent(args.userSmsList);result.setSuccessIsSet(true);return result;}}private static class markMessagesAsRetry<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsRetry_args> {public markMessagesAsRetry() {super("markMessagesAsRetry");}protected markMessagesAsRetry_args getEmptyArgsInstance() {return new markMessagesAsRetry_args();}protected markMessagesAsRetry_result getResult(I iface, markMessagesAsRetry_args args) throws org.apache.thrift.TException {markMessagesAsRetry_result result = new markMessagesAsRetry_result();result.success = iface.markMessagesAsRetry(args.userSmsList);result.setSuccessIsSet(true);return result;}}private static class authoriseDealer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authoriseDealer_args> {public authoriseDealer() {super("authoriseDealer");}protected authoriseDealer_args getEmptyArgsInstance() {return new authoriseDealer_args();}protected authoriseDealer_result getResult(I iface, authoriseDealer_args args) throws org.apache.thrift.TException {authoriseDealer_result result = new authoriseDealer_result();result.success = iface.authoriseDealer(args.dealer);return result;}}}public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField EMAIL_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("emailFrom", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField SUBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("subject", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField BODY_FIELD_DESC = new org.apache.thrift.protocol.TField("body", org.apache.thrift.protocol.TType.STRING, (short)4);private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)5);private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)6);private static final org.apache.thrift.protocol.TField CC_FIELD_DESC = new org.apache.thrift.protocol.TField("cc", org.apache.thrift.protocol.TType.LIST, (short)7);private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)8);private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)9);private List<String> emailTo; // requiredprivate String emailFrom; // requiredprivate String subject; // requiredprivate String body; // requiredprivate String source; // requiredprivate String emailType; // requiredprivate List<String> cc; // requiredprivate List<String> bcc; // requiredprivate long sourceId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.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"),CC((short)7, "cc"),BCC((short)8, "bcc"),SOURCE_ID((short)9, "sourceId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EMAIL_TOreturn EMAIL_TO;case 2: // EMAIL_FROMreturn EMAIL_FROM;case 3: // SUBJECTreturn SUBJECT;case 4: // BODYreturn BODY;case 5: // SOURCEreturn SOURCE;case 6: // EMAIL_TYPEreturn EMAIL_TYPE;case 7: // CCreturn CC;case 8: // BCCreturn BCC;case 9: // SOURCE_IDreturn SOURCE_ID;default:return null;}}/*** 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 __SOURCEID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);}public saveUserEmailForSending_args() {}public saveUserEmailForSending_args(List<String> emailTo,String emailFrom,String subject,String body,String source,String emailType,List<String> cc,List<String> bcc,long sourceId){this();this.emailTo = emailTo;this.emailFrom = emailFrom;this.subject = subject;this.body = body;this.source = source;this.emailType = emailType;this.cc = cc;this.bcc = bcc;this.sourceId = sourceId;setSourceIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public saveUserEmailForSending_args(saveUserEmailForSending_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetEmailTo()) {List<String> __this__emailTo = new ArrayList<String>();for (String other_element : other.emailTo) {__this__emailTo.add(other_element);}this.emailTo = __this__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;}if (other.isSetCc()) {List<String> __this__cc = new ArrayList<String>();for (String other_element : other.cc) {__this__cc.add(other_element);}this.cc = __this__cc;}if (other.isSetBcc()) {List<String> __this__bcc = new ArrayList<String>();for (String other_element : other.bcc) {__this__bcc.add(other_element);}this.bcc = __this__bcc;}this.sourceId = other.sourceId;}public saveUserEmailForSending_args deepCopy() {return new saveUserEmailForSending_args(this);}@Overridepublic void clear() {this.emailTo = null;this.emailFrom = null;this.subject = null;this.body = null;this.source = null;this.emailType = null;this.cc = null;this.bcc = null;setSourceIdIsSet(false);this.sourceId = 0;}public int getEmailToSize() {return (this.emailTo == null) ? 0 : this.emailTo.size();}public java.util.Iterator<String> getEmailToIterator() {return (this.emailTo == null) ? null : this.emailTo.iterator();}public void addToEmailTo(String elem) {if (this.emailTo == null) {this.emailTo = new ArrayList<String>();}this.emailTo.add(elem);}public List<String> getEmailTo() {return this.emailTo;}public void setEmailTo(List<String> emailTo) {this.emailTo = emailTo;}public void unsetEmailTo() {this.emailTo = null;}/** Returns true if field emailTo is set (has been assigned 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 void setEmailFrom(String emailFrom) {this.emailFrom = emailFrom;}public void unsetEmailFrom() {this.emailFrom = null;}/** Returns true if field emailFrom is set (has been assigned 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 void setSubject(String subject) {this.subject = subject;}public void unsetSubject() {this.subject = null;}/** Returns true if field subject is set (has been assigned 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 void setBody(String body) {this.body = body;}public void unsetBody() {this.body = null;}/** Returns true if field body is set (has been assigned 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 void setSource(String source) {this.source = source;}public void unsetSource() {this.source = null;}/** Returns true if field source is set (has been assigned 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 void setEmailType(String emailType) {this.emailType = emailType;}public void unsetEmailType() {this.emailType = null;}/** Returns true if field emailType is set (has been assigned a value) and false otherwise */public boolean isSetEmailType() {return this.emailType != null;}public void setEmailTypeIsSet(boolean value) {if (!value) {this.emailType = null;}}public int getCcSize() {return (this.cc == null) ? 0 : this.cc.size();}public java.util.Iterator<String> getCcIterator() {return (this.cc == null) ? null : this.cc.iterator();}public void addToCc(String elem) {if (this.cc == null) {this.cc = new ArrayList<String>();}this.cc.add(elem);}public List<String> getCc() {return this.cc;}public void setCc(List<String> cc) {this.cc = cc;}public void unsetCc() {this.cc = null;}/** Returns true if field cc is set (has been assigned a value) and false otherwise */public boolean isSetCc() {return this.cc != null;}public void setCcIsSet(boolean value) {if (!value) {this.cc = null;}}public int getBccSize() {return (this.bcc == null) ? 0 : this.bcc.size();}public java.util.Iterator<String> getBccIterator() {return (this.bcc == null) ? null : this.bcc.iterator();}public void addToBcc(String elem) {if (this.bcc == null) {this.bcc = new ArrayList<String>();}this.bcc.add(elem);}public List<String> getBcc() {return this.bcc;}public void setBcc(List<String> bcc) {this.bcc = bcc;}public void unsetBcc() {this.bcc = null;}/** Returns true if field bcc is set (has been assigned a value) and false otherwise */public boolean isSetBcc() {return this.bcc != null;}public void setBccIsSet(boolean value) {if (!value) {this.bcc = null;}}public long getSourceId() {return this.sourceId;}public void setSourceId(long sourceId) {this.sourceId = sourceId;setSourceIdIsSet(true);}public void unsetSourceId() {__isset_bit_vector.clear(__SOURCEID_ISSET_ID);}/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */public boolean isSetSourceId() {return __isset_bit_vector.get(__SOURCEID_ISSET_ID);}public void setSourceIdIsSet(boolean value) {__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case EMAIL_TO:if (value == null) {unsetEmailTo();} else {setEmailTo((List<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;case CC:if (value == null) {unsetCc();} else {setCc((List<String>)value);}break;case BCC:if (value == null) {unsetBcc();} else {setBcc((List<String>)value);}break;case SOURCE_ID:if (value == null) {unsetSourceId();} else {setSourceId((Long)value);}break;}}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();case CC:return getCc();case BCC:return getBcc();case SOURCE_ID:return Long.valueOf(getSourceId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}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();case CC:return isSetCc();case BCC:return isSetBcc();case SOURCE_ID:return isSetSourceId();}throw new IllegalStateException();}@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;}boolean this_present_cc = true && this.isSetCc();boolean that_present_cc = true && that.isSetCc();if (this_present_cc || that_present_cc) {if (!(this_present_cc && that_present_cc))return false;if (!this.cc.equals(that.cc))return false;}boolean this_present_bcc = true && this.isSetBcc();boolean that_present_bcc = true && that.isSetBcc();if (this_present_bcc || that_present_bcc) {if (!(this_present_bcc && that_present_bcc))return false;if (!this.bcc.equals(that.bcc))return false;}boolean this_present_sourceId = true;boolean that_present_sourceId = true;if (this_present_sourceId || that_present_sourceId) {if (!(this_present_sourceId && that_present_sourceId))return false;if (this.sourceId != that.sourceId)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(typedOther.isSetEmailTo());if (lastComparison != 0) {return lastComparison;}if (isSetEmailTo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());if (lastComparison != 0) {return lastComparison;}if (isSetEmailFrom()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());if (lastComparison != 0) {return lastComparison;}if (isSetSubject()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());if (lastComparison != 0) {return lastComparison;}if (isSetBody()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());if (lastComparison != 0) {return lastComparison;}if (isSetSource()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());if (lastComparison != 0) {return lastComparison;}if (isSetEmailType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());if (lastComparison != 0) {return lastComparison;}if (isSetCc()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());if (lastComparison != 0) {return lastComparison;}if (isSetBcc()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());if (lastComparison != 0) {return lastComparison;}if (isSetSourceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EMAIL_TOif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();this.emailTo = new ArrayList<String>(_list20.size);for (int _i21 = 0; _i21 < _list20.size; ++_i21){String _elem22; // required_elem22 = iprot.readString();this.emailTo.add(_elem22);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // EMAIL_FROMif (field.type == org.apache.thrift.protocol.TType.STRING) {this.emailFrom = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // SUBJECTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.subject = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // BODYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.body = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // SOURCEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.source = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // EMAIL_TYPEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.emailType = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // CCif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();this.cc = new ArrayList<String>(_list23.size);for (int _i24 = 0; _i24 < _list23.size; ++_i24){String _elem25; // required_elem25 = iprot.readString();this.cc.add(_elem25);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // BCCif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();this.bcc = new ArrayList<String>(_list26.size);for (int _i27 = 0; _i27 < _list26.size; ++_i27){String _elem28; // required_elem28 = iprot.readString();this.bcc.add(_elem28);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // SOURCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.sourceId = iprot.readI64();setSourceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.emailTo != null) {oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));for (String _iter29 : this.emailTo){oprot.writeString(_iter29);}oprot.writeListEnd();}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();}if (this.cc != null) {oprot.writeFieldBegin(CC_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));for (String _iter30 : this.cc){oprot.writeString(_iter30);}oprot.writeListEnd();}oprot.writeFieldEnd();}if (this.bcc != null) {oprot.writeFieldBegin(BCC_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));for (String _iter31 : this.bcc){oprot.writeString(_iter31);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);oprot.writeI64(this.sourceId);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;if (!first) sb.append(", ");sb.append("cc:");if (this.cc == null) {sb.append("null");} else {sb.append(this.cc);}first = false;if (!first) sb.append(", ");sb.append("bcc:");if (this.bcc == null) {sb.append("null");} else {sb.append(this.bcc);}first = false;if (!first) sb.append(", ");sb.append("sourceId:");sb.append(this.sourceId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);}public saveUserEmailForSending_result() {}public saveUserEmailForSending_result(long success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public saveUserEmailForSending_result(saveUserEmailForSending_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 saveUserEmailForSending_result deepCopy() {return new saveUserEmailForSending_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.se = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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((Long)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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_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(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(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(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("saveUserEmailForSending_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);}public getEmailsToBeSent_args() {}/*** Performs a deep copy on <i>other</i>.*/public getEmailsToBeSent_args(getEmailsToBeSent_args other) {}public getEmailsToBeSent_args deepCopy() {return new getEmailsToBeSent_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@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;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;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<UserEmail> success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.se = null;}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 void setSuccess(List<UserEmail> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();this.success = new ArrayList<UserEmail>(_list32.size);for (int _i33 = 0; _i33 < _list32.size; ++_i33){UserEmail _elem34; // required_elem34 = new UserEmail();_elem34.read(iprot);this.success.add(_elem34);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (UserEmail _iter35 : this.success){_iter35.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.I64, (short)1);private long emailId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EMAIL_ID((short)1, "emailId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EMAIL_IDreturn EMAIL_ID;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setEmailIdIsSet(false);this.emailId = 0;}public long getEmailId() {return this.emailId;}public void setEmailId(long emailId) {this.emailId = emailId;setEmailIdIsSet(true);}public void unsetEmailId() {__isset_bit_vector.clear(__EMAILID_ISSET_ID);}/** Returns true if field emailId is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case EMAIL_ID:return Long.valueOf(getEmailId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EMAIL_ID:return isSetEmailId();}throw new IllegalStateException();}@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(typedOther.isSetEmailId());if (lastComparison != 0) {return lastComparison;}if (isSetEmailId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EMAIL_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.emailId = iprot.readI64();setEmailIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.se = null;}public HelperServiceException getSe() {return this.se;}public void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Mail mail; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {MAIL((short)1, "mail");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // MAILreturn MAIL;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.mail = null;}public Mail getMail() {return this.mail;}public void setMail(Mail mail) {this.mail = mail;}public void unsetMail() {this.mail = null;}/** Returns true if field mail is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case MAIL:return getMail();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case MAIL:return isSetMail();}throw new IllegalStateException();}@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(typedOther.isSetMail());if (lastComparison != 0) {return lastComparison;}if (isSetMail()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // MAILif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.mail = new Mail();this.mail.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.se = null;}public HelperServiceException getSe() {return this.se;}public void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TextMessage message; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {MESSAGE((short)1, "message");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // MESSAGEreturn MESSAGE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.message = null;}public TextMessage getMessage() {return this.message;}public void setMessage(TextMessage message) {this.message = message;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case MESSAGE:return getMessage();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case MESSAGE:return isSetMessage();}throw new IllegalStateException();}@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(typedOther.isSetMessage());if (lastComparison != 0) {return lastComparison;}if (isSetMessage()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // MESSAGEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.message = new TextMessage();this.message.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.se = null;}public HelperServiceException getSe() {return this.se;}public void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Message message; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {MESSAGE((short)1, "message");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // MESSAGEreturn MESSAGE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.message = null;}public Message getMessage() {return this.message;}public void setMessage(Message message) {this.message = message;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case MESSAGE:return getMessage();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case MESSAGE:return isSetMessage();}throw new IllegalStateException();}@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(typedOther.isSetMessage());if (lastComparison != 0) {return lastComparison;}if (isSetMessage()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // MESSAGEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.message = new Message();this.message.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.se = null;}public HelperServiceException getSe() {return this.se;}public void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)2);private long id; // requiredprivate String message; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id"),MESSAGE((short)2, "message");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;case 2: // MESSAGEreturn MESSAGE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;this.message = null;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned 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 void setMessage(String message) {this.message = message;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case MESSAGE:return getMessage();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();case MESSAGE:return isSetMessage();}throw new IllegalStateException();}@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(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());if (lastComparison != 0) {return lastComparison;}if (isSetMessage()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // MESSAGEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.message = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.se = null;}public HelperServiceException getSe() {return this.se;}public void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private long id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();}throw new IllegalStateException();}@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(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Message success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.se = null;}public Message getSuccess() {return this.success;}public void setSuccess(Message success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Message();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PARAMS_FIELD_DESC = new org.apache.thrift.protocol.TField("params", org.apache.thrift.protocol.TType.MAP, (short)2);private long id; // requiredprivate Map<String,String> params; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id"),PARAMS((short)2, "params");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;case 2: // PARAMSreturn PARAMS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;this.params = null;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned 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 void setParams(Map<String,String> params) {this.params = params;}public void unsetParams() {this.params = null;}/** Returns true if field params is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case PARAMS:return getParams();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();case PARAMS:return isSetParams();}throw new IllegalStateException();}@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 int compareTo(getSubstitutedMessage_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());if (lastComparison != 0) {return lastComparison;}if (isSetParams()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PARAMSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();this.params = new HashMap<String,String>(2*_map36.size);for (int _i37 = 0; _i37 < _map36.size; ++_i37){String _key38; // requiredString _val39; // required_key38 = iprot.readString();_val39 = iprot.readString();this.params.put(_key38, _val39);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));for (Map.Entry<String, String> _iter40 : this.params.entrySet()){oprot.writeString(_iter40.getKey());oprot.writeString(_iter40.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Message success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.se = null;}public Message getSuccess() {return this.success;}public void setSuccess(Message success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Message();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);private String username; // requiredprivate String password; // requiredprivate long warehouseId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password"),WAREHOUSE_ID((short)3, "warehouseId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;case 2: // PASSWORDreturn PASSWORD;case 3: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.username = null;this.password = null;setWarehouseIdIsSet(false);this.warehouseId = 0;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned 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 void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();case WAREHOUSE_ID:return isSetWarehouseId();}throw new IllegalStateException();}@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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.se = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private String username; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.username = null;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();}throw new IllegalStateException();}@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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.se = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private String username; // requiredprivate String password; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;case 2: // PASSWORDreturn PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.username = null;this.password = null;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}@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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private DashboardUser success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.se = null;}public DashboardUser getSuccess() {return this.success;}public void setSuccess(DashboardUser success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new DashboardUser();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField OLD_PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("oldPassword", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField NEW_PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("newPassword", org.apache.thrift.protocol.TType.STRING, (short)3);private String username; // requiredprivate String oldPassword; // requiredprivate String newPassword; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username"),OLD_PASSWORD((short)2, "oldPassword"),NEW_PASSWORD((short)3, "newPassword");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;case 2: // OLD_PASSWORDreturn OLD_PASSWORD;case 3: // NEW_PASSWORDreturn NEW_PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.username = null;this.oldPassword = null;this.newPassword = null;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 void setOldPassword(String oldPassword) {this.oldPassword = oldPassword;}public void unsetOldPassword() {this.oldPassword = null;}/** Returns true if field oldPassword is set (has been assigned 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 void setNewPassword(String newPassword) {this.newPassword = newPassword;}public void unsetNewPassword() {this.newPassword = null;}/** Returns true if field newPassword is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case OLD_PASSWORD:return getOldPassword();case NEW_PASSWORD:return getNewPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();case OLD_PASSWORD:return isSetOldPassword();case NEW_PASSWORD:return isSetNewPassword();}throw new IllegalStateException();}@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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());if (lastComparison != 0) {return lastComparison;}if (isSetOldPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());if (lastComparison != 0) {return lastComparison;}if (isSetNewPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OLD_PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.oldPassword = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // NEW_PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.newPassword = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.se = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private String username; // requiredprivate String password; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;case 2: // PASSWORDreturn PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.username = null;this.password = null;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}@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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private LogisticsUser success; // requiredprivate HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.hse = null;}public LogisticsUser getSuccess() {return this.success;}public void setSuccess(LogisticsUser success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case HSE:return isSetHse();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new LogisticsUser();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private String username; // requiredprivate String password; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;case 2: // PASSWORDreturn PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.username = null;this.password = null;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}@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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private StatisticsUser success; // requiredprivate HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.hse = null;}public StatisticsUser getSuccess() {return this.success;}public void setSuccess(StatisticsUser success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case HSE:return isSetHse();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new StatisticsUser();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private String username; // requiredprivate String password; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;case 2: // PASSWORDreturn PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.username = null;this.password = null;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}@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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private ReportUser success; // requiredprivate HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.hse = null;}public ReportUser getSuccess() {return this.success;}public void setSuccess(ReportUser success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case HSE:return isSetHse();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new ReportUser();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.I64, (short)1);private long role; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ROLE((short)1, "role");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ROLEreturn ROLE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {setRoleIsSet(false);this.role = 0;}public long getRole() {return this.role;}public void setRole(long role) {this.role = role;setRoleIsSet(true);}public void unsetRole() {__isset_bit_vector.clear(__ROLE_ISSET_ID);}/** Returns true if field role is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case ROLE:return Long.valueOf(getRole());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ROLE:return isSetRole();}throw new IllegalStateException();}@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(typedOther.isSetRole());if (lastComparison != 0) {return lastComparison;}if (isSetRole()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ROLEif (field.type == org.apache.thrift.protocol.TType.I64) {this.role = iprot.readI64();setRoleIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Report> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;}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 void setSuccess(List<Report> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();this.success = new ArrayList<Report>(_list41.size);for (int _i42 = 0; _i42 < _list41.size; ++_i42){Report _elem43; // required_elem43 = new Report();_elem43.read(iprot);this.success.add(_elem43);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Report _iter44 : this.success){_iter44.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private String username; // requiredprivate String password; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USERNAMEreturn USERNAME;case 2: // PASSWORDreturn PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);}public authenticateCatalogUser_args() {}public authenticateCatalogUser_args(String username,String password){this();this.username = username;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public authenticateCatalogUser_args(authenticateCatalogUser_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}}public authenticateCatalogUser_args deepCopy() {return new authenticateCatalogUser_args(this);}@Overridepublic void clear() {this.username = null;this.password = null;}public String getUsername() {return this.username;}public void setUsername(String username) {this.username = username;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been assigned 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 void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}@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;}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(typedOther.isSetUsername());if (lastComparison != 0) {return lastComparison;}if (isSetUsername()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USERNAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.username = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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("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;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private CatalogDashboardUser success; // requiredprivate HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.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);}@Overridepublic void clear() {this.success = null;this.hse = null;}public CatalogDashboardUser getSuccess() {return this.success;}public void setSuccess(CatalogDashboardUser success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case HSE:return isSetHse();}throw new IllegalStateException();}@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(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new CatalogDashboardUser();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");private static final org.apache.thrift.protocol.TField ENTITY_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("entityIds", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)2);private List<Long> entityIds; // requiredprivate String email; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ENTITY_IDS((short)1, "entityIds"),EMAIL((short)2, "email");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ENTITY_IDSreturn ENTITY_IDS;case 2: // EMAILreturn EMAIL;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);}public shareEntities_args() {}public shareEntities_args(List<Long> entityIds,String email){this();this.entityIds = entityIds;this.email = email;}/*** Performs a deep copy on <i>other</i>.*/public shareEntities_args(shareEntities_args other) {if (other.isSetEntityIds()) {List<Long> __this__entityIds = new ArrayList<Long>();for (Long other_element : other.entityIds) {__this__entityIds.add(other_element);}this.entityIds = __this__entityIds;}if (other.isSetEmail()) {this.email = other.email;}}public shareEntities_args deepCopy() {return new shareEntities_args(this);}@Overridepublic void clear() {this.entityIds = null;this.email = null;}public int getEntityIdsSize() {return (this.entityIds == null) ? 0 : this.entityIds.size();}public java.util.Iterator<Long> getEntityIdsIterator() {return (this.entityIds == null) ? null : this.entityIds.iterator();}public void addToEntityIds(long elem) {if (this.entityIds == null) {this.entityIds = new ArrayList<Long>();}this.entityIds.add(elem);}public List<Long> getEntityIds() {return this.entityIds;}public void setEntityIds(List<Long> entityIds) {this.entityIds = entityIds;}public void unsetEntityIds() {this.entityIds = null;}/** Returns true if field entityIds is set (has been assigned a value) and false otherwise */public boolean isSetEntityIds() {return this.entityIds != null;}public void setEntityIdsIsSet(boolean value) {if (!value) {this.entityIds = null;}}public String getEmail() {return this.email;}public void setEmail(String email) {this.email = email;}public void unsetEmail() {this.email = null;}/** Returns true if field email is set (has been assigned a value) and false otherwise */public boolean isSetEmail() {return this.email != null;}public void setEmailIsSet(boolean value) {if (!value) {this.email = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ENTITY_IDS:if (value == null) {unsetEntityIds();} else {setEntityIds((List<Long>)value);}break;case EMAIL:if (value == null) {unsetEmail();} else {setEmail((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ENTITY_IDS:return getEntityIds();case EMAIL:return getEmail();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ENTITY_IDS:return isSetEntityIds();case EMAIL:return isSetEmail();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof shareEntities_args)return this.equals((shareEntities_args)that);return false;}public boolean equals(shareEntities_args that) {if (that == null)return false;boolean this_present_entityIds = true && this.isSetEntityIds();boolean that_present_entityIds = true && that.isSetEntityIds();if (this_present_entityIds || that_present_entityIds) {if (!(this_present_entityIds && that_present_entityIds))return false;if (!this.entityIds.equals(that.entityIds))return false;}boolean this_present_email = true && this.isSetEmail();boolean that_present_email = true && that.isSetEmail();if (this_present_email || that_present_email) {if (!(this_present_email && that_present_email))return false;if (!this.email.equals(that.email))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(shareEntities_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;shareEntities_args typedOther = (shareEntities_args)other;lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());if (lastComparison != 0) {return lastComparison;}if (isSetEntityIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());if (lastComparison != 0) {return lastComparison;}if (isSetEmail()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ENTITY_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();this.entityIds = new ArrayList<Long>(_list45.size);for (int _i46 = 0; _i46 < _list45.size; ++_i46){long _elem47; // required_elem47 = iprot.readI64();this.entityIds.add(_elem47);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // EMAILif (field.type == org.apache.thrift.protocol.TType.STRING) {this.email = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.entityIds != null) {oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));for (long _iter48 : this.entityIds){oprot.writeI64(_iter48);}oprot.writeListEnd();}oprot.writeFieldEnd();}if (this.email != null) {oprot.writeFieldBegin(EMAIL_FIELD_DESC);oprot.writeString(this.email);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("shareEntities_args(");boolean first = true;sb.append("entityIds:");if (this.entityIds == null) {sb.append("null");} else {sb.append(this.entityIds);}first = false;if (!first) sb.append(", ");sb.append("email:");if (this.email == null) {sb.append("null");} else {sb.append(this.email);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);}public shareEntities_result() {}public shareEntities_result(HelperServiceException hse){this();this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public shareEntities_result(shareEntities_result other) {if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public shareEntities_result deepCopy() {return new shareEntities_result(this);}@Overridepublic void clear() {this.hse = null;}public HelperServiceException getHse() {return this.hse;}public void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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 HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case HSE:return isSetHse();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof shareEntities_result)return this.equals((shareEntities_result)that);return false;}public boolean equals(shareEntities_result that) {if (that == null)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(shareEntities_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;shareEntities_result typedOther = (shareEntities_result)other;lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);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("shareEntities_result(");boolean first = true;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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);}public getAgents_args() {}/*** Performs a deep copy on <i>other</i>.*/public getAgents_args(getAgents_args other) {}public getAgents_args deepCopy() {return new getAgents_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgents_args)return this.equals((getAgents_args)that);return false;}public boolean equals(getAgents_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgents_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgents_args typedOther = (getAgents_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgents_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Agent> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);}public getAgents_result() {}public getAgents_result(List<Agent> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAgents_result(getAgents_result other) {if (other.isSetSuccess()) {List<Agent> __this__success = new ArrayList<Agent>();for (Agent other_element : other.success) {__this__success.add(new Agent(other_element));}this.success = __this__success;}}public getAgents_result deepCopy() {return new getAgents_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Agent> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Agent elem) {if (this.success == null) {this.success = new ArrayList<Agent>();}this.success.add(elem);}public List<Agent> getSuccess() {return this.success;}public void setSuccess(List<Agent> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Agent>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgents_result)return this.equals((getAgents_result)that);return false;}public boolean equals(getAgents_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(getAgents_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgents_result typedOther = (getAgents_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();this.success = new ArrayList<Agent>(_list49.size);for (int _i50 = 0; _i50 < _list49.size; ++_i50){Agent _elem51; // required_elem51 = new Agent();_elem51.read(iprot);this.success.add(_elem51);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Agent _iter52 : this.success){_iter52.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgents_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private String emailId; // requiredprivate String password; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EMAIL_ID((short)1, "emailId"),PASSWORD((short)2, "password");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EMAIL_IDreturn EMAIL_ID;case 2: // PASSWORDreturn PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);}public validateLogIn_args() {}public validateLogIn_args(String emailId,String password){this();this.emailId = emailId;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public validateLogIn_args(validateLogIn_args other) {if (other.isSetEmailId()) {this.emailId = other.emailId;}if (other.isSetPassword()) {this.password = other.password;}}public validateLogIn_args deepCopy() {return new validateLogIn_args(this);}@Overridepublic void clear() {this.emailId = null;this.password = null;}public String getEmailId() {return this.emailId;}public void setEmailId(String emailId) {this.emailId = emailId;}public void unsetEmailId() {this.emailId = null;}/** Returns true if field emailId is set (has been assigned a value) and false otherwise */public boolean isSetEmailId() {return this.emailId != null;}public void setEmailIdIsSet(boolean value) {if (!value) {this.emailId = null;}}public String getPassword() {return this.password;}public void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned 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 EMAIL_ID:if (value == null) {unsetEmailId();} else {setEmailId((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EMAIL_ID:return getEmailId();case PASSWORD:return getPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EMAIL_ID:return isSetEmailId();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateLogIn_args)return this.equals((validateLogIn_args)that);return false;}public boolean equals(validateLogIn_args that) {if (that == null)return false;boolean this_present_emailId = true && this.isSetEmailId();boolean that_present_emailId = true && that.isSetEmailId();if (this_present_emailId || that_present_emailId) {if (!(this_present_emailId && that_present_emailId))return false;if (!this.emailId.equals(that.emailId))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(validateLogIn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateLogIn_args typedOther = (validateLogIn_args)other;lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());if (lastComparison != 0) {return lastComparison;}if (isSetEmailId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EMAIL_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.emailId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.emailId != null) {oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);oprot.writeString(this.emailId);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("validateLogIn_args(");boolean first = true;sb.append("emailId:");if (this.emailId == null) {sb.append("null");} else {sb.append(this.emailId);}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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);}public validateLogIn_result() {}public validateLogIn_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public validateLogIn_result(validateLogIn_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public validateLogIn_result deepCopy() {return new validateLogIn_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateLogIn_result)return this.equals((validateLogIn_result)that);return false;}public boolean equals(validateLogIn_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateLogIn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateLogIn_result typedOther = (validateLogIn_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateLogIn_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);private String agentEmailId; // requiredprivate String password; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId"),PASSWORD((short)2, "password");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AGENT_EMAIL_IDreturn AGENT_EMAIL_ID;case 2: // PASSWORDreturn PASSWORD;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);}public updatePasswordForAgent_args() {}public updatePasswordForAgent_args(String agentEmailId,String password){this();this.agentEmailId = agentEmailId;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public updatePasswordForAgent_args(updatePasswordForAgent_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}if (other.isSetPassword()) {this.password = other.password;}}public updatePasswordForAgent_args deepCopy() {return new updatePasswordForAgent_args(this);}@Overridepublic void clear() {this.agentEmailId = null;this.password = null;}public String getAgentEmailId() {return this.agentEmailId;}public void setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public String getPassword() {return this.password;}public void setPassword(String password) {this.password = password;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been assigned a value) and false otherwise */public boolean isSetPassword() {return this.password != null;}public void setPasswordIsSet(boolean value) {if (!value) {this.password = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();case PASSWORD:return getPassword();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePasswordForAgent_args)return this.equals((updatePasswordForAgent_args)that);return false;}public boolean equals(updatePasswordForAgent_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}boolean this_present_password = true && this.isSetPassword();boolean that_present_password = true && that.isSetPassword();if (this_present_password || that_present_password) {if (!(this_present_password && that_present_password))return false;if (!this.password.equals(that.password))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePasswordForAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}if (isSetAgentEmailId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());if (lastComparison != 0) {return lastComparison;}if (isSetPassword()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AGENT_EMAIL_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.agentEmailId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PASSWORDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.password = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);}public updatePasswordForAgent_result() {}/*** Performs a deep copy on <i>other</i>.*/public updatePasswordForAgent_result(updatePasswordForAgent_result other) {}public updatePasswordForAgent_result deepCopy() {return new updatePasswordForAgent_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePasswordForAgent_result)return this.equals((updatePasswordForAgent_result)that);return false;}public boolean equals(updatePasswordForAgent_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePasswordForAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);private String agentEmailId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AGENT_EMAIL_IDreturn AGENT_EMAIL_ID;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);}public getRoleNamesForAgent_args() {}public getRoleNamesForAgent_args(String agentEmailId){this();this.agentEmailId = agentEmailId;}/*** Performs a deep copy on <i>other</i>.*/public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}}public getRoleNamesForAgent_args deepCopy() {return new getRoleNamesForAgent_args(this);}@Overridepublic void clear() {this.agentEmailId = null;}public String getAgentEmailId() {return this.agentEmailId;}public void setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRoleNamesForAgent_args)return this.equals((getRoleNamesForAgent_args)that);return false;}public boolean equals(getRoleNamesForAgent_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRoleNamesForAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}if (isSetAgentEmailId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AGENT_EMAIL_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.agentEmailId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);}public getRoleNamesForAgent_result() {}public getRoleNamesForAgent_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getRoleNamesForAgent_result deepCopy() {return new getRoleNamesForAgent_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRoleNamesForAgent_result)return this.equals((getRoleNamesForAgent_result)that);return false;}public boolean equals(getRoleNamesForAgent_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRoleNamesForAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();this.success = new ArrayList<String>(_list53.size);for (int _i54 = 0; _i54 < _list53.size; ++_i54){String _elem55; // required_elem55 = iprot.readString();this.success.add(_elem55);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter56 : this.success){oprot.writeString(_iter56);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);private String roleName; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ROLE_NAME((short)1, "roleName");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ROLE_NAMEreturn ROLE_NAME;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);}public getPermissionsForRoleName_args() {}public getPermissionsForRoleName_args(String roleName){this();this.roleName = roleName;}/*** Performs a deep copy on <i>other</i>.*/public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {if (other.isSetRoleName()) {this.roleName = other.roleName;}}public getPermissionsForRoleName_args deepCopy() {return new getPermissionsForRoleName_args(this);}@Overridepublic void clear() {this.roleName = null;}public String getRoleName() {return this.roleName;}public void setRoleName(String roleName) {this.roleName = roleName;}public void unsetRoleName() {this.roleName = null;}/** Returns true if field roleName is set (has been assigned a value) and false otherwise */public boolean isSetRoleName() {return this.roleName != null;}public void setRoleNameIsSet(boolean value) {if (!value) {this.roleName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ROLE_NAME:if (value == null) {unsetRoleName();} else {setRoleName((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ROLE_NAME:return getRoleName();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ROLE_NAME:return isSetRoleName();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPermissionsForRoleName_args)return this.equals((getPermissionsForRoleName_args)that);return false;}public boolean equals(getPermissionsForRoleName_args that) {if (that == null)return false;boolean this_present_roleName = true && this.isSetRoleName();boolean that_present_roleName = true && that.isSetRoleName();if (this_present_roleName || that_present_roleName) {if (!(this_present_roleName && that_present_roleName))return false;if (!this.roleName.equals(that.roleName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPermissionsForRoleName_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());if (lastComparison != 0) {return lastComparison;}if (isSetRoleName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ROLE_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.roleName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.roleName != null) {oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);oprot.writeString(this.roleName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");boolean first = true;sb.append("roleName:");if (this.roleName == null) {sb.append("null");} else {sb.append(this.roleName);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<String> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);}public getPermissionsForRoleName_result() {}public getPermissionsForRoleName_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getPermissionsForRoleName_result deepCopy() {return new getPermissionsForRoleName_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPermissionsForRoleName_result)return this.equals((getPermissionsForRoleName_result)that);return false;}public boolean equals(getPermissionsForRoleName_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPermissionsForRoleName_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();this.success = new ArrayList<String>(_list57.size);for (int _i58 = 0; _i58 < _list57.size; ++_i58){String _elem59; // required_elem59 = iprot.readString();this.success.add(_elem59);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter60 : this.success){oprot.writeString(_iter60);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)2);private String url; // requiredprivate String text; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {URL((short)1, "url"),TEXT((short)2, "text");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // URLreturn URL;case 2: // TEXTreturn TEXT;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);}public saveQuickLink_args() {}public saveQuickLink_args(String url,String text){this();this.url = url;this.text = text;}/*** Performs a deep copy on <i>other</i>.*/public saveQuickLink_args(saveQuickLink_args other) {if (other.isSetUrl()) {this.url = other.url;}if (other.isSetText()) {this.text = other.text;}}public saveQuickLink_args deepCopy() {return new saveQuickLink_args(this);}@Overridepublic void clear() {this.url = null;this.text = null;}public String getUrl() {return this.url;}public void setUrl(String url) {this.url = url;}public void unsetUrl() {this.url = null;}/** Returns true if field url is set (has been assigned a value) and false otherwise */public boolean isSetUrl() {return this.url != null;}public void setUrlIsSet(boolean value) {if (!value) {this.url = null;}}public String getText() {return this.text;}public void setText(String text) {this.text = text;}public void unsetText() {this.text = null;}/** Returns true if field text is set (has been assigned a value) and false otherwise */public boolean isSetText() {return this.text != null;}public void setTextIsSet(boolean value) {if (!value) {this.text = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case URL:if (value == null) {unsetUrl();} else {setUrl((String)value);}break;case TEXT:if (value == null) {unsetText();} else {setText((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case URL:return getUrl();case TEXT:return getText();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case URL:return isSetUrl();case TEXT:return isSetText();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveQuickLink_args)return this.equals((saveQuickLink_args)that);return false;}public boolean equals(saveQuickLink_args that) {if (that == null)return false;boolean this_present_url = true && this.isSetUrl();boolean that_present_url = true && that.isSetUrl();if (this_present_url || that_present_url) {if (!(this_present_url && that_present_url))return false;if (!this.url.equals(that.url))return false;}boolean this_present_text = true && this.isSetText();boolean that_present_text = true && that.isSetText();if (this_present_text || that_present_text) {if (!(this_present_text && that_present_text))return false;if (!this.text.equals(that.text))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveQuickLink_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveQuickLink_args typedOther = (saveQuickLink_args)other;lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());if (lastComparison != 0) {return lastComparison;}if (isSetUrl()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());if (lastComparison != 0) {return lastComparison;}if (isSetText()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // URLif (field.type == org.apache.thrift.protocol.TType.STRING) {this.url = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TEXTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.text = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.url != null) {oprot.writeFieldBegin(URL_FIELD_DESC);oprot.writeString(this.url);oprot.writeFieldEnd();}if (this.text != null) {oprot.writeFieldBegin(TEXT_FIELD_DESC);oprot.writeString(this.text);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveQuickLink_args(");boolean first = true;sb.append("url:");if (this.url == null) {sb.append("null");} else {sb.append(this.url);}first = false;if (!first) sb.append(", ");sb.append("text:");if (this.text == null) {sb.append("null");} else {sb.append(this.text);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);}public saveQuickLink_result() {}public saveQuickLink_result(HelperServiceException hse){this();this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public saveQuickLink_result(saveQuickLink_result other) {if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public saveQuickLink_result deepCopy() {return new saveQuickLink_result(this);}@Overridepublic void clear() {this.hse = null;}public HelperServiceException getHse() {return this.hse;}public void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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 HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case HSE:return isSetHse();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveQuickLink_result)return this.equals((saveQuickLink_result)that);return false;}public boolean equals(saveQuickLink_result that) {if (that == null)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(saveQuickLink_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveQuickLink_result typedOther = (saveQuickLink_result)other;lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);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("saveQuickLink_result(");boolean first = true;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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);}public getQuickLinks_args() {}/*** Performs a deep copy on <i>other</i>.*/public getQuickLinks_args(getQuickLinks_args other) {}public getQuickLinks_args deepCopy() {return new getQuickLinks_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getQuickLinks_args)return this.equals((getQuickLinks_args)that);return false;}public boolean equals(getQuickLinks_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getQuickLinks_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getQuickLinks_args typedOther = (getQuickLinks_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getQuickLinks_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<QuickLink> success; // requiredprivate HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);}public getQuickLinks_result() {}public getQuickLinks_result(List<QuickLink> success,HelperServiceException hse){this();this.success = success;this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public getQuickLinks_result(getQuickLinks_result other) {if (other.isSetSuccess()) {List<QuickLink> __this__success = new ArrayList<QuickLink>();for (QuickLink other_element : other.success) {__this__success.add(new QuickLink(other_element));}this.success = __this__success;}if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public getQuickLinks_result deepCopy() {return new getQuickLinks_result(this);}@Overridepublic void clear() {this.success = null;this.hse = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<QuickLink> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(QuickLink elem) {if (this.success == null) {this.success = new ArrayList<QuickLink>();}this.success.add(elem);}public List<QuickLink> getSuccess() {return this.success;}public void setSuccess(List<QuickLink> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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((List<QuickLink>)value);}break;case HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case HSE:return isSetHse();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getQuickLinks_result)return this.equals((getQuickLinks_result)that);return false;}public boolean equals(getQuickLinks_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(getQuickLinks_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getQuickLinks_result typedOther = (getQuickLinks_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();this.success = new ArrayList<QuickLink>(_list61.size);for (int _i62 = 0; _i62 < _list61.size; ++_i62){QuickLink _elem63; // required_elem63 = new QuickLink();_elem63.read(iprot);this.success.add(_elem63);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (QuickLink _iter64 : this.success){_iter64.write(oprot);}oprot.writeListEnd();}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("getQuickLinks_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)3);private long id; // requiredprivate String url; // requiredprivate String text; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id"),URL((short)2, "url"),TEXT((short)3, "text");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;case 2: // URLreturn URL;case 3: // TEXTreturn TEXT;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);}public updateQuickLink_args() {}public updateQuickLink_args(long id,String url,String text){this();this.id = id;setIdIsSet(true);this.url = url;this.text = text;}/*** Performs a deep copy on <i>other</i>.*/public updateQuickLink_args(updateQuickLink_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;if (other.isSetUrl()) {this.url = other.url;}if (other.isSetText()) {this.text = other.text;}}public updateQuickLink_args deepCopy() {return new updateQuickLink_args(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;this.url = null;this.text = null;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned 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 getUrl() {return this.url;}public void setUrl(String url) {this.url = url;}public void unsetUrl() {this.url = null;}/** Returns true if field url is set (has been assigned a value) and false otherwise */public boolean isSetUrl() {return this.url != null;}public void setUrlIsSet(boolean value) {if (!value) {this.url = null;}}public String getText() {return this.text;}public void setText(String text) {this.text = text;}public void unsetText() {this.text = null;}/** Returns true if field text is set (has been assigned a value) and false otherwise */public boolean isSetText() {return this.text != null;}public void setTextIsSet(boolean value) {if (!value) {this.text = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case URL:if (value == null) {unsetUrl();} else {setUrl((String)value);}break;case TEXT:if (value == null) {unsetText();} else {setText((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case URL:return getUrl();case TEXT:return getText();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();case URL:return isSetUrl();case TEXT:return isSetText();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateQuickLink_args)return this.equals((updateQuickLink_args)that);return false;}public boolean equals(updateQuickLink_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_url = true && this.isSetUrl();boolean that_present_url = true && that.isSetUrl();if (this_present_url || that_present_url) {if (!(this_present_url && that_present_url))return false;if (!this.url.equals(that.url))return false;}boolean this_present_text = true && this.isSetText();boolean that_present_text = true && that.isSetText();if (this_present_text || that_present_text) {if (!(this_present_text && that_present_text))return false;if (!this.text.equals(that.text))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateQuickLink_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateQuickLink_args typedOther = (updateQuickLink_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());if (lastComparison != 0) {return lastComparison;}if (isSetUrl()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());if (lastComparison != 0) {return lastComparison;}if (isSetText()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // URLif (field.type == org.apache.thrift.protocol.TType.STRING) {this.url = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TEXTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.text = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();if (this.url != null) {oprot.writeFieldBegin(URL_FIELD_DESC);oprot.writeString(this.url);oprot.writeFieldEnd();}if (this.text != null) {oprot.writeFieldBegin(TEXT_FIELD_DESC);oprot.writeString(this.text);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateQuickLink_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("url:");if (this.url == null) {sb.append("null");} else {sb.append(this.url);}first = false;if (!first) sb.append(", ");sb.append("text:");if (this.text == null) {sb.append("null");} else {sb.append(this.text);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);}public updateQuickLink_result() {}public updateQuickLink_result(HelperServiceException hse){this();this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public updateQuickLink_result(updateQuickLink_result other) {if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public updateQuickLink_result deepCopy() {return new updateQuickLink_result(this);}@Overridepublic void clear() {this.hse = null;}public HelperServiceException getHse() {return this.hse;}public void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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 HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case HSE:return isSetHse();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateQuickLink_result)return this.equals((updateQuickLink_result)that);return false;}public boolean equals(updateQuickLink_result that) {if (that == null)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(updateQuickLink_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateQuickLink_result typedOther = (updateQuickLink_result)other;lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);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("updateQuickLink_result(");boolean first = true;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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");private static final org.apache.thrift.protocol.TField START_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDatetime", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField END_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endDatetime", org.apache.thrift.protocol.TType.I64, (short)2);private long startDatetime; // requiredprivate long endDatetime; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {START_DATETIME((short)1, "startDatetime"),END_DATETIME((short)2, "endDatetime");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // START_DATETIMEreturn START_DATETIME;case 2: // END_DATETIMEreturn END_DATETIME;default:return null;}}/*** 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 __STARTDATETIME_ISSET_ID = 0;private static final int __ENDDATETIME_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);}public getEmailsForNotificationsSent_args() {}public getEmailsForNotificationsSent_args(long startDatetime,long endDatetime){this();this.startDatetime = startDatetime;setStartDatetimeIsSet(true);this.endDatetime = endDatetime;setEndDatetimeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.startDatetime = other.startDatetime;this.endDatetime = other.endDatetime;}public getEmailsForNotificationsSent_args deepCopy() {return new getEmailsForNotificationsSent_args(this);}@Overridepublic void clear() {setStartDatetimeIsSet(false);this.startDatetime = 0;setEndDatetimeIsSet(false);this.endDatetime = 0;}public long getStartDatetime() {return this.startDatetime;}public void setStartDatetime(long startDatetime) {this.startDatetime = startDatetime;setStartDatetimeIsSet(true);}public void unsetStartDatetime() {__isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);}/** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */public boolean isSetStartDatetime() {return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);}public void setStartDatetimeIsSet(boolean value) {__isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);}public long getEndDatetime() {return this.endDatetime;}public void setEndDatetime(long endDatetime) {this.endDatetime = endDatetime;setEndDatetimeIsSet(true);}public void unsetEndDatetime() {__isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);}/** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */public boolean isSetEndDatetime() {return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);}public void setEndDatetimeIsSet(boolean value) {__isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case START_DATETIME:if (value == null) {unsetStartDatetime();} else {setStartDatetime((Long)value);}break;case END_DATETIME:if (value == null) {unsetEndDatetime();} else {setEndDatetime((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case START_DATETIME:return Long.valueOf(getStartDatetime());case END_DATETIME:return Long.valueOf(getEndDatetime());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case START_DATETIME:return isSetStartDatetime();case END_DATETIME:return isSetEndDatetime();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEmailsForNotificationsSent_args)return this.equals((getEmailsForNotificationsSent_args)that);return false;}public boolean equals(getEmailsForNotificationsSent_args that) {if (that == null)return false;boolean this_present_startDatetime = true;boolean that_present_startDatetime = true;if (this_present_startDatetime || that_present_startDatetime) {if (!(this_present_startDatetime && that_present_startDatetime))return false;if (this.startDatetime != that.startDatetime)return false;}boolean this_present_endDatetime = true;boolean that_present_endDatetime = true;if (this_present_endDatetime || that_present_endDatetime) {if (!(this_present_endDatetime && that_present_endDatetime))return false;if (this.endDatetime != that.endDatetime)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEmailsForNotificationsSent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());if (lastComparison != 0) {return lastComparison;}if (isSetStartDatetime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());if (lastComparison != 0) {return lastComparison;}if (isSetEndDatetime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // START_DATETIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDatetime = iprot.readI64();setStartDatetimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // END_DATETIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.endDatetime = iprot.readI64();setEndDatetimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);oprot.writeI64(this.startDatetime);oprot.writeFieldEnd();oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);oprot.writeI64(this.endDatetime);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");boolean first = true;sb.append("startDatetime:");sb.append(this.startDatetime);first = false;if (!first) sb.append(", ");sb.append("endDatetime:");sb.append(this.endDatetime);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField HSE_FIELD_DESC = new org.apache.thrift.protocol.TField("hse", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<String> success; // requiredprivate HelperServiceException hse; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),HSE((short)1, "hse");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // HSEreturn HSE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);}public getEmailsForNotificationsSent_result() {}public getEmailsForNotificationsSent_result(List<String> success,HelperServiceException hse){this();this.success = success;this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public getEmailsForNotificationsSent_result deepCopy() {return new getEmailsForNotificationsSent_result(this);}@Overridepublic void clear() {this.success = null;this.hse = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public void setSuccess(List<String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setHse(HelperServiceException hse) {this.hse = hse;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been assigned 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((List<String>)value);}break;case HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case HSE:return getHse();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case HSE:return isSetHse();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEmailsForNotificationsSent_result)return this.equals((getEmailsForNotificationsSent_result)that);return false;}public boolean equals(getEmailsForNotificationsSent_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(getEmailsForNotificationsSent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());if (lastComparison != 0) {return lastComparison;}if (isSetHse()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();this.success = new ArrayList<String>(_list65.size);for (int _i66 = 0; _i66 < _list65.size; ++_i66){String _elem67; // required_elem67 = iprot.readString();this.success.add(_elem67);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // HSEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));for (String _iter68 : this.success){oprot.writeString(_iter68);}oprot.writeListEnd();}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("getEmailsForNotificationsSent_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** 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 __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);}public getOrderConfirmationMail_args() {}public getOrderConfirmationMail_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public getOrderConfirmationMail_args deepCopy() {return new getOrderConfirmationMail_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderConfirmationMail_args)return this.equals((getOrderConfirmationMail_args)that);return false;}public boolean equals(getOrderConfirmationMail_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderConfirmationMail_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);private String success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);}public getOrderConfirmationMail_result() {}public getOrderConfirmationMail_result(String success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {if (other.isSetSuccess()) {this.success = other.success;}}public getOrderConfirmationMail_result deepCopy() {return new getOrderConfirmationMail_result(this);}@Overridepublic void clear() {this.success = null;}public String getSuccess() {return this.success;}public void setSuccess(String success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderConfirmationMail_result)return this.equals((getOrderConfirmationMail_result)that);return false;}public boolean equals(getOrderConfirmationMail_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(getOrderConfirmationMail_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.success = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeString(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderConfirmationMail_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** 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 __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);}public getOrderDeliveryMail_args() {}public getOrderDeliveryMail_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public getOrderDeliveryMail_args deepCopy() {return new getOrderDeliveryMail_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderDeliveryMail_args)return this.equals((getOrderDeliveryMail_args)that);return false;}public boolean equals(getOrderDeliveryMail_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderDeliveryMail_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);private String success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);}public getOrderDeliveryMail_result() {}public getOrderDeliveryMail_result(String success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {if (other.isSetSuccess()) {this.success = other.success;}}public getOrderDeliveryMail_result deepCopy() {return new getOrderDeliveryMail_result(this);}@Overridepublic void clear() {this.success = null;}public String getSuccess() {return this.success;}public void setSuccess(String success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderDeliveryMail_result)return this.equals((getOrderDeliveryMail_result)that);return false;}public boolean equals(getOrderDeliveryMail_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(getOrderDeliveryMail_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.success = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeString(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderDeliveryMail_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);private String agentEmailId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AGENT_EMAIL_IDreturn AGENT_EMAIL_ID;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);}public getWarehouseIdsForAgent_args() {}public getWarehouseIdsForAgent_args(String agentEmailId){this();this.agentEmailId = agentEmailId;}/*** Performs a deep copy on <i>other</i>.*/public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}}public getWarehouseIdsForAgent_args deepCopy() {return new getWarehouseIdsForAgent_args(this);}@Overridepublic void clear() {this.agentEmailId = null;}public String getAgentEmailId() {return this.agentEmailId;}public void setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getWarehouseIdsForAgent_args)return this.equals((getWarehouseIdsForAgent_args)that);return false;}public boolean equals(getWarehouseIdsForAgent_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getWarehouseIdsForAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}if (isSetAgentEmailId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AGENT_EMAIL_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.agentEmailId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Long> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);}public getWarehouseIdsForAgent_result() {}public getWarehouseIdsForAgent_result(List<Long> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getWarehouseIdsForAgent_result deepCopy() {return new getWarehouseIdsForAgent_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getWarehouseIdsForAgent_result)return this.equals((getWarehouseIdsForAgent_result)that);return false;}public boolean equals(getWarehouseIdsForAgent_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(getWarehouseIdsForAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();this.success = new ArrayList<Long>(_list69.size);for (int _i70 = 0; _i70 < _list69.size; ++_i70){long _elem71; // required_elem71 = iprot.readI64();this.success.add(_elem71);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter72 : this.success){oprot.writeI64(_iter72);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveUserSmsForSending_args implements org.apache.thrift.TBase<saveUserSmsForSending_args, saveUserSmsForSending_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_args");private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField MOBILE_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNo", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);private long userId; // requiredprivate String mobileNo; // requiredprivate String text; // requiredprivate SmsType type; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_ID((short)1, "userId"),MOBILE_NO((short)2, "mobileNo"),TEXT((short)3, "text"),/**** @see SmsType*/TYPE((short)4, "type");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USER_IDreturn USER_ID;case 2: // MOBILE_NOreturn MOBILE_NO;case 3: // TEXTreturn TEXT;case 4: // TYPEreturn TYPE;default:return null;}}/*** 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 __USERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.MOBILE_NO, new org.apache.thrift.meta_data.FieldMetaData("mobileNo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SmsType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_args.class, metaDataMap);}public saveUserSmsForSending_args() {}public saveUserSmsForSending_args(long userId,String mobileNo,String text,SmsType type){this();this.userId = userId;setUserIdIsSet(true);this.mobileNo = mobileNo;this.text = text;this.type = type;}/*** Performs a deep copy on <i>other</i>.*/public saveUserSmsForSending_args(saveUserSmsForSending_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.userId = other.userId;if (other.isSetMobileNo()) {this.mobileNo = other.mobileNo;}if (other.isSetText()) {this.text = other.text;}if (other.isSetType()) {this.type = other.type;}}public saveUserSmsForSending_args deepCopy() {return new saveUserSmsForSending_args(this);}@Overridepublic void clear() {setUserIdIsSet(false);this.userId = 0;this.mobileNo = null;this.text = null;this.type = null;}public long getUserId() {return this.userId;}public void setUserId(long userId) {this.userId = userId;setUserIdIsSet(true);}public void unsetUserId() {__isset_bit_vector.clear(__USERID_ISSET_ID);}/** Returns true if field userId is set (has been assigned a value) and false otherwise */public boolean isSetUserId() {return __isset_bit_vector.get(__USERID_ISSET_ID);}public void setUserIdIsSet(boolean value) {__isset_bit_vector.set(__USERID_ISSET_ID, value);}public String getMobileNo() {return this.mobileNo;}public void setMobileNo(String mobileNo) {this.mobileNo = mobileNo;}public void unsetMobileNo() {this.mobileNo = null;}/** Returns true if field mobileNo is set (has been assigned a value) and false otherwise */public boolean isSetMobileNo() {return this.mobileNo != null;}public void setMobileNoIsSet(boolean value) {if (!value) {this.mobileNo = null;}}public String getText() {return this.text;}public void setText(String text) {this.text = text;}public void unsetText() {this.text = null;}/** Returns true if field text is set (has been assigned a value) and false otherwise */public boolean isSetText() {return this.text != null;}public void setTextIsSet(boolean value) {if (!value) {this.text = null;}}/**** @see SmsType*/public SmsType getType() {return this.type;}/**** @see SmsType*/public void setType(SmsType type) {this.type = type;}public void unsetType() {this.type = null;}/** Returns true if field type is set (has been assigned a value) and false otherwise */public boolean isSetType() {return this.type != null;}public void setTypeIsSet(boolean value) {if (!value) {this.type = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_ID:if (value == null) {unsetUserId();} else {setUserId((Long)value);}break;case MOBILE_NO:if (value == null) {unsetMobileNo();} else {setMobileNo((String)value);}break;case TEXT:if (value == null) {unsetText();} else {setText((String)value);}break;case TYPE:if (value == null) {unsetType();} else {setType((SmsType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_ID:return Long.valueOf(getUserId());case MOBILE_NO:return getMobileNo();case TEXT:return getText();case TYPE:return getType();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_ID:return isSetUserId();case MOBILE_NO:return isSetMobileNo();case TEXT:return isSetText();case TYPE:return isSetType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveUserSmsForSending_args)return this.equals((saveUserSmsForSending_args)that);return false;}public boolean equals(saveUserSmsForSending_args that) {if (that == null)return false;boolean this_present_userId = true;boolean that_present_userId = true;if (this_present_userId || that_present_userId) {if (!(this_present_userId && that_present_userId))return false;if (this.userId != that.userId)return false;}boolean this_present_mobileNo = true && this.isSetMobileNo();boolean that_present_mobileNo = true && that.isSetMobileNo();if (this_present_mobileNo || that_present_mobileNo) {if (!(this_present_mobileNo && that_present_mobileNo))return false;if (!this.mobileNo.equals(that.mobileNo))return false;}boolean this_present_text = true && this.isSetText();boolean that_present_text = true && that.isSetText();if (this_present_text || that_present_text) {if (!(this_present_text && that_present_text))return false;if (!this.text.equals(that.text))return false;}boolean this_present_type = true && this.isSetType();boolean that_present_type = true && that.isSetType();if (this_present_type || that_present_type) {if (!(this_present_type && that_present_type))return false;if (!this.type.equals(that.type))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveUserSmsForSending_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveUserSmsForSending_args typedOther = (saveUserSmsForSending_args)other;lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());if (lastComparison != 0) {return lastComparison;}if (isSetUserId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMobileNo()).compareTo(typedOther.isSetMobileNo());if (lastComparison != 0) {return lastComparison;}if (isSetMobileNo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNo, typedOther.mobileNo);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());if (lastComparison != 0) {return lastComparison;}if (isSetText()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());if (lastComparison != 0) {return lastComparison;}if (isSetType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.userId = iprot.readI64();setUserIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // MOBILE_NOif (field.type == org.apache.thrift.protocol.TType.STRING) {this.mobileNo = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TEXTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.text = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.type = SmsType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(USER_ID_FIELD_DESC);oprot.writeI64(this.userId);oprot.writeFieldEnd();if (this.mobileNo != null) {oprot.writeFieldBegin(MOBILE_NO_FIELD_DESC);oprot.writeString(this.mobileNo);oprot.writeFieldEnd();}if (this.text != null) {oprot.writeFieldBegin(TEXT_FIELD_DESC);oprot.writeString(this.text);oprot.writeFieldEnd();}if (this.type != null) {oprot.writeFieldBegin(TYPE_FIELD_DESC);oprot.writeI32(this.type.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveUserSmsForSending_args(");boolean first = true;sb.append("userId:");sb.append(this.userId);first = false;if (!first) sb.append(", ");sb.append("mobileNo:");if (this.mobileNo == null) {sb.append("null");} else {sb.append(this.mobileNo);}first = false;if (!first) sb.append(", ");sb.append("text:");if (this.text == null) {sb.append("null");} else {sb.append(this.text);}first = false;if (!first) sb.append(", ");sb.append("type:");if (this.type == null) {sb.append("null");} else {sb.append(this.type);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveUserSmsForSending_result implements org.apache.thrift.TBase<saveUserSmsForSending_result, saveUserSmsForSending_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_result.class, metaDataMap);}public saveUserSmsForSending_result() {}public saveUserSmsForSending_result(long success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public saveUserSmsForSending_result(saveUserSmsForSending_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 saveUserSmsForSending_result deepCopy() {return new saveUserSmsForSending_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.se = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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((Long)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveUserSmsForSending_result)return this.equals((saveUserSmsForSending_result)that);return false;}public boolean equals(saveUserSmsForSending_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(saveUserSmsForSending_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveUserSmsForSending_result typedOther = (saveUserSmsForSending_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(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("saveUserSmsForSending_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSmsToBeSent_args implements org.apache.thrift.TBase<getSmsToBeSent_args, getSmsToBeSent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_args.class, metaDataMap);}public getSmsToBeSent_args() {}/*** Performs a deep copy on <i>other</i>.*/public getSmsToBeSent_args(getSmsToBeSent_args other) {}public getSmsToBeSent_args deepCopy() {return new getSmsToBeSent_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSmsToBeSent_args)return this.equals((getSmsToBeSent_args)that);return false;}public boolean equals(getSmsToBeSent_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSmsToBeSent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSmsToBeSent_args typedOther = (getSmsToBeSent_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSmsToBeSent_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSmsToBeSent_result implements org.apache.thrift.TBase<getSmsToBeSent_result, getSmsToBeSent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<UserSms> success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_result.class, metaDataMap);}public getSmsToBeSent_result() {}public getSmsToBeSent_result(List<UserSms> success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getSmsToBeSent_result(getSmsToBeSent_result other) {if (other.isSetSuccess()) {List<UserSms> __this__success = new ArrayList<UserSms>();for (UserSms other_element : other.success) {__this__success.add(new UserSms(other_element));}this.success = __this__success;}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getSmsToBeSent_result deepCopy() {return new getSmsToBeSent_result(this);}@Overridepublic void clear() {this.success = null;this.se = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<UserSms> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(UserSms elem) {if (this.success == null) {this.success = new ArrayList<UserSms>();}this.success.add(elem);}public List<UserSms> getSuccess() {return this.success;}public void setSuccess(List<UserSms> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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<UserSms>)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSmsToBeSent_result)return this.equals((getSmsToBeSent_result)that);return false;}public boolean equals(getSmsToBeSent_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(getSmsToBeSent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSmsToBeSent_result typedOther = (getSmsToBeSent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();this.success = new ArrayList<UserSms>(_list73.size);for (int _i74 = 0; _i74 < _list73.size; ++_i74){UserSms _elem75; // required_elem75 = new UserSms();_elem75.read(iprot);this.success.add(_elem75);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (UserSms _iter76 : this.success){_iter76.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("getSmsToBeSent_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addUserSmsInfo_args implements org.apache.thrift.TBase<addUserSmsInfo_args, addUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_args");private static final org.apache.thrift.protocol.TField USER_SMS_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);private UserSmsInfo userSmsInfo; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_SMS_INFO((short)1, "userSmsInfo");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USER_SMS_INFOreturn USER_SMS_INFO;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_args.class, metaDataMap);}public addUserSmsInfo_args() {}public addUserSmsInfo_args(UserSmsInfo userSmsInfo){this();this.userSmsInfo = userSmsInfo;}/*** Performs a deep copy on <i>other</i>.*/public addUserSmsInfo_args(addUserSmsInfo_args other) {if (other.isSetUserSmsInfo()) {this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);}}public addUserSmsInfo_args deepCopy() {return new addUserSmsInfo_args(this);}@Overridepublic void clear() {this.userSmsInfo = null;}public UserSmsInfo getUserSmsInfo() {return this.userSmsInfo;}public void setUserSmsInfo(UserSmsInfo userSmsInfo) {this.userSmsInfo = userSmsInfo;}public void unsetUserSmsInfo() {this.userSmsInfo = null;}/** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */public boolean isSetUserSmsInfo() {return this.userSmsInfo != null;}public void setUserSmsInfoIsSet(boolean value) {if (!value) {this.userSmsInfo = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_SMS_INFO:if (value == null) {unsetUserSmsInfo();} else {setUserSmsInfo((UserSmsInfo)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_SMS_INFO:return getUserSmsInfo();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_SMS_INFO:return isSetUserSmsInfo();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addUserSmsInfo_args)return this.equals((addUserSmsInfo_args)that);return false;}public boolean equals(addUserSmsInfo_args that) {if (that == null)return false;boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();if (this_present_userSmsInfo || that_present_userSmsInfo) {if (!(this_present_userSmsInfo && that_present_userSmsInfo))return false;if (!this.userSmsInfo.equals(that.userSmsInfo))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addUserSmsInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addUserSmsInfo_args typedOther = (addUserSmsInfo_args)other;lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());if (lastComparison != 0) {return lastComparison;}if (isSetUserSmsInfo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USER_SMS_INFOif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.userSmsInfo = new UserSmsInfo();this.userSmsInfo.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.userSmsInfo != null) {oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);this.userSmsInfo.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addUserSmsInfo_args(");boolean first = true;sb.append("userSmsInfo:");if (this.userSmsInfo == null) {sb.append("null");} else {sb.append(this.userSmsInfo);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addUserSmsInfo_result implements org.apache.thrift.TBase<addUserSmsInfo_result, addUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_result");private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_result.class, metaDataMap);}public addUserSmsInfo_result() {}public addUserSmsInfo_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public addUserSmsInfo_result(addUserSmsInfo_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public addUserSmsInfo_result deepCopy() {return new addUserSmsInfo_result(this);}@Overridepublic void clear() {this.se = null;}public HelperServiceException getSe() {return this.se;}public void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addUserSmsInfo_result)return this.equals((addUserSmsInfo_result)that);return false;}public boolean equals(addUserSmsInfo_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(addUserSmsInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addUserSmsInfo_result typedOther = (addUserSmsInfo_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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("addUserSmsInfo_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateUserSmsInfo_args implements org.apache.thrift.TBase<updateUserSmsInfo_args, updateUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_args");private static final org.apache.thrift.protocol.TField USER_SMS_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);private UserSmsInfo userSmsInfo; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_SMS_INFO((short)1, "userSmsInfo");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USER_SMS_INFOreturn USER_SMS_INFO;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_args.class, metaDataMap);}public updateUserSmsInfo_args() {}public updateUserSmsInfo_args(UserSmsInfo userSmsInfo){this();this.userSmsInfo = userSmsInfo;}/*** Performs a deep copy on <i>other</i>.*/public updateUserSmsInfo_args(updateUserSmsInfo_args other) {if (other.isSetUserSmsInfo()) {this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);}}public updateUserSmsInfo_args deepCopy() {return new updateUserSmsInfo_args(this);}@Overridepublic void clear() {this.userSmsInfo = null;}public UserSmsInfo getUserSmsInfo() {return this.userSmsInfo;}public void setUserSmsInfo(UserSmsInfo userSmsInfo) {this.userSmsInfo = userSmsInfo;}public void unsetUserSmsInfo() {this.userSmsInfo = null;}/** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */public boolean isSetUserSmsInfo() {return this.userSmsInfo != null;}public void setUserSmsInfoIsSet(boolean value) {if (!value) {this.userSmsInfo = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_SMS_INFO:if (value == null) {unsetUserSmsInfo();} else {setUserSmsInfo((UserSmsInfo)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_SMS_INFO:return getUserSmsInfo();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_SMS_INFO:return isSetUserSmsInfo();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateUserSmsInfo_args)return this.equals((updateUserSmsInfo_args)that);return false;}public boolean equals(updateUserSmsInfo_args that) {if (that == null)return false;boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();if (this_present_userSmsInfo || that_present_userSmsInfo) {if (!(this_present_userSmsInfo && that_present_userSmsInfo))return false;if (!this.userSmsInfo.equals(that.userSmsInfo))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateUserSmsInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateUserSmsInfo_args typedOther = (updateUserSmsInfo_args)other;lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());if (lastComparison != 0) {return lastComparison;}if (isSetUserSmsInfo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USER_SMS_INFOif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.userSmsInfo = new UserSmsInfo();this.userSmsInfo.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.userSmsInfo != null) {oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);this.userSmsInfo.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateUserSmsInfo_args(");boolean first = true;sb.append("userSmsInfo:");if (this.userSmsInfo == null) {sb.append("null");} else {sb.append(this.userSmsInfo);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateUserSmsInfo_result implements org.apache.thrift.TBase<updateUserSmsInfo_result, updateUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_result.class, metaDataMap);}public updateUserSmsInfo_result() {}public updateUserSmsInfo_result(boolean success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public updateUserSmsInfo_result(updateUserSmsInfo_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 updateUserSmsInfo_result deepCopy() {return new updateUserSmsInfo_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.se = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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 Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateUserSmsInfo_result)return this.equals((updateUserSmsInfo_result)that);return false;}public boolean equals(updateUserSmsInfo_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(updateUserSmsInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateUserSmsInfo_result typedOther = (updateUserSmsInfo_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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("updateUserSmsInfo_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUserSmsInfo_args implements org.apache.thrift.TBase<getUserSmsInfo_args, getUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_args");private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);private long userId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_ID((short)1, "userId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // USER_IDreturn USER_ID;default:return null;}}/*** 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 __USERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_args.class, metaDataMap);}public getUserSmsInfo_args() {}public getUserSmsInfo_args(long userId){this();this.userId = userId;setUserIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getUserSmsInfo_args(getUserSmsInfo_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.userId = other.userId;}public getUserSmsInfo_args deepCopy() {return new getUserSmsInfo_args(this);}@Overridepublic void clear() {setUserIdIsSet(false);this.userId = 0;}public long getUserId() {return this.userId;}public void setUserId(long userId) {this.userId = userId;setUserIdIsSet(true);}public void unsetUserId() {__isset_bit_vector.clear(__USERID_ISSET_ID);}/** Returns true if field userId is set (has been assigned a value) and false otherwise */public boolean isSetUserId() {return __isset_bit_vector.get(__USERID_ISSET_ID);}public void setUserIdIsSet(boolean value) {__isset_bit_vector.set(__USERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_ID:if (value == null) {unsetUserId();} else {setUserId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_ID:return Long.valueOf(getUserId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_ID:return isSetUserId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUserSmsInfo_args)return this.equals((getUserSmsInfo_args)that);return false;}public boolean equals(getUserSmsInfo_args that) {if (that == null)return false;boolean this_present_userId = true;boolean that_present_userId = true;if (this_present_userId || that_present_userId) {if (!(this_present_userId && that_present_userId))return false;if (this.userId != that.userId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUserSmsInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUserSmsInfo_args typedOther = (getUserSmsInfo_args)other;lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());if (lastComparison != 0) {return lastComparison;}if (isSetUserId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // USER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.userId = iprot.readI64();setUserIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(USER_ID_FIELD_DESC);oprot.writeI64(this.userId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUserSmsInfo_args(");boolean first = true;sb.append("userId:");sb.append(this.userId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUserSmsInfo_result implements org.apache.thrift.TBase<getUserSmsInfo_result, getUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private UserSmsInfo success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_result.class, metaDataMap);}public getUserSmsInfo_result() {}public getUserSmsInfo_result(UserSmsInfo success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getUserSmsInfo_result(getUserSmsInfo_result other) {if (other.isSetSuccess()) {this.success = new UserSmsInfo(other.success);}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getUserSmsInfo_result deepCopy() {return new getUserSmsInfo_result(this);}@Overridepublic void clear() {this.success = null;this.se = null;}public UserSmsInfo getSuccess() {return this.success;}public void setSuccess(UserSmsInfo success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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((UserSmsInfo)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUserSmsInfo_result)return this.equals((getUserSmsInfo_result)that);return false;}public boolean equals(getUserSmsInfo_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(getUserSmsInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUserSmsInfo_result typedOther = (getUserSmsInfo_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new UserSmsInfo();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.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("getUserSmsInfo_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllUsersSmsInfo_args implements org.apache.thrift.TBase<getAllUsersSmsInfo_args, getAllUsersSmsInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_args");private static final org.apache.thrift.protocol.TField DND_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("dndStatus", org.apache.thrift.protocol.TType.BOOL, (short)1);private static final org.apache.thrift.protocol.TField SMS_SUBSCRIBED_FIELD_DESC = new org.apache.thrift.protocol.TField("smsSubscribed", org.apache.thrift.protocol.TType.BOOL, (short)2);private boolean dndStatus; // requiredprivate boolean smsSubscribed; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {DND_STATUS((short)1, "dndStatus"),SMS_SUBSCRIBED((short)2, "smsSubscribed");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // DND_STATUSreturn DND_STATUS;case 2: // SMS_SUBSCRIBEDreturn SMS_SUBSCRIBED;default:return null;}}/*** 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 __DNDSTATUS_ISSET_ID = 0;private static final int __SMSSUBSCRIBED_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.DND_STATUS, new org.apache.thrift.meta_data.FieldMetaData("dndStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.SMS_SUBSCRIBED, new org.apache.thrift.meta_data.FieldMetaData("smsSubscribed", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_args.class, metaDataMap);}public getAllUsersSmsInfo_args() {}public getAllUsersSmsInfo_args(boolean dndStatus,boolean smsSubscribed){this();this.dndStatus = dndStatus;setDndStatusIsSet(true);this.smsSubscribed = smsSubscribed;setSmsSubscribedIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllUsersSmsInfo_args(getAllUsersSmsInfo_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.dndStatus = other.dndStatus;this.smsSubscribed = other.smsSubscribed;}public getAllUsersSmsInfo_args deepCopy() {return new getAllUsersSmsInfo_args(this);}@Overridepublic void clear() {setDndStatusIsSet(false);this.dndStatus = false;setSmsSubscribedIsSet(false);this.smsSubscribed = false;}public boolean isDndStatus() {return this.dndStatus;}public void setDndStatus(boolean dndStatus) {this.dndStatus = dndStatus;setDndStatusIsSet(true);}public void unsetDndStatus() {__isset_bit_vector.clear(__DNDSTATUS_ISSET_ID);}/** Returns true if field dndStatus is set (has been assigned a value) and false otherwise */public boolean isSetDndStatus() {return __isset_bit_vector.get(__DNDSTATUS_ISSET_ID);}public void setDndStatusIsSet(boolean value) {__isset_bit_vector.set(__DNDSTATUS_ISSET_ID, value);}public boolean isSmsSubscribed() {return this.smsSubscribed;}public void setSmsSubscribed(boolean smsSubscribed) {this.smsSubscribed = smsSubscribed;setSmsSubscribedIsSet(true);}public void unsetSmsSubscribed() {__isset_bit_vector.clear(__SMSSUBSCRIBED_ISSET_ID);}/** Returns true if field smsSubscribed is set (has been assigned a value) and false otherwise */public boolean isSetSmsSubscribed() {return __isset_bit_vector.get(__SMSSUBSCRIBED_ISSET_ID);}public void setSmsSubscribedIsSet(boolean value) {__isset_bit_vector.set(__SMSSUBSCRIBED_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case DND_STATUS:if (value == null) {unsetDndStatus();} else {setDndStatus((Boolean)value);}break;case SMS_SUBSCRIBED:if (value == null) {unsetSmsSubscribed();} else {setSmsSubscribed((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case DND_STATUS:return Boolean.valueOf(isDndStatus());case SMS_SUBSCRIBED:return Boolean.valueOf(isSmsSubscribed());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case DND_STATUS:return isSetDndStatus();case SMS_SUBSCRIBED:return isSetSmsSubscribed();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllUsersSmsInfo_args)return this.equals((getAllUsersSmsInfo_args)that);return false;}public boolean equals(getAllUsersSmsInfo_args that) {if (that == null)return false;boolean this_present_dndStatus = true;boolean that_present_dndStatus = true;if (this_present_dndStatus || that_present_dndStatus) {if (!(this_present_dndStatus && that_present_dndStatus))return false;if (this.dndStatus != that.dndStatus)return false;}boolean this_present_smsSubscribed = true;boolean that_present_smsSubscribed = true;if (this_present_smsSubscribed || that_present_smsSubscribed) {if (!(this_present_smsSubscribed && that_present_smsSubscribed))return false;if (this.smsSubscribed != that.smsSubscribed)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllUsersSmsInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllUsersSmsInfo_args typedOther = (getAllUsersSmsInfo_args)other;lastComparison = Boolean.valueOf(isSetDndStatus()).compareTo(typedOther.isSetDndStatus());if (lastComparison != 0) {return lastComparison;}if (isSetDndStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dndStatus, typedOther.dndStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSmsSubscribed()).compareTo(typedOther.isSetSmsSubscribed());if (lastComparison != 0) {return lastComparison;}if (isSetSmsSubscribed()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.smsSubscribed, typedOther.smsSubscribed);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // DND_STATUSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.dndStatus = iprot.readBool();setDndStatusIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SMS_SUBSCRIBEDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.smsSubscribed = iprot.readBool();setSmsSubscribedIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(DND_STATUS_FIELD_DESC);oprot.writeBool(this.dndStatus);oprot.writeFieldEnd();oprot.writeFieldBegin(SMS_SUBSCRIBED_FIELD_DESC);oprot.writeBool(this.smsSubscribed);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllUsersSmsInfo_args(");boolean first = true;sb.append("dndStatus:");sb.append(this.dndStatus);first = false;if (!first) sb.append(", ");sb.append("smsSubscribed:");sb.append(this.smsSubscribed);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllUsersSmsInfo_result implements org.apache.thrift.TBase<getAllUsersSmsInfo_result, getAllUsersSmsInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<UserSmsInfo> success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class))));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_result.class, metaDataMap);}public getAllUsersSmsInfo_result() {}public getAllUsersSmsInfo_result(List<UserSmsInfo> success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getAllUsersSmsInfo_result(getAllUsersSmsInfo_result other) {if (other.isSetSuccess()) {List<UserSmsInfo> __this__success = new ArrayList<UserSmsInfo>();for (UserSmsInfo other_element : other.success) {__this__success.add(new UserSmsInfo(other_element));}this.success = __this__success;}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getAllUsersSmsInfo_result deepCopy() {return new getAllUsersSmsInfo_result(this);}@Overridepublic void clear() {this.success = null;this.se = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<UserSmsInfo> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(UserSmsInfo elem) {if (this.success == null) {this.success = new ArrayList<UserSmsInfo>();}this.success.add(elem);}public List<UserSmsInfo> getSuccess() {return this.success;}public void setSuccess(List<UserSmsInfo> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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<UserSmsInfo>)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllUsersSmsInfo_result)return this.equals((getAllUsersSmsInfo_result)that);return false;}public boolean equals(getAllUsersSmsInfo_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(getAllUsersSmsInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllUsersSmsInfo_result typedOther = (getAllUsersSmsInfo_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();this.success = new ArrayList<UserSmsInfo>(_list77.size);for (int _i78 = 0; _i78 < _list77.size; ++_i78){UserSmsInfo _elem79; // required_elem79 = new UserSmsInfo();_elem79.read(iprot);this.success.add(_elem79);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (UserSmsInfo _iter80 : this.success){_iter80.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("getAllUsersSmsInfo_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class listSmsToGetDeliveryInfo_args implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_args, listSmsToGetDeliveryInfo_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_args.class, metaDataMap);}public listSmsToGetDeliveryInfo_args() {}/*** Performs a deep copy on <i>other</i>.*/public listSmsToGetDeliveryInfo_args(listSmsToGetDeliveryInfo_args other) {}public listSmsToGetDeliveryInfo_args deepCopy() {return new listSmsToGetDeliveryInfo_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof listSmsToGetDeliveryInfo_args)return this.equals((listSmsToGetDeliveryInfo_args)that);return false;}public boolean equals(listSmsToGetDeliveryInfo_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(listSmsToGetDeliveryInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;listSmsToGetDeliveryInfo_args typedOther = (listSmsToGetDeliveryInfo_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("listSmsToGetDeliveryInfo_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class listSmsToGetDeliveryInfo_result implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_result, listSmsToGetDeliveryInfo_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<UserSms> success; // requiredprivate HelperServiceException se; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // SEreturn SE;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_result.class, metaDataMap);}public listSmsToGetDeliveryInfo_result() {}public listSmsToGetDeliveryInfo_result(List<UserSms> success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public listSmsToGetDeliveryInfo_result(listSmsToGetDeliveryInfo_result other) {if (other.isSetSuccess()) {List<UserSms> __this__success = new ArrayList<UserSms>();for (UserSms other_element : other.success) {__this__success.add(new UserSms(other_element));}this.success = __this__success;}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public listSmsToGetDeliveryInfo_result deepCopy() {return new listSmsToGetDeliveryInfo_result(this);}@Overridepublic void clear() {this.success = null;this.se = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<UserSms> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(UserSms elem) {if (this.success == null) {this.success = new ArrayList<UserSms>();}this.success.add(elem);}public List<UserSms> getSuccess() {return this.success;}public void setSuccess(List<UserSms> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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 void setSe(HelperServiceException se) {this.se = se;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been assigned 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<UserSms>)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof listSmsToGetDeliveryInfo_result)return this.equals((listSmsToGetDeliveryInfo_result)that);return false;}public boolean equals(listSmsToGetDeliveryInfo_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(listSmsToGetDeliveryInfo_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;listSmsToGetDeliveryInfo_result typedOther = (listSmsToGetDeliveryInfo_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());if (lastComparison != 0) {return lastComparison;}if (isSetSe()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();this.success = new ArrayList<UserSms>(_list81.size);for (int _i82 = 0; _i82 < _list81.size; ++_i82){UserSms _elem83; // required_elem83 = new UserSms();_elem83.read(iprot);this.success.add(_elem83);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // SEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (UserSms _iter84 : this.success){_iter84.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("listSmsToGetDeliveryInfo_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsSentToOperator_args implements org.apache.thrift.TBase<markMessagesAsSentToOperator_args, markMessagesAsSentToOperator_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_args");private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);private List<UserSms> userSmsList; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_SMS_LIST((short)-1, "userSmsList");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // USER_SMS_LISTreturn USER_SMS_LIST;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_args.class, metaDataMap);}public markMessagesAsSentToOperator_args() {}public markMessagesAsSentToOperator_args(List<UserSms> userSmsList){this();this.userSmsList = userSmsList;}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsSentToOperator_args(markMessagesAsSentToOperator_args other) {if (other.isSetUserSmsList()) {List<UserSms> __this__userSmsList = new ArrayList<UserSms>();for (UserSms other_element : other.userSmsList) {__this__userSmsList.add(new UserSms(other_element));}this.userSmsList = __this__userSmsList;}}public markMessagesAsSentToOperator_args deepCopy() {return new markMessagesAsSentToOperator_args(this);}@Overridepublic void clear() {this.userSmsList = null;}public int getUserSmsListSize() {return (this.userSmsList == null) ? 0 : this.userSmsList.size();}public java.util.Iterator<UserSms> getUserSmsListIterator() {return (this.userSmsList == null) ? null : this.userSmsList.iterator();}public void addToUserSmsList(UserSms elem) {if (this.userSmsList == null) {this.userSmsList = new ArrayList<UserSms>();}this.userSmsList.add(elem);}public List<UserSms> getUserSmsList() {return this.userSmsList;}public void setUserSmsList(List<UserSms> userSmsList) {this.userSmsList = userSmsList;}public void unsetUserSmsList() {this.userSmsList = null;}/** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */public boolean isSetUserSmsList() {return this.userSmsList != null;}public void setUserSmsListIsSet(boolean value) {if (!value) {this.userSmsList = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_SMS_LIST:if (value == null) {unsetUserSmsList();} else {setUserSmsList((List<UserSms>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_SMS_LIST:return getUserSmsList();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_SMS_LIST:return isSetUserSmsList();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsSentToOperator_args)return this.equals((markMessagesAsSentToOperator_args)that);return false;}public boolean equals(markMessagesAsSentToOperator_args that) {if (that == null)return false;boolean this_present_userSmsList = true && this.isSetUserSmsList();boolean that_present_userSmsList = true && that.isSetUserSmsList();if (this_present_userSmsList || that_present_userSmsList) {if (!(this_present_userSmsList && that_present_userSmsList))return false;if (!this.userSmsList.equals(that.userSmsList))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsSentToOperator_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsSentToOperator_args typedOther = (markMessagesAsSentToOperator_args)other;lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());if (lastComparison != 0) {return lastComparison;}if (isSetUserSmsList()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // USER_SMS_LISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();this.userSmsList = new ArrayList<UserSms>(_list85.size);for (int _i86 = 0; _i86 < _list85.size; ++_i86){UserSms _elem87; // required_elem87 = new UserSms();_elem87.read(iprot);this.userSmsList.add(_elem87);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.userSmsList != null) {oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));for (UserSms _iter88 : this.userSmsList){_iter88.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_args(");boolean first = true;sb.append("userSmsList:");if (this.userSmsList == null) {sb.append("null");} else {sb.append(this.userSmsList);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsSentToOperator_result implements org.apache.thrift.TBase<markMessagesAsSentToOperator_result, markMessagesAsSentToOperator_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_result.class, metaDataMap);}public markMessagesAsSentToOperator_result() {}public markMessagesAsSentToOperator_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsSentToOperator_result(markMessagesAsSentToOperator_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public markMessagesAsSentToOperator_result deepCopy() {return new markMessagesAsSentToOperator_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsSentToOperator_result)return this.equals((markMessagesAsSentToOperator_result)that);return false;}public boolean equals(markMessagesAsSentToOperator_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsSentToOperator_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsSentToOperator_result typedOther = (markMessagesAsSentToOperator_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsSubmittedToSmsc_args implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_args, markMessagesAsSubmittedToSmsc_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_args");private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);private List<UserSms> userSmsList; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_SMS_LIST((short)-1, "userSmsList");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // USER_SMS_LISTreturn USER_SMS_LIST;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_args.class, metaDataMap);}public markMessagesAsSubmittedToSmsc_args() {}public markMessagesAsSubmittedToSmsc_args(List<UserSms> userSmsList){this();this.userSmsList = userSmsList;}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsSubmittedToSmsc_args(markMessagesAsSubmittedToSmsc_args other) {if (other.isSetUserSmsList()) {List<UserSms> __this__userSmsList = new ArrayList<UserSms>();for (UserSms other_element : other.userSmsList) {__this__userSmsList.add(new UserSms(other_element));}this.userSmsList = __this__userSmsList;}}public markMessagesAsSubmittedToSmsc_args deepCopy() {return new markMessagesAsSubmittedToSmsc_args(this);}@Overridepublic void clear() {this.userSmsList = null;}public int getUserSmsListSize() {return (this.userSmsList == null) ? 0 : this.userSmsList.size();}public java.util.Iterator<UserSms> getUserSmsListIterator() {return (this.userSmsList == null) ? null : this.userSmsList.iterator();}public void addToUserSmsList(UserSms elem) {if (this.userSmsList == null) {this.userSmsList = new ArrayList<UserSms>();}this.userSmsList.add(elem);}public List<UserSms> getUserSmsList() {return this.userSmsList;}public void setUserSmsList(List<UserSms> userSmsList) {this.userSmsList = userSmsList;}public void unsetUserSmsList() {this.userSmsList = null;}/** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */public boolean isSetUserSmsList() {return this.userSmsList != null;}public void setUserSmsListIsSet(boolean value) {if (!value) {this.userSmsList = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_SMS_LIST:if (value == null) {unsetUserSmsList();} else {setUserSmsList((List<UserSms>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_SMS_LIST:return getUserSmsList();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_SMS_LIST:return isSetUserSmsList();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsSubmittedToSmsc_args)return this.equals((markMessagesAsSubmittedToSmsc_args)that);return false;}public boolean equals(markMessagesAsSubmittedToSmsc_args that) {if (that == null)return false;boolean this_present_userSmsList = true && this.isSetUserSmsList();boolean that_present_userSmsList = true && that.isSetUserSmsList();if (this_present_userSmsList || that_present_userSmsList) {if (!(this_present_userSmsList && that_present_userSmsList))return false;if (!this.userSmsList.equals(that.userSmsList))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsSubmittedToSmsc_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsSubmittedToSmsc_args typedOther = (markMessagesAsSubmittedToSmsc_args)other;lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());if (lastComparison != 0) {return lastComparison;}if (isSetUserSmsList()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // USER_SMS_LISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();this.userSmsList = new ArrayList<UserSms>(_list89.size);for (int _i90 = 0; _i90 < _list89.size; ++_i90){UserSms _elem91; // required_elem91 = new UserSms();_elem91.read(iprot);this.userSmsList.add(_elem91);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.userSmsList != null) {oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));for (UserSms _iter92 : this.userSmsList){_iter92.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_args(");boolean first = true;sb.append("userSmsList:");if (this.userSmsList == null) {sb.append("null");} else {sb.append(this.userSmsList);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsSubmittedToSmsc_result implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_result, markMessagesAsSubmittedToSmsc_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_result.class, metaDataMap);}public markMessagesAsSubmittedToSmsc_result() {}public markMessagesAsSubmittedToSmsc_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsSubmittedToSmsc_result(markMessagesAsSubmittedToSmsc_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public markMessagesAsSubmittedToSmsc_result deepCopy() {return new markMessagesAsSubmittedToSmsc_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsSubmittedToSmsc_result)return this.equals((markMessagesAsSubmittedToSmsc_result)that);return false;}public boolean equals(markMessagesAsSubmittedToSmsc_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsSubmittedToSmsc_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsSubmittedToSmsc_result typedOther = (markMessagesAsSubmittedToSmsc_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsSent_args implements org.apache.thrift.TBase<markMessagesAsSent_args, markMessagesAsSent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_args");private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);private List<UserSms> userSmsList; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_SMS_LIST((short)-1, "userSmsList");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // USER_SMS_LISTreturn USER_SMS_LIST;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_args.class, metaDataMap);}public markMessagesAsSent_args() {}public markMessagesAsSent_args(List<UserSms> userSmsList){this();this.userSmsList = userSmsList;}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsSent_args(markMessagesAsSent_args other) {if (other.isSetUserSmsList()) {List<UserSms> __this__userSmsList = new ArrayList<UserSms>();for (UserSms other_element : other.userSmsList) {__this__userSmsList.add(new UserSms(other_element));}this.userSmsList = __this__userSmsList;}}public markMessagesAsSent_args deepCopy() {return new markMessagesAsSent_args(this);}@Overridepublic void clear() {this.userSmsList = null;}public int getUserSmsListSize() {return (this.userSmsList == null) ? 0 : this.userSmsList.size();}public java.util.Iterator<UserSms> getUserSmsListIterator() {return (this.userSmsList == null) ? null : this.userSmsList.iterator();}public void addToUserSmsList(UserSms elem) {if (this.userSmsList == null) {this.userSmsList = new ArrayList<UserSms>();}this.userSmsList.add(elem);}public List<UserSms> getUserSmsList() {return this.userSmsList;}public void setUserSmsList(List<UserSms> userSmsList) {this.userSmsList = userSmsList;}public void unsetUserSmsList() {this.userSmsList = null;}/** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */public boolean isSetUserSmsList() {return this.userSmsList != null;}public void setUserSmsListIsSet(boolean value) {if (!value) {this.userSmsList = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_SMS_LIST:if (value == null) {unsetUserSmsList();} else {setUserSmsList((List<UserSms>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_SMS_LIST:return getUserSmsList();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_SMS_LIST:return isSetUserSmsList();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsSent_args)return this.equals((markMessagesAsSent_args)that);return false;}public boolean equals(markMessagesAsSent_args that) {if (that == null)return false;boolean this_present_userSmsList = true && this.isSetUserSmsList();boolean that_present_userSmsList = true && that.isSetUserSmsList();if (this_present_userSmsList || that_present_userSmsList) {if (!(this_present_userSmsList && that_present_userSmsList))return false;if (!this.userSmsList.equals(that.userSmsList))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsSent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsSent_args typedOther = (markMessagesAsSent_args)other;lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());if (lastComparison != 0) {return lastComparison;}if (isSetUserSmsList()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // USER_SMS_LISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();this.userSmsList = new ArrayList<UserSms>(_list93.size);for (int _i94 = 0; _i94 < _list93.size; ++_i94){UserSms _elem95; // required_elem95 = new UserSms();_elem95.read(iprot);this.userSmsList.add(_elem95);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.userSmsList != null) {oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));for (UserSms _iter96 : this.userSmsList){_iter96.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsSent_args(");boolean first = true;sb.append("userSmsList:");if (this.userSmsList == null) {sb.append("null");} else {sb.append(this.userSmsList);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsSent_result implements org.apache.thrift.TBase<markMessagesAsSent_result, markMessagesAsSent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_result.class, metaDataMap);}public markMessagesAsSent_result() {}public markMessagesAsSent_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsSent_result(markMessagesAsSent_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public markMessagesAsSent_result deepCopy() {return new markMessagesAsSent_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsSent_result)return this.equals((markMessagesAsSent_result)that);return false;}public boolean equals(markMessagesAsSent_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsSent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsSent_result typedOther = (markMessagesAsSent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsSent_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsRetry_args implements org.apache.thrift.TBase<markMessagesAsRetry_args, markMessagesAsRetry_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_args");private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);private List<UserSms> userSmsList; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {USER_SMS_LIST((short)-1, "userSmsList");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case -1: // USER_SMS_LISTreturn USER_SMS_LIST;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_args.class, metaDataMap);}public markMessagesAsRetry_args() {}public markMessagesAsRetry_args(List<UserSms> userSmsList){this();this.userSmsList = userSmsList;}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsRetry_args(markMessagesAsRetry_args other) {if (other.isSetUserSmsList()) {List<UserSms> __this__userSmsList = new ArrayList<UserSms>();for (UserSms other_element : other.userSmsList) {__this__userSmsList.add(new UserSms(other_element));}this.userSmsList = __this__userSmsList;}}public markMessagesAsRetry_args deepCopy() {return new markMessagesAsRetry_args(this);}@Overridepublic void clear() {this.userSmsList = null;}public int getUserSmsListSize() {return (this.userSmsList == null) ? 0 : this.userSmsList.size();}public java.util.Iterator<UserSms> getUserSmsListIterator() {return (this.userSmsList == null) ? null : this.userSmsList.iterator();}public void addToUserSmsList(UserSms elem) {if (this.userSmsList == null) {this.userSmsList = new ArrayList<UserSms>();}this.userSmsList.add(elem);}public List<UserSms> getUserSmsList() {return this.userSmsList;}public void setUserSmsList(List<UserSms> userSmsList) {this.userSmsList = userSmsList;}public void unsetUserSmsList() {this.userSmsList = null;}/** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */public boolean isSetUserSmsList() {return this.userSmsList != null;}public void setUserSmsListIsSet(boolean value) {if (!value) {this.userSmsList = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USER_SMS_LIST:if (value == null) {unsetUserSmsList();} else {setUserSmsList((List<UserSms>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case USER_SMS_LIST:return getUserSmsList();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case USER_SMS_LIST:return isSetUserSmsList();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsRetry_args)return this.equals((markMessagesAsRetry_args)that);return false;}public boolean equals(markMessagesAsRetry_args that) {if (that == null)return false;boolean this_present_userSmsList = true && this.isSetUserSmsList();boolean that_present_userSmsList = true && that.isSetUserSmsList();if (this_present_userSmsList || that_present_userSmsList) {if (!(this_present_userSmsList && that_present_userSmsList))return false;if (!this.userSmsList.equals(that.userSmsList))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsRetry_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsRetry_args typedOther = (markMessagesAsRetry_args)other;lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());if (lastComparison != 0) {return lastComparison;}if (isSetUserSmsList()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case -1: // USER_SMS_LISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();this.userSmsList = new ArrayList<UserSms>(_list97.size);for (int _i98 = 0; _i98 < _list97.size; ++_i98){UserSms _elem99; // required_elem99 = new UserSms();_elem99.read(iprot);this.userSmsList.add(_elem99);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.userSmsList != null) {oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));for (UserSms _iter100 : this.userSmsList){_iter100.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsRetry_args(");boolean first = true;sb.append("userSmsList:");if (this.userSmsList == null) {sb.append("null");} else {sb.append(this.userSmsList);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markMessagesAsRetry_result implements org.apache.thrift.TBase<markMessagesAsRetry_result, markMessagesAsRetry_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private boolean success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_result.class, metaDataMap);}public markMessagesAsRetry_result() {}public markMessagesAsRetry_result(boolean success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markMessagesAsRetry_result(markMessagesAsRetry_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public markMessagesAsRetry_result deepCopy() {return new markMessagesAsRetry_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markMessagesAsRetry_result)return this.equals((markMessagesAsRetry_result)that);return false;}public boolean equals(markMessagesAsRetry_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markMessagesAsRetry_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markMessagesAsRetry_result typedOther = (markMessagesAsRetry_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markMessagesAsRetry_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authoriseDealer_args implements org.apache.thrift.TBase<authoriseDealer_args, authoriseDealer_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_args");private static final org.apache.thrift.protocol.TField DEALER_FIELD_DESC = new org.apache.thrift.protocol.TField("dealer", org.apache.thrift.protocol.TType.STRUCT, (short)1);private DealerAuth dealer; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {DEALER((short)1, "dealer");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // DEALERreturn DEALER;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.DEALER, new org.apache.thrift.meta_data.FieldMetaData("dealer", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_args.class, metaDataMap);}public authoriseDealer_args() {}public authoriseDealer_args(DealerAuth dealer){this();this.dealer = dealer;}/*** Performs a deep copy on <i>other</i>.*/public authoriseDealer_args(authoriseDealer_args other) {if (other.isSetDealer()) {this.dealer = new DealerAuth(other.dealer);}}public authoriseDealer_args deepCopy() {return new authoriseDealer_args(this);}@Overridepublic void clear() {this.dealer = null;}public DealerAuth getDealer() {return this.dealer;}public void setDealer(DealerAuth dealer) {this.dealer = dealer;}public void unsetDealer() {this.dealer = null;}/** Returns true if field dealer is set (has been assigned a value) and false otherwise */public boolean isSetDealer() {return this.dealer != null;}public void setDealerIsSet(boolean value) {if (!value) {this.dealer = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case DEALER:if (value == null) {unsetDealer();} else {setDealer((DealerAuth)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case DEALER:return getDealer();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case DEALER:return isSetDealer();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authoriseDealer_args)return this.equals((authoriseDealer_args)that);return false;}public boolean equals(authoriseDealer_args that) {if (that == null)return false;boolean this_present_dealer = true && this.isSetDealer();boolean that_present_dealer = true && that.isSetDealer();if (this_present_dealer || that_present_dealer) {if (!(this_present_dealer && that_present_dealer))return false;if (!this.dealer.equals(that.dealer))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authoriseDealer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authoriseDealer_args typedOther = (authoriseDealer_args)other;lastComparison = Boolean.valueOf(isSetDealer()).compareTo(typedOther.isSetDealer());if (lastComparison != 0) {return lastComparison;}if (isSetDealer()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealer, typedOther.dealer);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // DEALERif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.dealer = new DealerAuth();this.dealer.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.dealer != null) {oprot.writeFieldBegin(DEALER_FIELD_DESC);this.dealer.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authoriseDealer_args(");boolean first = true;sb.append("dealer:");if (this.dealer == null) {sb.append("null");} else {sb.append(this.dealer);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authoriseDealer_result implements org.apache.thrift.TBase<authoriseDealer_result, authoriseDealer_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private DealerAuth success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** 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, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_result.class, metaDataMap);}public authoriseDealer_result() {}public authoriseDealer_result(DealerAuth success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public authoriseDealer_result(authoriseDealer_result other) {if (other.isSetSuccess()) {this.success = new DealerAuth(other.success);}}public authoriseDealer_result deepCopy() {return new authoriseDealer_result(this);}@Overridepublic void clear() {this.success = null;}public DealerAuth getSuccess() {return this.success;}public void setSuccess(DealerAuth success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned 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((DealerAuth)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authoriseDealer_result)return this.equals((authoriseDealer_result)that);return false;}public boolean equals(authoriseDealer_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(authoriseDealer_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authoriseDealer_result typedOther = (authoriseDealer_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new DealerAuth();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authoriseDealer_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 org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}}