Rev 764 | Rev 1422 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.utils;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.apache.thrift.*;import org.apache.thrift.meta_data.*;import org.apache.thrift.protocol.*;public class HelperService {public interface Iface {/*** For closing the open session in sqlalchemy*/public void closeSession() throws TException;public void sendMail(Mail mail) throws HelperServiceException, TException;public void sendText(TextMessage message) throws HelperServiceException, TException;public void addMessage(Message message) throws HelperServiceException, TException;public void updateMessage(long id, String message) throws HelperServiceException, TException;public Message getMessage(long id) throws HelperServiceException, TException;public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException;public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException;public boolean deleteUser(String username) throws HelperServiceException, TException;/*** Returns the warehouseId for the given user if the password matches. Returns -1 otherwise.* The loggedOn timestamp for the dashboard user is updated as a timestamp.* It's unclear to me when an exception is thrown : Chandranshu** @param username* @param password*/public long authenticateUser(String username, String password) throws HelperServiceException, TException;public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException;/*** Returns the LogisticsUser struct associated with the given username and password if they match.* Throws an exception otherwise.** @param username* @param password*/public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, TException;}public static class Client implements Iface {public Client(TProtocol prot){this(prot, prot);}public Client(TProtocol iprot, TProtocol oprot){iprot_ = iprot;oprot_ = oprot;}protected TProtocol iprot_;protected TProtocol oprot_;protected int seqid_;public TProtocol getInputProtocol(){return this.iprot_;}public TProtocol getOutputProtocol(){return this.oprot_;}public void closeSession() throws TException{send_closeSession();recv_closeSession();}public void send_closeSession() throws TException{oprot_.writeMessageBegin(new TMessage("closeSession", TMessageType.CALL, seqid_));closeSession_args args = new closeSession_args();args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_closeSession() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}closeSession_result result = new closeSession_result();result.read(iprot_);iprot_.readMessageEnd();return;}public void sendMail(Mail mail) throws HelperServiceException, TException{send_sendMail(mail);recv_sendMail();}public void send_sendMail(Mail mail) throws TException{oprot_.writeMessageBegin(new TMessage("sendMail", TMessageType.CALL, seqid_));sendMail_args args = new sendMail_args();args.mail = mail;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_sendMail() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}sendMail_result result = new sendMail_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public void sendText(TextMessage message) throws HelperServiceException, TException{send_sendText(message);recv_sendText();}public void send_sendText(TextMessage message) throws TException{oprot_.writeMessageBegin(new TMessage("sendText", TMessageType.CALL, seqid_));sendText_args args = new sendText_args();args.message = message;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_sendText() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}sendText_result result = new sendText_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public void addMessage(Message message) throws HelperServiceException, TException{send_addMessage(message);recv_addMessage();}public void send_addMessage(Message message) throws TException{oprot_.writeMessageBegin(new TMessage("addMessage", TMessageType.CALL, seqid_));addMessage_args args = new addMessage_args();args.message = message;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_addMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}addMessage_result result = new addMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public void updateMessage(long id, String message) throws HelperServiceException, TException{send_updateMessage(id, message);recv_updateMessage();}public void send_updateMessage(long id, String message) throws TException{oprot_.writeMessageBegin(new TMessage("updateMessage", TMessageType.CALL, seqid_));updateMessage_args args = new updateMessage_args();args.id = id;args.message = message;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updateMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updateMessage_result result = new updateMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.se != null) {throw result.se;}return;}public Message getMessage(long id) throws HelperServiceException, TException{send_getMessage(id);return recv_getMessage();}public void send_getMessage(long id) throws TException{oprot_.writeMessageBegin(new TMessage("getMessage", TMessageType.CALL, seqid_));getMessage_args args = new getMessage_args();args.id = id;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Message recv_getMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getMessage_result result = new getMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");}public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException{send_getSubstitutedMessage(id, params);return recv_getSubstitutedMessage();}public void send_getSubstitutedMessage(long id, Map<String,String> params) throws TException{oprot_.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.CALL, seqid_));getSubstitutedMessage_args args = new getSubstitutedMessage_args();args.id = id;args.params = params;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Message recv_getSubstitutedMessage() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getSubstitutedMessage_result result = new getSubstitutedMessage_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");}public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException{send_addUser(username, password, warehouseId);return recv_addUser();}public void send_addUser(String username, String password, long warehouseId) throws TException{oprot_.writeMessageBegin(new TMessage("addUser", TMessageType.CALL, seqid_));addUser_args args = new addUser_args();args.username = username;args.password = password;args.warehouseId = warehouseId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_addUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}addUser_result result = new addUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");}public boolean deleteUser(String username) throws HelperServiceException, TException{send_deleteUser(username);return recv_deleteUser();}public void send_deleteUser(String username) throws TException{oprot_.writeMessageBegin(new TMessage("deleteUser", TMessageType.CALL, seqid_));deleteUser_args args = new deleteUser_args();args.username = username;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_deleteUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}deleteUser_result result = new deleteUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");}public long authenticateUser(String username, String password) throws HelperServiceException, TException{send_authenticateUser(username, password);return recv_authenticateUser();}public void send_authenticateUser(String username, String password) throws TException{oprot_.writeMessageBegin(new TMessage("authenticateUser", TMessageType.CALL, seqid_));authenticateUser_args args = new authenticateUser_args();args.username = username;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public long recv_authenticateUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}authenticateUser_result result = new authenticateUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");}public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException{send_updatePassword(username, oldPassword, newPassword);return recv_updatePassword();}public void send_updatePassword(String username, String oldPassword, String newPassword) throws TException{oprot_.writeMessageBegin(new TMessage("updatePassword", TMessageType.CALL, seqid_));updatePassword_args args = new updatePassword_args();args.username = username;args.oldPassword = oldPassword;args.newPassword = newPassword;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_updatePassword() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updatePassword_result result = new updatePassword_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.se != null) {throw result.se;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");}public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, TException{send_authenticateLogisticsUser(username, password);return recv_authenticateLogisticsUser();}public void send_authenticateLogisticsUser(String username, String password) throws TException{oprot_.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.CALL, seqid_));authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();args.username = username;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.hse != null) {throw result.hse;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");}}public static class Processor implements TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(Iface iface){iface_ = iface;processMap_.put("closeSession", new closeSession());processMap_.put("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("authenticateUser", new authenticateUser());processMap_.put("updatePassword", new updatePassword());processMap_.put("authenticateLogisticsUser", new authenticateLogisticsUser());}protected static interface ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;}private Iface iface_;protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();public boolean process(TProtocol iprot, TProtocol oprot) throws TException{TMessage msg = iprot.readMessageBegin();ProcessFunction fn = processMap_.get(msg.name);if (fn == null) {TProtocolUtil.skip(iprot, TType.STRUCT);iprot.readMessageEnd();TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return true;}fn.process(msg.seqid, iprot, oprot);return true;}private class closeSession implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{closeSession_args args = new closeSession_args();args.read(iprot);iprot.readMessageEnd();closeSession_result result = new closeSession_result();iface_.closeSession();oprot.writeMessageBegin(new TMessage("closeSession", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class sendMail implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{sendMail_args args = new sendMail_args();args.read(iprot);iprot.readMessageEnd();sendMail_result result = new sendMail_result();try {iface_.sendMail(args.mail);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing sendMail", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendMail");oprot.writeMessageBegin(new TMessage("sendMail", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("sendMail", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class sendText implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{sendText_args args = new sendText_args();args.read(iprot);iprot.readMessageEnd();sendText_result result = new sendText_result();try {iface_.sendText(args.message);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing sendText", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendText");oprot.writeMessageBegin(new TMessage("sendText", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("sendText", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class addMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{addMessage_args args = new addMessage_args();args.read(iprot);iprot.readMessageEnd();addMessage_result result = new addMessage_result();try {iface_.addMessage(args.message);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing addMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addMessage");oprot.writeMessageBegin(new TMessage("addMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("addMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updateMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updateMessage_args args = new updateMessage_args();args.read(iprot);iprot.readMessageEnd();updateMessage_result result = new updateMessage_result();try {iface_.updateMessage(args.id, args.message);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing updateMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateMessage");oprot.writeMessageBegin(new TMessage("updateMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("updateMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getMessage_args args = new getMessage_args();args.read(iprot);iprot.readMessageEnd();getMessage_result result = new getMessage_result();try {result.success = iface_.getMessage(args.id);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing getMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMessage");oprot.writeMessageBegin(new TMessage("getMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getSubstitutedMessage implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getSubstitutedMessage_args args = new getSubstitutedMessage_args();args.read(iprot);iprot.readMessageEnd();getSubstitutedMessage_result result = new getSubstitutedMessage_result();try {result.success = iface_.getSubstitutedMessage(args.id, args.params);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing getSubstitutedMessage", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getSubstitutedMessage");oprot.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class addUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{addUser_args args = new addUser_args();args.read(iprot);iprot.readMessageEnd();addUser_result result = new addUser_result();try {result.success = iface_.addUser(args.username, args.password, args.warehouseId);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing addUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addUser");oprot.writeMessageBegin(new TMessage("addUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("addUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class deleteUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{deleteUser_args args = new deleteUser_args();args.read(iprot);iprot.readMessageEnd();deleteUser_result result = new deleteUser_result();try {result.success = iface_.deleteUser(args.username);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing deleteUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteUser");oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class authenticateUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{authenticateUser_args args = new authenticateUser_args();args.read(iprot);iprot.readMessageEnd();authenticateUser_result result = new authenticateUser_result();try {result.success = iface_.authenticateUser(args.username, args.password);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing authenticateUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateUser");oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("authenticateUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updatePassword implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updatePassword_args args = new updatePassword_args();args.read(iprot);iprot.readMessageEnd();updatePassword_result result = new updatePassword_result();try {result.success = iface_.updatePassword(args.username, args.oldPassword, args.newPassword);result.setSuccessIsSet(true);} catch (HelperServiceException se) {result.se = se;} catch (Throwable th) {LOGGER.error("Internal error processing updatePassword", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updatePassword");oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class authenticateLogisticsUser implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();args.read(iprot);iprot.readMessageEnd();authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();try {result.success = iface_.authenticateLogisticsUser(args.username, args.password);} catch (HelperServiceException hse) {result.hse = hse;} catch (Throwable th) {LOGGER.error("Internal error processing authenticateLogisticsUser", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateLogisticsUser");oprot.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}}public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args> {private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);}public closeSession_args() {}/*** Performs a deep copy on <i>other</i>.*/public closeSession_args(closeSession_args other) {}public closeSession_args deepCopy() {return new closeSession_args(this);}@Deprecatedpublic closeSession_args clone() {return new closeSession_args(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof closeSession_args)return this.equals((closeSession_args)that);return false;}public boolean equals(closeSession_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(closeSession_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;closeSession_args typedOther = (closeSession_args)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("closeSession_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class closeSession_result implements TBase<closeSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_result> {private static final TStruct STRUCT_DESC = new TStruct("closeSession_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);}public closeSession_result() {}/*** Performs a deep copy on <i>other</i>.*/public closeSession_result(closeSession_result other) {}public closeSession_result deepCopy() {return new closeSession_result(this);}@Deprecatedpublic closeSession_result clone() {return new closeSession_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof closeSession_result)return this.equals((closeSession_result)that);return false;}public boolean equals(closeSession_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(closeSession_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;closeSession_result typedOther = (closeSession_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("closeSession_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendMail_args implements TBase<sendMail_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_args> {private static final TStruct STRUCT_DESC = new TStruct("sendMail_args");private static final TField MAIL_FIELD_DESC = new TField("mail", TType.STRUCT, (short)1);private Mail mail;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {MAIL((short)1, "mail");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.MAIL, new FieldMetaData("mail", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Mail.class)));}});static {FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);}public sendMail_args() {}public sendMail_args(Mail mail){this();this.mail = mail;}/*** Performs a deep copy on <i>other</i>.*/public sendMail_args(sendMail_args other) {if (other.isSetMail()) {this.mail = new Mail(other.mail);}}public sendMail_args deepCopy() {return new sendMail_args(this);}@Deprecatedpublic sendMail_args clone() {return new sendMail_args(this);}public Mail getMail() {return this.mail;}public sendMail_args setMail(Mail mail) {this.mail = mail;return this;}public void unsetMail() {this.mail = null;}/** Returns true if field mail is set (has been asigned a value) and false otherwise */public boolean isSetMail() {return this.mail != null;}public void setMailIsSet(boolean value) {if (!value) {this.mail = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MAIL:if (value == null) {unsetMail();} else {setMail((Mail)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case MAIL:return getMail();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case MAIL:return isSetMail();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendMail_args)return this.equals((sendMail_args)that);return false;}public boolean equals(sendMail_args that) {if (that == null)return false;boolean this_present_mail = true && this.isSetMail();boolean that_present_mail = true && that.isSetMail();if (this_present_mail || that_present_mail) {if (!(this_present_mail && that_present_mail))return false;if (!this.mail.equals(that.mail))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendMail_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendMail_args typedOther = (sendMail_args)other;lastComparison = Boolean.valueOf(isSetMail()).compareTo(isSetMail());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(mail, typedOther.mail);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case MAIL:if (field.type == TType.STRUCT) {this.mail = new Mail();this.mail.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.mail != null) {oprot.writeFieldBegin(MAIL_FIELD_DESC);this.mail.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendMail_args(");boolean first = true;sb.append("mail:");if (this.mail == null) {sb.append("null");} else {sb.append(this.mail);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendMail_result implements TBase<sendMail_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_result> {private static final TStruct STRUCT_DESC = new TStruct("sendMail_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);}public sendMail_result() {}public sendMail_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public sendMail_result(sendMail_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public sendMail_result deepCopy() {return new sendMail_result(this);}@Deprecatedpublic sendMail_result clone() {return new sendMail_result(this);}public HelperServiceException getSe() {return this.se;}public sendMail_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendMail_result)return this.equals((sendMail_result)that);return false;}public boolean equals(sendMail_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendMail_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendMail_result typedOther = (sendMail_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendMail_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendText_args implements TBase<sendText_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendText_args> {private static final TStruct STRUCT_DESC = new TStruct("sendText_args");private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRUCT, (short)1);private TextMessage message;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {MESSAGE((short)1, "message");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, TextMessage.class)));}});static {FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);}public sendText_args() {}public sendText_args(TextMessage message){this();this.message = message;}/*** Performs a deep copy on <i>other</i>.*/public sendText_args(sendText_args other) {if (other.isSetMessage()) {this.message = new TextMessage(other.message);}}public sendText_args deepCopy() {return new sendText_args(this);}@Deprecatedpublic sendText_args clone() {return new sendText_args(this);}public TextMessage getMessage() {return this.message;}public sendText_args setMessage(TextMessage message) {this.message = message;return this;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been asigned a value) and false otherwise */public boolean isSetMessage() {return this.message != null;}public void setMessageIsSet(boolean value) {if (!value) {this.message = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MESSAGE:if (value == null) {unsetMessage();} else {setMessage((TextMessage)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case MESSAGE:return getMessage();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case MESSAGE:return isSetMessage();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendText_args)return this.equals((sendText_args)that);return false;}public boolean equals(sendText_args that) {if (that == null)return false;boolean this_present_message = true && this.isSetMessage();boolean that_present_message = true && that.isSetMessage();if (this_present_message || that_present_message) {if (!(this_present_message && that_present_message))return false;if (!this.message.equals(that.message))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendText_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendText_args typedOther = (sendText_args)other;lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(message, typedOther.message);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case MESSAGE:if (field.type == TType.STRUCT) {this.message = new TextMessage();this.message.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.message != null) {oprot.writeFieldBegin(MESSAGE_FIELD_DESC);this.message.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendText_args(");boolean first = true;sb.append("message:");if (this.message == null) {sb.append("null");} else {sb.append(this.message);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class sendText_result implements TBase<sendText_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendText_result> {private static final TStruct STRUCT_DESC = new TStruct("sendText_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);}public sendText_result() {}public sendText_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public sendText_result(sendText_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public sendText_result deepCopy() {return new sendText_result(this);}@Deprecatedpublic sendText_result clone() {return new sendText_result(this);}public HelperServiceException getSe() {return this.se;}public sendText_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof sendText_result)return this.equals((sendText_result)that);return false;}public boolean equals(sendText_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(sendText_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;sendText_result typedOther = (sendText_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("sendText_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addMessage_args implements TBase<addMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<addMessage_args> {private static final TStruct STRUCT_DESC = new TStruct("addMessage_args");private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRUCT, (short)1);private Message message;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {MESSAGE((short)1, "message");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Message.class)));}});static {FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);}public addMessage_args() {}public addMessage_args(Message message){this();this.message = message;}/*** Performs a deep copy on <i>other</i>.*/public addMessage_args(addMessage_args other) {if (other.isSetMessage()) {this.message = new Message(other.message);}}public addMessage_args deepCopy() {return new addMessage_args(this);}@Deprecatedpublic addMessage_args clone() {return new addMessage_args(this);}public Message getMessage() {return this.message;}public addMessage_args setMessage(Message message) {this.message = message;return this;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been asigned a value) and false otherwise */public boolean isSetMessage() {return this.message != null;}public void setMessageIsSet(boolean value) {if (!value) {this.message = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MESSAGE:if (value == null) {unsetMessage();} else {setMessage((Message)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case MESSAGE:return getMessage();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case MESSAGE:return isSetMessage();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addMessage_args)return this.equals((addMessage_args)that);return false;}public boolean equals(addMessage_args that) {if (that == null)return false;boolean this_present_message = true && this.isSetMessage();boolean that_present_message = true && that.isSetMessage();if (this_present_message || that_present_message) {if (!(this_present_message && that_present_message))return false;if (!this.message.equals(that.message))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addMessage_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addMessage_args typedOther = (addMessage_args)other;lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(message, typedOther.message);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case MESSAGE:if (field.type == TType.STRUCT) {this.message = new Message();this.message.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.message != null) {oprot.writeFieldBegin(MESSAGE_FIELD_DESC);this.message.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addMessage_args(");boolean first = true;sb.append("message:");if (this.message == null) {sb.append("null");} else {sb.append(this.message);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addMessage_result implements TBase<addMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<addMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("addMessage_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);}public addMessage_result() {}public addMessage_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public addMessage_result(addMessage_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public addMessage_result deepCopy() {return new addMessage_result(this);}@Deprecatedpublic addMessage_result clone() {return new addMessage_result(this);}public HelperServiceException getSe() {return this.se;}public addMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addMessage_result)return this.equals((addMessage_result)that);return false;}public boolean equals(addMessage_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addMessage_result typedOther = (addMessage_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addMessage_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateMessage_args implements TBase<updateMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateMessage_args> {private static final TStruct STRUCT_DESC = new TStruct("updateMessage_args");private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)2);private long id;private String message;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ID((short)1, "id"),MESSAGE((short)2, "message");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);}public updateMessage_args() {}public updateMessage_args(long id,String message){this();this.id = id;setIdIsSet(true);this.message = message;}/*** Performs a deep copy on <i>other</i>.*/public updateMessage_args(updateMessage_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;if (other.isSetMessage()) {this.message = other.message;}}public updateMessage_args deepCopy() {return new updateMessage_args(this);}@Deprecatedpublic updateMessage_args clone() {return new updateMessage_args(this);}public long getId() {return this.id;}public updateMessage_args setId(long id) {this.id = id;setIdIsSet(true);return this;}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been asigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public String getMessage() {return this.message;}public updateMessage_args setMessage(String message) {this.message = message;return this;}public void unsetMessage() {this.message = null;}/** Returns true if field message is set (has been asigned a value) and false otherwise */public boolean isSetMessage() {return this.message != null;}public void setMessageIsSet(boolean value) {if (!value) {this.message = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case MESSAGE:if (value == null) {unsetMessage();} else {setMessage((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ID:return new Long(getId());case MESSAGE:return getMessage();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ID:return isSetId();case MESSAGE:return isSetMessage();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateMessage_args)return this.equals((updateMessage_args)that);return false;}public boolean equals(updateMessage_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_message = true && this.isSetMessage();boolean that_present_message = true && that.isSetMessage();if (this_present_message || that_present_message) {if (!(this_present_message && that_present_message))return false;if (!this.message.equals(that.message))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMessage_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMessage_args typedOther = (updateMessage_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(id, typedOther.id);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(message, typedOther.message);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ID:if (field.type == TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case MESSAGE:if (field.type == TType.STRING) {this.message = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();if (this.message != null) {oprot.writeFieldBegin(MESSAGE_FIELD_DESC);oprot.writeString(this.message);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMessage_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("message:");if (this.message == null) {sb.append("null");} else {sb.append(this.message);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateMessage_result implements TBase<updateMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("updateMessage_result");private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);}public updateMessage_result() {}public updateMessage_result(HelperServiceException se){this();this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public updateMessage_result(updateMessage_result other) {if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public updateMessage_result deepCopy() {return new updateMessage_result(this);}@Deprecatedpublic updateMessage_result clone() {return new updateMessage_result(this);}public HelperServiceException getSe() {return this.se;}public updateMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateMessage_result)return this.equals((updateMessage_result)that);return false;}public boolean equals(updateMessage_result that) {if (that == null)return false;boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateMessage_result typedOther = (updateMessage_result)other;lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateMessage_result(");boolean first = true;sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getMessage_args implements TBase<getMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMessage_args> {private static final TStruct STRUCT_DESC = new TStruct("getMessage_args");private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);private long id;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ID((short)1, "id");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);}public getMessage_args() {}public getMessage_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getMessage_args(getMessage_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getMessage_args deepCopy() {return new getMessage_args(this);}@Deprecatedpublic getMessage_args clone() {return new getMessage_args(this);}public long getId() {return this.id;}public getMessage_args setId(long id) {this.id = id;setIdIsSet(true);return this;}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been asigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ID:return new Long(getId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ID:return isSetId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMessage_args)return this.equals((getMessage_args)that);return false;}public boolean equals(getMessage_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMessage_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMessage_args typedOther = (getMessage_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(id, typedOther.id);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ID:if (field.type == TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMessage_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getMessage_result implements TBase<getMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("getMessage_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private Message success;private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Message.class)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);}public getMessage_result() {}public getMessage_result(Message success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getMessage_result(getMessage_result other) {if (other.isSetSuccess()) {this.success = new Message(other.success);}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getMessage_result deepCopy() {return new getMessage_result(this);}@Deprecatedpublic getMessage_result clone() {return new getMessage_result(this);}public Message getSuccess() {return this.success;}public getMessage_result setSuccess(Message success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public HelperServiceException getSe() {return this.se;}public getMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Message)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getMessage_result)return this.equals((getMessage_result)that);return false;}public boolean equals(getMessage_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getMessage_result typedOther = (getMessage_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Message();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getMessage_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getSubstitutedMessage_args implements TBase<getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getSubstitutedMessage_args");private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);private static final TField PARAMS_FIELD_DESC = new TField("params", TType.MAP, (short)2);private long id;private Map<String,String> params;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ID((short)1, "id"),PARAMS((short)2, "params");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.PARAMS, new FieldMetaData("params", TFieldRequirementType.DEFAULT,new MapMetaData(TType.MAP,new FieldValueMetaData(TType.STRING),new FieldValueMetaData(TType.STRING))));}});static {FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);}public getSubstitutedMessage_args() {}public getSubstitutedMessage_args(long id,Map<String,String> params){this();this.id = id;setIdIsSet(true);this.params = params;}/*** Performs a deep copy on <i>other</i>.*/public getSubstitutedMessage_args(getSubstitutedMessage_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;if (other.isSetParams()) {Map<String,String> __this__params = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.params.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__params_copy_key = other_element_key;String __this__params_copy_value = other_element_value;__this__params.put(__this__params_copy_key, __this__params_copy_value);}this.params = __this__params;}}public getSubstitutedMessage_args deepCopy() {return new getSubstitutedMessage_args(this);}@Deprecatedpublic getSubstitutedMessage_args clone() {return new getSubstitutedMessage_args(this);}public long getId() {return this.id;}public getSubstitutedMessage_args setId(long id) {this.id = id;setIdIsSet(true);return this;}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been asigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public int getParamsSize() {return (this.params == null) ? 0 : this.params.size();}public void putToParams(String key, String val) {if (this.params == null) {this.params = new HashMap<String,String>();}this.params.put(key, val);}public Map<String,String> getParams() {return this.params;}public getSubstitutedMessage_args setParams(Map<String,String> params) {this.params = params;return this;}public void unsetParams() {this.params = null;}/** Returns true if field params is set (has been asigned a value) and false otherwise */public boolean isSetParams() {return this.params != null;}public void setParamsIsSet(boolean value) {if (!value) {this.params = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case PARAMS:if (value == null) {unsetParams();} else {setParams((Map<String,String>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ID:return new Long(getId());case PARAMS:return getParams();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ID:return isSetId();case PARAMS:return isSetParams();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSubstitutedMessage_args)return this.equals((getSubstitutedMessage_args)that);return false;}public boolean equals(getSubstitutedMessage_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_params = true && this.isSetParams();boolean that_present_params = true && that.isSetParams();if (this_present_params || that_present_params) {if (!(this_present_params && that_present_params))return false;if (!this.params.equals(that.params))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ID:if (field.type == TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case PARAMS:if (field.type == TType.MAP) {{TMap _map8 = iprot.readMapBegin();this.params = new HashMap<String,String>(2*_map8.size);for (int _i9 = 0; _i9 < _map8.size; ++_i9){String _key10;String _val11;_key10 = iprot.readString();_val11 = iprot.readString();this.params.put(_key10, _val11);}iprot.readMapEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();if (this.params != null) {oprot.writeFieldBegin(PARAMS_FIELD_DESC);{oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.params.size()));for (Map.Entry<String, String> _iter12 : this.params.entrySet()){oprot.writeString(_iter12.getKey());oprot.writeString(_iter12.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("params:");if (this.params == null) {sb.append("null");} else {sb.append(this.params);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getSubstitutedMessage_result implements TBase<getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSubstitutedMessage_result> {private static final TStruct STRUCT_DESC = new TStruct("getSubstitutedMessage_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private Message success;private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Message.class)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);}public getSubstitutedMessage_result() {}public getSubstitutedMessage_result(Message success,HelperServiceException se){this();this.success = success;this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public getSubstitutedMessage_result(getSubstitutedMessage_result other) {if (other.isSetSuccess()) {this.success = new Message(other.success);}if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public getSubstitutedMessage_result deepCopy() {return new getSubstitutedMessage_result(this);}@Deprecatedpublic getSubstitutedMessage_result clone() {return new getSubstitutedMessage_result(this);}public Message getSuccess() {return this.success;}public getSubstitutedMessage_result setSuccess(Message success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public HelperServiceException getSe() {return this.se;}public getSubstitutedMessage_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Message)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSubstitutedMessage_result)return this.equals((getSubstitutedMessage_result)that);return false;}public boolean equals(getSubstitutedMessage_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSubstitutedMessage_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Message();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addUser_args implements TBase<addUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_args> {private static final TStruct STRUCT_DESC = new TStruct("addUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)3);private String username;private String password;private long warehouseId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password"),WAREHOUSE_ID((short)3, "warehouseId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __WAREHOUSEID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);}public addUser_args() {}public addUser_args(String username,String password,long warehouseId){this();this.username = username;this.password = password;this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addUser_args(addUser_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}this.warehouseId = other.warehouseId;}public addUser_args deepCopy() {return new addUser_args(this);}@Deprecatedpublic addUser_args clone() {return new addUser_args(this);}public String getUsername() {return this.username;}public addUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public addUser_args setPassword(String password) {this.password = password;return this;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been asigned a value) and false otherwise */public boolean isSetPassword() {return this.password != null;}public void setPasswordIsSet(boolean value) {if (!value) {this.password = null;}}public long getWarehouseId() {return this.warehouseId;}public addUser_args setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);return this;}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();case WAREHOUSE_ID:return new Long(getWarehouseId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();case WAREHOUSE_ID:return isSetWarehouseId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addUser_args)return this.equals((addUser_args)that);return false;}public boolean equals(addUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}boolean this_present_password = true && this.isSetPassword();boolean that_present_password = true && that.isSetPassword();if (this_present_password || that_present_password) {if (!(this_present_password && that_present_password))return false;if (!this.password.equals(that.password))return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addUser_args typedOther = (addUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(password, typedOther.password);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case USERNAME:if (field.type == TType.STRING) {this.username = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case PASSWORD:if (field.type == TType.STRING) {this.password = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case WAREHOUSE_ID:if (field.type == TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addUser_result implements TBase<addUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_result> {private static final TStruct STRUCT_DESC = new TStruct("addUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private boolean success;private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);}public addUser_result() {}public addUser_result(boolean success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public addUser_result(addUser_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public addUser_result deepCopy() {return new addUser_result(this);}@Deprecatedpublic addUser_result clone() {return new addUser_result(this);}public boolean isSuccess() {return this.success;}public addUser_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public HelperServiceException getSe() {return this.se;}public addUser_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addUser_result)return this.equals((addUser_result)that);return false;}public boolean equals(addUser_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addUser_result typedOther = (addUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addUser_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class deleteUser_args implements TBase<deleteUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_args> {private static final TStruct STRUCT_DESC = new TStruct("deleteUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private String username;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);}public deleteUser_args() {}public deleteUser_args(String username){this();this.username = username;}/*** Performs a deep copy on <i>other</i>.*/public deleteUser_args(deleteUser_args other) {if (other.isSetUsername()) {this.username = other.username;}}public deleteUser_args deepCopy() {return new deleteUser_args(this);}@Deprecatedpublic deleteUser_args clone() {return new deleteUser_args(this);}public String getUsername() {return this.username;}public deleteUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case USERNAME:return isSetUsername();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteUser_args)return this.equals((deleteUser_args)that);return false;}public boolean equals(deleteUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteUser_args typedOther = (deleteUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case USERNAME:if (field.type == TType.STRING) {this.username = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class deleteUser_result implements TBase<deleteUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_result> {private static final TStruct STRUCT_DESC = new TStruct("deleteUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private boolean success;private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);}public deleteUser_result() {}public deleteUser_result(boolean success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public deleteUser_result(deleteUser_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public deleteUser_result deepCopy() {return new deleteUser_result(this);}@Deprecatedpublic deleteUser_result clone() {return new deleteUser_result(this);}public boolean isSuccess() {return this.success;}public deleteUser_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public HelperServiceException getSe() {return this.se;}public deleteUser_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof deleteUser_result)return this.equals((deleteUser_result)that);return false;}public boolean equals(deleteUser_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(deleteUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;deleteUser_result typedOther = (deleteUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("deleteUser_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateUser_args implements TBase<authenticateUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_args> {private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String username;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(authenticateUser_args.class, metaDataMap);}public authenticateUser_args() {}public authenticateUser_args(String username,String password){this();this.username = username;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public authenticateUser_args(authenticateUser_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}}public authenticateUser_args deepCopy() {return new authenticateUser_args(this);}@Deprecatedpublic authenticateUser_args clone() {return new authenticateUser_args(this);}public String getUsername() {return this.username;}public authenticateUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public authenticateUser_args setPassword(String password) {this.password = password;return this;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been asigned a value) and false otherwise */public boolean isSetPassword() {return this.password != null;}public void setPasswordIsSet(boolean value) {if (!value) {this.password = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authenticateUser_args)return this.equals((authenticateUser_args)that);return false;}public boolean equals(authenticateUser_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(authenticateUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateUser_args typedOther = (authenticateUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(password, typedOther.password);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case USERNAME:if (field.type == TType.STRING) {this.username = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case PASSWORD:if (field.type == TType.STRING) {this.password = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateUser_result implements TBase<authenticateUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateUser_result> {private static final TStruct STRUCT_DESC = new TStruct("authenticateUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private long success;private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(authenticateUser_result.class, metaDataMap);}public authenticateUser_result() {}public authenticateUser_result(long success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public authenticateUser_result(authenticateUser_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 authenticateUser_result deepCopy() {return new authenticateUser_result(this);}@Deprecatedpublic authenticateUser_result clone() {return new authenticateUser_result(this);}public long getSuccess() {return this.success;}public authenticateUser_result setSuccess(long success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public HelperServiceException getSe() {return this.se;}public authenticateUser_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Long(getSuccess());case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authenticateUser_result)return this.equals((authenticateUser_result)that);return false;}public boolean equals(authenticateUser_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(authenticateUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateUser_result typedOther = (authenticateUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.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("authenticateUser_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePassword_args implements TBase<updatePassword_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_args> {private static final TStruct STRUCT_DESC = new TStruct("updatePassword_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField OLD_PASSWORD_FIELD_DESC = new TField("oldPassword", TType.STRING, (short)2);private static final TField NEW_PASSWORD_FIELD_DESC = new TField("newPassword", TType.STRING, (short)3);private String username;private String oldPassword;private String newPassword;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),OLD_PASSWORD((short)2, "oldPassword"),NEW_PASSWORD((short)3, "newPassword");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.OLD_PASSWORD, new FieldMetaData("oldPassword", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.NEW_PASSWORD, new FieldMetaData("newPassword", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);}public updatePassword_args() {}public updatePassword_args(String username,String oldPassword,String newPassword){this();this.username = username;this.oldPassword = oldPassword;this.newPassword = newPassword;}/*** Performs a deep copy on <i>other</i>.*/public updatePassword_args(updatePassword_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetOldPassword()) {this.oldPassword = other.oldPassword;}if (other.isSetNewPassword()) {this.newPassword = other.newPassword;}}public updatePassword_args deepCopy() {return new updatePassword_args(this);}@Deprecatedpublic updatePassword_args clone() {return new updatePassword_args(this);}public String getUsername() {return this.username;}public updatePassword_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getOldPassword() {return this.oldPassword;}public updatePassword_args setOldPassword(String oldPassword) {this.oldPassword = oldPassword;return this;}public void unsetOldPassword() {this.oldPassword = null;}/** Returns true if field oldPassword is set (has been asigned a value) and false otherwise */public boolean isSetOldPassword() {return this.oldPassword != null;}public void setOldPasswordIsSet(boolean value) {if (!value) {this.oldPassword = null;}}public String getNewPassword() {return this.newPassword;}public updatePassword_args setNewPassword(String newPassword) {this.newPassword = newPassword;return this;}public void unsetNewPassword() {this.newPassword = null;}/** Returns true if field newPassword is set (has been asigned a value) and false otherwise */public boolean isSetNewPassword() {return this.newPassword != null;}public void setNewPasswordIsSet(boolean value) {if (!value) {this.newPassword = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case OLD_PASSWORD:if (value == null) {unsetOldPassword();} else {setOldPassword((String)value);}break;case NEW_PASSWORD:if (value == null) {unsetNewPassword();} else {setNewPassword((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case OLD_PASSWORD:return getOldPassword();case NEW_PASSWORD:return getNewPassword();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case USERNAME:return isSetUsername();case OLD_PASSWORD:return isSetOldPassword();case NEW_PASSWORD:return isSetNewPassword();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePassword_args)return this.equals((updatePassword_args)that);return false;}public boolean equals(updatePassword_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}boolean this_present_oldPassword = true && this.isSetOldPassword();boolean that_present_oldPassword = true && that.isSetOldPassword();if (this_present_oldPassword || that_present_oldPassword) {if (!(this_present_oldPassword && that_present_oldPassword))return false;if (!this.oldPassword.equals(that.oldPassword))return false;}boolean this_present_newPassword = true && this.isSetNewPassword();boolean that_present_newPassword = true && that.isSetNewPassword();if (this_present_newPassword || that_present_newPassword) {if (!(this_present_newPassword && that_present_newPassword))return false;if (!this.newPassword.equals(that.newPassword))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePassword_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePassword_args typedOther = (updatePassword_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(isSetOldPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(oldPassword, typedOther.oldPassword);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(isSetNewPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(newPassword, typedOther.newPassword);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case USERNAME:if (field.type == TType.STRING) {this.username = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case OLD_PASSWORD:if (field.type == TType.STRING) {this.oldPassword = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case NEW_PASSWORD:if (field.type == TType.STRING) {this.newPassword = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.oldPassword != null) {oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);oprot.writeString(this.oldPassword);oprot.writeFieldEnd();}if (this.newPassword != null) {oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);oprot.writeString(this.newPassword);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePassword_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("oldPassword:");if (this.oldPassword == null) {sb.append("null");} else {sb.append(this.oldPassword);}first = false;if (!first) sb.append(", ");sb.append("newPassword:");if (this.newPassword == null) {sb.append("null");} else {sb.append(this.newPassword);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePassword_result implements TBase<updatePassword_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_result> {private static final TStruct STRUCT_DESC = new TStruct("updatePassword_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);private boolean success;private HelperServiceException se;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),SE((short)1, "se");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);}public updatePassword_result() {}public updatePassword_result(boolean success,HelperServiceException se){this();this.success = success;setSuccessIsSet(true);this.se = se;}/*** Performs a deep copy on <i>other</i>.*/public updatePassword_result(updatePassword_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetSe()) {this.se = new HelperServiceException(other.se);}}public updatePassword_result deepCopy() {return new updatePassword_result(this);}@Deprecatedpublic updatePassword_result clone() {return new updatePassword_result(this);}public boolean isSuccess() {return this.success;}public updatePassword_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public HelperServiceException getSe() {return this.se;}public updatePassword_result setSe(HelperServiceException se) {this.se = se;return this;}public void unsetSe() {this.se = null;}/** Returns true if field se is set (has been asigned a value) and false otherwise */public boolean isSetSe() {return this.se != null;}public void setSeIsSet(boolean value) {if (!value) {this.se = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case SE:if (value == null) {unsetSe();} else {setSe((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case SE:return getSe();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case SE:return isSetSe();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePassword_result)return this.equals((updatePassword_result)that);return false;}public boolean equals(updatePassword_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_se = true && this.isSetSe();boolean that_present_se = true && that.isSetSe();if (this_present_se || that_present_se) {if (!(this_present_se && that_present_se))return false;if (!this.se.equals(that.se))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePassword_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePassword_result typedOther = (updatePassword_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(se, typedOther.se);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SE:if (field.type == TType.STRUCT) {this.se = new HelperServiceException();this.se.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetSe()) {oprot.writeFieldBegin(SE_FIELD_DESC);this.se.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePassword_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("se:");if (this.se == null) {sb.append("null");} else {sb.append(this.se);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateLogisticsUser_args implements TBase<authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateLogisticsUser_args> {private static final TStruct STRUCT_DESC = new TStruct("authenticateLogisticsUser_args");private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String username;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {USERNAME((short)1, "username"),PASSWORD((short)2, "password");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);}public authenticateLogisticsUser_args() {}public authenticateLogisticsUser_args(String username,String password){this();this.username = username;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {if (other.isSetUsername()) {this.username = other.username;}if (other.isSetPassword()) {this.password = other.password;}}public authenticateLogisticsUser_args deepCopy() {return new authenticateLogisticsUser_args(this);}@Deprecatedpublic authenticateLogisticsUser_args clone() {return new authenticateLogisticsUser_args(this);}public String getUsername() {return this.username;}public authenticateLogisticsUser_args setUsername(String username) {this.username = username;return this;}public void unsetUsername() {this.username = null;}/** Returns true if field username is set (has been asigned a value) and false otherwise */public boolean isSetUsername() {return this.username != null;}public void setUsernameIsSet(boolean value) {if (!value) {this.username = null;}}public String getPassword() {return this.password;}public authenticateLogisticsUser_args setPassword(String password) {this.password = password;return this;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been asigned a value) and false otherwise */public boolean isSetPassword() {return this.password != null;}public void setPasswordIsSet(boolean value) {if (!value) {this.password = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case USERNAME:if (value == null) {unsetUsername();} else {setUsername((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case USERNAME:return getUsername();case PASSWORD:return getPassword();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case USERNAME:return isSetUsername();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authenticateLogisticsUser_args)return this.equals((authenticateLogisticsUser_args)that);return false;}public boolean equals(authenticateLogisticsUser_args that) {if (that == null)return false;boolean this_present_username = true && this.isSetUsername();boolean that_present_username = true && that.isSetUsername();if (this_present_username || that_present_username) {if (!(this_present_username && that_present_username))return false;if (!this.username.equals(that.username))return false;}boolean this_present_password = true && this.isSetPassword();boolean that_present_password = true && that.isSetPassword();if (this_present_password || that_present_password) {if (!(this_present_password && that_present_password))return false;if (!this.password.equals(that.password))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateLogisticsUser_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(username, typedOther.username);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(password, typedOther.password);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case USERNAME:if (field.type == TType.STRING) {this.username = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case PASSWORD:if (field.type == TType.STRING) {this.password = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.username != null) {oprot.writeFieldBegin(USERNAME_FIELD_DESC);oprot.writeString(this.username);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");boolean first = true;sb.append("username:");if (this.username == null) {sb.append("null");} else {sb.append(this.username);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class authenticateLogisticsUser_result implements TBase<authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateLogisticsUser_result> {private static final TStruct STRUCT_DESC = new TStruct("authenticateLogisticsUser_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);private LogisticsUser success;private HelperServiceException hse;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),HSE((short)1, "hse");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, LogisticsUser.class)));put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);}public authenticateLogisticsUser_result() {}public authenticateLogisticsUser_result(LogisticsUser success,HelperServiceException hse){this();this.success = success;this.hse = hse;}/*** Performs a deep copy on <i>other</i>.*/public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {if (other.isSetSuccess()) {this.success = new LogisticsUser(other.success);}if (other.isSetHse()) {this.hse = new HelperServiceException(other.hse);}}public authenticateLogisticsUser_result deepCopy() {return new authenticateLogisticsUser_result(this);}@Deprecatedpublic authenticateLogisticsUser_result clone() {return new authenticateLogisticsUser_result(this);}public LogisticsUser getSuccess() {return this.success;}public authenticateLogisticsUser_result setSuccess(LogisticsUser success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public HelperServiceException getHse() {return this.hse;}public authenticateLogisticsUser_result setHse(HelperServiceException hse) {this.hse = hse;return this;}public void unsetHse() {this.hse = null;}/** Returns true if field hse is set (has been asigned a value) and false otherwise */public boolean isSetHse() {return this.hse != null;}public void setHseIsSet(boolean value) {if (!value) {this.hse = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((LogisticsUser)value);}break;case HSE:if (value == null) {unsetHse();} else {setHse((HelperServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case HSE:return getHse();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case HSE:return isSetHse();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authenticateLogisticsUser_result)return this.equals((authenticateLogisticsUser_result)that);return false;}public boolean equals(authenticateLogisticsUser_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_hse = true && this.isSetHse();boolean that_present_hse = true && that.isSetHse();if (this_present_hse || that_present_hse) {if (!(this_present_hse && that_present_hse))return false;if (!this.hse.equals(that.hse))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authenticateLogisticsUser_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new LogisticsUser();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case HSE:if (field.type == TType.STRUCT) {this.hse = new HelperServiceException();this.hse.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetHse()) {oprot.writeFieldBegin(HSE_FIELD_DESC);this.hse.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("hse:");if (this.hse == null) {sb.append("null");} else {sb.append(this.hse);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}}