Rev 3374 | Rev 3405 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.crm;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.apache.thrift.*;import org.apache.thrift.meta_data.*;import org.apache.thrift.protocol.*;public class CRMService {public interface Iface extends in.shop2020.generic.GenericService.Iface {public List<Ticket> getTickets(SearchFilter searchFilter) throws TException;public List<Ticket> getUnassignedTickets() throws TException;public void updateTicket(Ticket ticket, Activity activity) throws TException;public long insertTicket(Ticket ticket, Activity activity) throws TException;public List<Activity> getActivities(SearchFilter searchFilter) throws TException;public void insertActivity(Activity activity) throws TException;public void markAsRead(long activityId, long agentId) throws TException;public List<Agent> getAgents(SearchFilter searchFilter) throws TException;public void updatePasswordForAgent(String agentEmailId, String password) throws TException;public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;public List<String> getPermissionsForRoleName(String roleName) throws TException;public long getLastEmailProcessedTimestamp() throws TException;public void updateLastEmailProcessedTimestamp(long timestamp) throws TException;}public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {public Client(TProtocol prot){this(prot, prot);}public Client(TProtocol iprot, TProtocol oprot){super(iprot, oprot);}public List<Ticket> getTickets(SearchFilter searchFilter) throws TException{send_getTickets(searchFilter);return recv_getTickets();}public void send_getTickets(SearchFilter searchFilter) throws TException{oprot_.writeMessageBegin(new TMessage("getTickets", TMessageType.CALL, seqid_));getTickets_args args = new getTickets_args();args.searchFilter = searchFilter;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Ticket> recv_getTickets() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTickets_result result = new getTickets_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");}public List<Ticket> getUnassignedTickets() throws TException{send_getUnassignedTickets();return recv_getUnassignedTickets();}public void send_getUnassignedTickets() throws TException{oprot_.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.CALL, seqid_));getUnassignedTickets_args args = new getUnassignedTickets_args();args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Ticket> recv_getUnassignedTickets() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getUnassignedTickets_result result = new getUnassignedTickets_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");}public void updateTicket(Ticket ticket, Activity activity) throws TException{send_updateTicket(ticket, activity);recv_updateTicket();}public void send_updateTicket(Ticket ticket, Activity activity) throws TException{oprot_.writeMessageBegin(new TMessage("updateTicket", TMessageType.CALL, seqid_));updateTicket_args args = new updateTicket_args();args.ticket = ticket;args.activity = activity;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updateTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updateTicket_result result = new updateTicket_result();result.read(iprot_);iprot_.readMessageEnd();return;}public long insertTicket(Ticket ticket, Activity activity) throws TException{send_insertTicket(ticket, activity);return recv_insertTicket();}public void send_insertTicket(Ticket ticket, Activity activity) throws TException{oprot_.writeMessageBegin(new TMessage("insertTicket", TMessageType.CALL, seqid_));insertTicket_args args = new insertTicket_args();args.ticket = ticket;args.activity = activity;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public long recv_insertTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}insertTicket_result result = new insertTicket_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");}public List<Activity> getActivities(SearchFilter searchFilter) throws TException{send_getActivities(searchFilter);return recv_getActivities();}public void send_getActivities(SearchFilter searchFilter) throws TException{oprot_.writeMessageBegin(new TMessage("getActivities", TMessageType.CALL, seqid_));getActivities_args args = new getActivities_args();args.searchFilter = searchFilter;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Activity> recv_getActivities() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivities_result result = new getActivities_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");}public void insertActivity(Activity activity) throws TException{send_insertActivity(activity);recv_insertActivity();}public void send_insertActivity(Activity activity) throws TException{oprot_.writeMessageBegin(new TMessage("insertActivity", TMessageType.CALL, seqid_));insertActivity_args args = new insertActivity_args();args.activity = activity;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_insertActivity() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}insertActivity_result result = new insertActivity_result();result.read(iprot_);iprot_.readMessageEnd();return;}public void markAsRead(long activityId, long agentId) throws TException{send_markAsRead(activityId, agentId);recv_markAsRead();}public void send_markAsRead(long activityId, long agentId) throws TException{oprot_.writeMessageBegin(new TMessage("markAsRead", TMessageType.CALL, seqid_));markAsRead_args args = new markAsRead_args();args.activityId = activityId;args.agentId = agentId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_markAsRead() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}markAsRead_result result = new markAsRead_result();result.read(iprot_);iprot_.readMessageEnd();return;}public List<Agent> getAgents(SearchFilter searchFilter) throws TException{send_getAgents(searchFilter);return recv_getAgents();}public void send_getAgents(SearchFilter searchFilter) throws TException{oprot_.writeMessageBegin(new TMessage("getAgents", TMessageType.CALL, seqid_));getAgents_args args = new getAgents_args();args.searchFilter = searchFilter;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Agent> recv_getAgents() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAgents_result result = new getAgents_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");}public void updatePasswordForAgent(String agentEmailId, String password) throws TException{send_updatePasswordForAgent(agentEmailId, password);recv_updatePasswordForAgent();}public void send_updatePasswordForAgent(String agentEmailId, String password) throws TException{oprot_.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.CALL, seqid_));updatePasswordForAgent_args args = new updatePasswordForAgent_args();args.agentEmailId = agentEmailId;args.password = password;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updatePasswordForAgent() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updatePasswordForAgent_result result = new updatePasswordForAgent_result();result.read(iprot_);iprot_.readMessageEnd();return;}public List<String> getRoleNamesForAgent(String agentEmailId) throws TException{send_getRoleNamesForAgent(agentEmailId);return recv_getRoleNamesForAgent();}public void send_getRoleNamesForAgent(String agentEmailId) throws TException{oprot_.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.CALL, seqid_));getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();args.agentEmailId = agentEmailId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<String> recv_getRoleNamesForAgent() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");}public List<String> getPermissionsForRoleName(String roleName) throws TException{send_getPermissionsForRoleName(roleName);return recv_getPermissionsForRoleName();}public void send_getPermissionsForRoleName(String roleName) throws TException{oprot_.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.CALL, seqid_));getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();args.roleName = roleName;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<String> recv_getPermissionsForRoleName() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");}public long getLastEmailProcessedTimestamp() throws TException{send_getLastEmailProcessedTimestamp();return recv_getLastEmailProcessedTimestamp();}public void send_getLastEmailProcessedTimestamp() throws TException{oprot_.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public long recv_getLastEmailProcessedTimestamp() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");}public void updateLastEmailProcessedTimestamp(long timestamp) throws TException{send_updateLastEmailProcessedTimestamp(timestamp);recv_updateLastEmailProcessedTimestamp();}public void send_updateLastEmailProcessedTimestamp(long timestamp) throws TException{oprot_.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();args.timestamp = timestamp;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_updateLastEmailProcessedTimestamp() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();result.read(iprot_);iprot_.readMessageEnd();return;}}public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(Iface iface){super(iface);iface_ = iface;processMap_.put("getTickets", new getTickets());processMap_.put("getUnassignedTickets", new getUnassignedTickets());processMap_.put("updateTicket", new updateTicket());processMap_.put("insertTicket", new insertTicket());processMap_.put("getActivities", new getActivities());processMap_.put("insertActivity", new insertActivity());processMap_.put("markAsRead", new markAsRead());processMap_.put("getAgents", new getAgents());processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());processMap_.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());processMap_.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());}private Iface iface_;public boolean process(TProtocol iprot, TProtocol oprot) throws TException{TMessage msg = iprot.readMessageBegin();ProcessFunction fn = processMap_.get(msg.name);if (fn == null) {TProtocolUtil.skip(iprot, TType.STRUCT);iprot.readMessageEnd();TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return true;}fn.process(msg.seqid, iprot, oprot);return true;}private class getTickets implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTickets_args args = new getTickets_args();args.read(iprot);iprot.readMessageEnd();getTickets_result result = new getTickets_result();result.success = iface_.getTickets(args.searchFilter);oprot.writeMessageBegin(new TMessage("getTickets", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getUnassignedTickets implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getUnassignedTickets_args args = new getUnassignedTickets_args();args.read(iprot);iprot.readMessageEnd();getUnassignedTickets_result result = new getUnassignedTickets_result();result.success = iface_.getUnassignedTickets();oprot.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updateTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updateTicket_args args = new updateTicket_args();args.read(iprot);iprot.readMessageEnd();updateTicket_result result = new updateTicket_result();iface_.updateTicket(args.ticket, args.activity);oprot.writeMessageBegin(new TMessage("updateTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class insertTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{insertTicket_args args = new insertTicket_args();args.read(iprot);iprot.readMessageEnd();insertTicket_result result = new insertTicket_result();result.success = iface_.insertTicket(args.ticket, args.activity);result.setSuccessIsSet(true);oprot.writeMessageBegin(new TMessage("insertTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivities implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivities_args args = new getActivities_args();args.read(iprot);iprot.readMessageEnd();getActivities_result result = new getActivities_result();result.success = iface_.getActivities(args.searchFilter);oprot.writeMessageBegin(new TMessage("getActivities", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class insertActivity implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{insertActivity_args args = new insertActivity_args();args.read(iprot);iprot.readMessageEnd();insertActivity_result result = new insertActivity_result();iface_.insertActivity(args.activity);oprot.writeMessageBegin(new TMessage("insertActivity", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class markAsRead implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{markAsRead_args args = new markAsRead_args();args.read(iprot);iprot.readMessageEnd();markAsRead_result result = new markAsRead_result();iface_.markAsRead(args.activityId, args.agentId);oprot.writeMessageBegin(new TMessage("markAsRead", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAgents implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAgents_args args = new getAgents_args();args.read(iprot);iprot.readMessageEnd();getAgents_result result = new getAgents_result();result.success = iface_.getAgents(args.searchFilter);oprot.writeMessageBegin(new TMessage("getAgents", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updatePasswordForAgent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updatePasswordForAgent_args args = new updatePasswordForAgent_args();args.read(iprot);iprot.readMessageEnd();updatePasswordForAgent_result result = new updatePasswordForAgent_result();iface_.updatePasswordForAgent(args.agentEmailId, args.password);oprot.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getRoleNamesForAgent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();args.read(iprot);iprot.readMessageEnd();getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();result.success = iface_.getRoleNamesForAgent(args.agentEmailId);oprot.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getPermissionsForRoleName implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();args.read(iprot);iprot.readMessageEnd();getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();result.success = iface_.getPermissionsForRoleName(args.roleName);oprot.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getLastEmailProcessedTimestamp implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();args.read(iprot);iprot.readMessageEnd();getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();result.success = iface_.getLastEmailProcessedTimestamp();result.setSuccessIsSet(true);oprot.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updateLastEmailProcessedTimestamp implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();args.read(iprot);iprot.readMessageEnd();updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();iface_.updateLastEmailProcessedTimestamp(args.timestamp);oprot.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}}public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args> {private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);private SearchFilter searchFilter;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SEARCH_FILTER((short)1, "searchFilter");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.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, SearchFilter.class)));}});static {FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);}public getTickets_args() {}public getTickets_args(SearchFilter searchFilter){this();this.searchFilter = searchFilter;}/*** Performs a deep copy on <i>other</i>.*/public getTickets_args(getTickets_args other) {if (other.isSetSearchFilter()) {this.searchFilter = new SearchFilter(other.searchFilter);}}public getTickets_args deepCopy() {return new getTickets_args(this);}@Deprecatedpublic getTickets_args clone() {return new getTickets_args(this);}public SearchFilter getSearchFilter() {return this.searchFilter;}public getTickets_args setSearchFilter(SearchFilter searchFilter) {this.searchFilter = searchFilter;return this;}public void unsetSearchFilter() {this.searchFilter = null;}/** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */public boolean isSetSearchFilter() {return this.searchFilter != null;}public void setSearchFilterIsSet(boolean value) {if (!value) {this.searchFilter = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_FILTER:if (value == null) {unsetSearchFilter();} else {setSearchFilter((SearchFilter)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_FILTER:return getSearchFilter();}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 SEARCH_FILTER:return isSetSearchFilter();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTickets_args)return this.equals((getTickets_args)that);return false;}public boolean equals(getTickets_args that) {if (that == null)return false;boolean this_present_searchFilter = true && this.isSetSearchFilter();boolean that_present_searchFilter = true && that.isSetSearchFilter();if (this_present_searchFilter || that_present_searchFilter) {if (!(this_present_searchFilter && that_present_searchFilter))return false;if (!this.searchFilter.equals(that.searchFilter))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTickets_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTickets_args typedOther = (getTickets_args)other;lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);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 SEARCH_FILTER:if (field.type == TType.STRUCT) {this.searchFilter = new SearchFilter();this.searchFilter.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.searchFilter != null) {oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);this.searchFilter.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTickets_args(");boolean first = true;sb.append("searchFilter:");if (this.searchFilter == null) {sb.append("null");} else {sb.append(this.searchFilter);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTickets_result implements TBase<getTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_result> {private static final TStruct STRUCT_DESC = new TStruct("getTickets_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Ticket> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Ticket.class))));}});static {FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);}public getTickets_result() {}public getTickets_result(List<Ticket> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getTickets_result(getTickets_result other) {if (other.isSetSuccess()) {List<Ticket> __this__success = new ArrayList<Ticket>();for (Ticket other_element : other.success) {__this__success.add(new Ticket(other_element));}this.success = __this__success;}}public getTickets_result deepCopy() {return new getTickets_result(this);}@Deprecatedpublic getTickets_result clone() {return new getTickets_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Ticket> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Ticket elem) {if (this.success == null) {this.success = new ArrayList<Ticket>();}this.success.add(elem);}public List<Ticket> getSuccess() {return this.success;}public getTickets_result setSuccess(List<Ticket> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Ticket>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTickets_result)return this.equals((getTickets_result)that);return false;}public boolean equals(getTickets_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTickets_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTickets_result typedOther = (getTickets_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list8 = iprot.readListBegin();this.success = new ArrayList<Ticket>(_list8.size);for (int _i9 = 0; _i9 < _list8.size; ++_i9){Ticket _elem10;_elem10 = new Ticket();_elem10.read(iprot);this.success.add(_elem10);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Ticket _iter11 : this.success){_iter11.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTickets_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getUnassignedTickets_args implements TBase<getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_args> {private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);}public getUnassignedTickets_args() {}/*** Performs a deep copy on <i>other</i>.*/public getUnassignedTickets_args(getUnassignedTickets_args other) {}public getUnassignedTickets_args deepCopy() {return new getUnassignedTickets_args(this);}@Deprecatedpublic getUnassignedTickets_args clone() {return new getUnassignedTickets_args(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUnassignedTickets_args)return this.equals((getUnassignedTickets_args)that);return false;}public boolean equals(getUnassignedTickets_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUnassignedTickets_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUnassignedTickets_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getUnassignedTickets_result implements TBase<getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_result> {private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Ticket> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Ticket.class))));}});static {FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);}public getUnassignedTickets_result() {}public getUnassignedTickets_result(List<Ticket> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getUnassignedTickets_result(getUnassignedTickets_result other) {if (other.isSetSuccess()) {List<Ticket> __this__success = new ArrayList<Ticket>();for (Ticket other_element : other.success) {__this__success.add(new Ticket(other_element));}this.success = __this__success;}}public getUnassignedTickets_result deepCopy() {return new getUnassignedTickets_result(this);}@Deprecatedpublic getUnassignedTickets_result clone() {return new getUnassignedTickets_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Ticket> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Ticket elem) {if (this.success == null) {this.success = new ArrayList<Ticket>();}this.success.add(elem);}public List<Ticket> getSuccess() {return this.success;}public getUnassignedTickets_result setSuccess(List<Ticket> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Ticket>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUnassignedTickets_result)return this.equals((getUnassignedTickets_result)that);return false;}public boolean equals(getUnassignedTickets_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUnassignedTickets_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list12 = iprot.readListBegin();this.success = new ArrayList<Ticket>(_list12.size);for (int _i13 = 0; _i13 < _list12.size; ++_i13){Ticket _elem14;_elem14 = new Ticket();_elem14.read(iprot);this.success.add(_elem14);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Ticket _iter15 : this.success){_iter15.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateTicket_args implements TBase<updateTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("updateTicket_args");private static final TField TICKET_FIELD_DESC = new TField("ticket", TType.STRUCT, (short)1);private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)2);private Ticket ticket;private Activity activity;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET((short)1, "ticket"),ACTIVITY((short)2, "activity");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET, new FieldMetaData("ticket", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Ticket.class)));put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);}public updateTicket_args() {}public updateTicket_args(Ticket ticket,Activity activity){this();this.ticket = ticket;this.activity = activity;}/*** Performs a deep copy on <i>other</i>.*/public updateTicket_args(updateTicket_args other) {if (other.isSetTicket()) {this.ticket = new Ticket(other.ticket);}if (other.isSetActivity()) {this.activity = new Activity(other.activity);}}public updateTicket_args deepCopy() {return new updateTicket_args(this);}@Deprecatedpublic updateTicket_args clone() {return new updateTicket_args(this);}public Ticket getTicket() {return this.ticket;}public updateTicket_args setTicket(Ticket ticket) {this.ticket = ticket;return this;}public void unsetTicket() {this.ticket = null;}/** Returns true if field ticket is set (has been asigned a value) and false otherwise */public boolean isSetTicket() {return this.ticket != null;}public void setTicketIsSet(boolean value) {if (!value) {this.ticket = null;}}public Activity getActivity() {return this.activity;}public updateTicket_args setActivity(Activity activity) {this.activity = activity;return this;}public void unsetActivity() {this.activity = null;}/** Returns true if field activity is set (has been asigned a value) and false otherwise */public boolean isSetActivity() {return this.activity != null;}public void setActivityIsSet(boolean value) {if (!value) {this.activity = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET:if (value == null) {unsetTicket();} else {setTicket((Ticket)value);}break;case ACTIVITY:if (value == null) {unsetActivity();} else {setActivity((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET:return getTicket();case ACTIVITY:return getActivity();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET:return isSetTicket();case ACTIVITY:return isSetActivity();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateTicket_args)return this.equals((updateTicket_args)that);return false;}public boolean equals(updateTicket_args that) {if (that == null)return false;boolean this_present_ticket = true && this.isSetTicket();boolean that_present_ticket = true && that.isSetTicket();if (this_present_ticket || that_present_ticket) {if (!(this_present_ticket && that_present_ticket))return false;if (!this.ticket.equals(that.ticket))return false;}boolean this_present_activity = true && this.isSetActivity();boolean that_present_activity = true && that.isSetActivity();if (this_present_activity || that_present_activity) {if (!(this_present_activity && that_present_activity))return false;if (!this.activity.equals(that.activity))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateTicket_args typedOther = (updateTicket_args)other;lastComparison = Boolean.valueOf(isSetTicket()).compareTo(isSetTicket());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticket, typedOther.ticket);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET:if (field.type == TType.STRUCT) {this.ticket = new Ticket();this.ticket.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case ACTIVITY:if (field.type == TType.STRUCT) {this.activity = new Activity();this.activity.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.ticket != null) {oprot.writeFieldBegin(TICKET_FIELD_DESC);this.ticket.write(oprot);oprot.writeFieldEnd();}if (this.activity != null) {oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);this.activity.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateTicket_args(");boolean first = true;sb.append("ticket:");if (this.ticket == null) {sb.append("null");} else {sb.append(this.ticket);}first = false;if (!first) sb.append(", ");sb.append("activity:");if (this.activity == null) {sb.append("null");} else {sb.append(this.activity);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateTicket_result implements TBase<updateTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("updateTicket_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(updateTicket_result.class, metaDataMap);}public updateTicket_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateTicket_result(updateTicket_result other) {}public updateTicket_result deepCopy() {return new updateTicket_result(this);}@Deprecatedpublic updateTicket_result clone() {return new updateTicket_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateTicket_result)return this.equals((updateTicket_result)that);return false;}public boolean equals(updateTicket_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateTicket_result typedOther = (updateTicket_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateTicket_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertTicket_args implements TBase<insertTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("insertTicket_args");private static final TField TICKET_FIELD_DESC = new TField("ticket", TType.STRUCT, (short)1);private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)2);private Ticket ticket;private Activity activity;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET((short)1, "ticket"),ACTIVITY((short)2, "activity");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET, new FieldMetaData("ticket", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Ticket.class)));put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);}public insertTicket_args() {}public insertTicket_args(Ticket ticket,Activity activity){this();this.ticket = ticket;this.activity = activity;}/*** Performs a deep copy on <i>other</i>.*/public insertTicket_args(insertTicket_args other) {if (other.isSetTicket()) {this.ticket = new Ticket(other.ticket);}if (other.isSetActivity()) {this.activity = new Activity(other.activity);}}public insertTicket_args deepCopy() {return new insertTicket_args(this);}@Deprecatedpublic insertTicket_args clone() {return new insertTicket_args(this);}public Ticket getTicket() {return this.ticket;}public insertTicket_args setTicket(Ticket ticket) {this.ticket = ticket;return this;}public void unsetTicket() {this.ticket = null;}/** Returns true if field ticket is set (has been asigned a value) and false otherwise */public boolean isSetTicket() {return this.ticket != null;}public void setTicketIsSet(boolean value) {if (!value) {this.ticket = null;}}public Activity getActivity() {return this.activity;}public insertTicket_args setActivity(Activity activity) {this.activity = activity;return this;}public void unsetActivity() {this.activity = null;}/** Returns true if field activity is set (has been asigned a value) and false otherwise */public boolean isSetActivity() {return this.activity != null;}public void setActivityIsSet(boolean value) {if (!value) {this.activity = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET:if (value == null) {unsetTicket();} else {setTicket((Ticket)value);}break;case ACTIVITY:if (value == null) {unsetActivity();} else {setActivity((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET:return getTicket();case ACTIVITY:return getActivity();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET:return isSetTicket();case ACTIVITY:return isSetActivity();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertTicket_args)return this.equals((insertTicket_args)that);return false;}public boolean equals(insertTicket_args that) {if (that == null)return false;boolean this_present_ticket = true && this.isSetTicket();boolean that_present_ticket = true && that.isSetTicket();if (this_present_ticket || that_present_ticket) {if (!(this_present_ticket && that_present_ticket))return false;if (!this.ticket.equals(that.ticket))return false;}boolean this_present_activity = true && this.isSetActivity();boolean that_present_activity = true && that.isSetActivity();if (this_present_activity || that_present_activity) {if (!(this_present_activity && that_present_activity))return false;if (!this.activity.equals(that.activity))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertTicket_args typedOther = (insertTicket_args)other;lastComparison = Boolean.valueOf(isSetTicket()).compareTo(isSetTicket());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticket, typedOther.ticket);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET:if (field.type == TType.STRUCT) {this.ticket = new Ticket();this.ticket.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case ACTIVITY:if (field.type == TType.STRUCT) {this.activity = new Activity();this.activity.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.ticket != null) {oprot.writeFieldBegin(TICKET_FIELD_DESC);this.ticket.write(oprot);oprot.writeFieldEnd();}if (this.activity != null) {oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);this.activity.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertTicket_args(");boolean first = true;sb.append("ticket:");if (this.ticket == null) {sb.append("null");} else {sb.append(this.ticket);}first = false;if (!first) sb.append(", ");sb.append("activity:");if (this.activity == null) {sb.append("null");} else {sb.append(this.activity);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertTicket_result implements TBase<insertTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("insertTicket_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);private long success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);}public insertTicket_result() {}public insertTicket_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public insertTicket_result(insertTicket_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public insertTicket_result deepCopy() {return new insertTicket_result(this);}@Deprecatedpublic insertTicket_result clone() {return new insertTicket_result(this);}public long getSuccess() {return this.success;}public insertTicket_result setSuccess(long success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Long(getSuccess());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertTicket_result)return this.equals((insertTicket_result)that);return false;}public boolean equals(insertTicket_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertTicket_result typedOther = (insertTicket_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertTicket_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivities_args implements TBase<getActivities_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivities_args");private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);private SearchFilter searchFilter;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SEARCH_FILTER((short)1, "searchFilter");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.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, SearchFilter.class)));}});static {FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);}public getActivities_args() {}public getActivities_args(SearchFilter searchFilter){this();this.searchFilter = searchFilter;}/*** Performs a deep copy on <i>other</i>.*/public getActivities_args(getActivities_args other) {if (other.isSetSearchFilter()) {this.searchFilter = new SearchFilter(other.searchFilter);}}public getActivities_args deepCopy() {return new getActivities_args(this);}@Deprecatedpublic getActivities_args clone() {return new getActivities_args(this);}public SearchFilter getSearchFilter() {return this.searchFilter;}public getActivities_args setSearchFilter(SearchFilter searchFilter) {this.searchFilter = searchFilter;return this;}public void unsetSearchFilter() {this.searchFilter = null;}/** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */public boolean isSetSearchFilter() {return this.searchFilter != null;}public void setSearchFilterIsSet(boolean value) {if (!value) {this.searchFilter = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_FILTER:if (value == null) {unsetSearchFilter();} else {setSearchFilter((SearchFilter)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_FILTER:return getSearchFilter();}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 SEARCH_FILTER:return isSetSearchFilter();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivities_args)return this.equals((getActivities_args)that);return false;}public boolean equals(getActivities_args that) {if (that == null)return false;boolean this_present_searchFilter = true && this.isSetSearchFilter();boolean that_present_searchFilter = true && that.isSetSearchFilter();if (this_present_searchFilter || that_present_searchFilter) {if (!(this_present_searchFilter && that_present_searchFilter))return false;if (!this.searchFilter.equals(that.searchFilter))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivities_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivities_args typedOther = (getActivities_args)other;lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);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 SEARCH_FILTER:if (field.type == TType.STRUCT) {this.searchFilter = new SearchFilter();this.searchFilter.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.searchFilter != null) {oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);this.searchFilter.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivities_args(");boolean first = true;sb.append("searchFilter:");if (this.searchFilter == null) {sb.append("null");} else {sb.append(this.searchFilter);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivities_result implements TBase<getActivities_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivities_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Activity> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Activity.class))));}});static {FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);}public getActivities_result() {}public getActivities_result(List<Activity> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivities_result(getActivities_result other) {if (other.isSetSuccess()) {List<Activity> __this__success = new ArrayList<Activity>();for (Activity other_element : other.success) {__this__success.add(new Activity(other_element));}this.success = __this__success;}}public getActivities_result deepCopy() {return new getActivities_result(this);}@Deprecatedpublic getActivities_result clone() {return new getActivities_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Activity> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Activity elem) {if (this.success == null) {this.success = new ArrayList<Activity>();}this.success.add(elem);}public List<Activity> getSuccess() {return this.success;}public getActivities_result setSuccess(List<Activity> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Activity>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivities_result)return this.equals((getActivities_result)that);return false;}public boolean equals(getActivities_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivities_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivities_result typedOther = (getActivities_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list16 = iprot.readListBegin();this.success = new ArrayList<Activity>(_list16.size);for (int _i17 = 0; _i17 < _list16.size; ++_i17){Activity _elem18;_elem18 = new Activity();_elem18.read(iprot);this.success.add(_elem18);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Activity _iter19 : this.success){_iter19.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivities_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertActivity_args implements TBase<insertActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_args> {private static final TStruct STRUCT_DESC = new TStruct("insertActivity_args");private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)1);private Activity activity;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ACTIVITY((short)1, "activity");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);}public insertActivity_args() {}public insertActivity_args(Activity activity){this();this.activity = activity;}/*** Performs a deep copy on <i>other</i>.*/public insertActivity_args(insertActivity_args other) {if (other.isSetActivity()) {this.activity = new Activity(other.activity);}}public insertActivity_args deepCopy() {return new insertActivity_args(this);}@Deprecatedpublic insertActivity_args clone() {return new insertActivity_args(this);}public Activity getActivity() {return this.activity;}public insertActivity_args setActivity(Activity activity) {this.activity = activity;return this;}public void unsetActivity() {this.activity = null;}/** Returns true if field activity is set (has been asigned a value) and false otherwise */public boolean isSetActivity() {return this.activity != null;}public void setActivityIsSet(boolean value) {if (!value) {this.activity = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ACTIVITY:if (value == null) {unsetActivity();} else {setActivity((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ACTIVITY:return getActivity();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ACTIVITY:return isSetActivity();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertActivity_args)return this.equals((insertActivity_args)that);return false;}public boolean equals(insertActivity_args that) {if (that == null)return false;boolean this_present_activity = true && this.isSetActivity();boolean that_present_activity = true && that.isSetActivity();if (this_present_activity || that_present_activity) {if (!(this_present_activity && that_present_activity))return false;if (!this.activity.equals(that.activity))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertActivity_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertActivity_args typedOther = (insertActivity_args)other;lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ACTIVITY:if (field.type == TType.STRUCT) {this.activity = new Activity();this.activity.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.activity != null) {oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);this.activity.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertActivity_args(");boolean first = true;sb.append("activity:");if (this.activity == null) {sb.append("null");} else {sb.append(this.activity);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertActivity_result implements TBase<insertActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_result> {private static final TStruct STRUCT_DESC = new TStruct("insertActivity_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);}public insertActivity_result() {}/*** Performs a deep copy on <i>other</i>.*/public insertActivity_result(insertActivity_result other) {}public insertActivity_result deepCopy() {return new insertActivity_result(this);}@Deprecatedpublic insertActivity_result clone() {return new insertActivity_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertActivity_result)return this.equals((insertActivity_result)that);return false;}public boolean equals(insertActivity_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertActivity_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertActivity_result typedOther = (insertActivity_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertActivity_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class markAsRead_args implements TBase<markAsRead_args._Fields>, java.io.Serializable, Cloneable, Comparable<markAsRead_args> {private static final TStruct STRUCT_DESC = new TStruct("markAsRead_args");private static final TField ACTIVITY_ID_FIELD_DESC = new TField("activityId", TType.I64, (short)1);private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)2);private long activityId;private long agentId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ACTIVITY_ID((short)1, "activityId"),AGENT_ID((short)2, "agentId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ACTIVITYID_ISSET_ID = 0;private static final int __AGENTID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ACTIVITY_ID, new FieldMetaData("activityId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);}public markAsRead_args() {}public markAsRead_args(long activityId,long agentId){this();this.activityId = activityId;setActivityIdIsSet(true);this.agentId = agentId;setAgentIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markAsRead_args(markAsRead_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.activityId = other.activityId;this.agentId = other.agentId;}public markAsRead_args deepCopy() {return new markAsRead_args(this);}@Deprecatedpublic markAsRead_args clone() {return new markAsRead_args(this);}public long getActivityId() {return this.activityId;}public markAsRead_args setActivityId(long activityId) {this.activityId = activityId;setActivityIdIsSet(true);return this;}public void unsetActivityId() {__isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);}/** Returns true if field activityId is set (has been asigned a value) and false otherwise */public boolean isSetActivityId() {return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);}public void setActivityIdIsSet(boolean value) {__isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);}public long getAgentId() {return this.agentId;}public markAsRead_args setAgentId(long agentId) {this.agentId = agentId;setAgentIdIsSet(true);return this;}public void unsetAgentId() {__isset_bit_vector.clear(__AGENTID_ISSET_ID);}/** Returns true if field agentId is set (has been asigned a value) and false otherwise */public boolean isSetAgentId() {return __isset_bit_vector.get(__AGENTID_ISSET_ID);}public void setAgentIdIsSet(boolean value) {__isset_bit_vector.set(__AGENTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ACTIVITY_ID:if (value == null) {unsetActivityId();} else {setActivityId((Long)value);}break;case AGENT_ID:if (value == null) {unsetAgentId();} else {setAgentId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ACTIVITY_ID:return new Long(getActivityId());case AGENT_ID:return new Long(getAgentId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ACTIVITY_ID:return isSetActivityId();case AGENT_ID:return isSetAgentId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markAsRead_args)return this.equals((markAsRead_args)that);return false;}public boolean equals(markAsRead_args that) {if (that == null)return false;boolean this_present_activityId = true;boolean that_present_activityId = true;if (this_present_activityId || that_present_activityId) {if (!(this_present_activityId && that_present_activityId))return false;if (this.activityId != that.activityId)return false;}boolean this_present_agentId = true;boolean that_present_agentId = true;if (this_present_agentId || that_present_agentId) {if (!(this_present_agentId && that_present_agentId))return false;if (this.agentId != that.agentId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markAsRead_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markAsRead_args typedOther = (markAsRead_args)other;lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(isSetActivityId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activityId, typedOther.activityId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ACTIVITY_ID:if (field.type == TType.I64) {this.activityId = iprot.readI64();setActivityIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case AGENT_ID:if (field.type == TType.I64) {this.agentId = iprot.readI64();setAgentIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);oprot.writeI64(this.activityId);oprot.writeFieldEnd();oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);oprot.writeI64(this.agentId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markAsRead_args(");boolean first = true;sb.append("activityId:");sb.append(this.activityId);first = false;if (!first) sb.append(", ");sb.append("agentId:");sb.append(this.agentId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class markAsRead_result implements TBase<markAsRead_result._Fields>, java.io.Serializable, Cloneable, Comparable<markAsRead_result> {private static final TStruct STRUCT_DESC = new TStruct("markAsRead_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(markAsRead_result.class, metaDataMap);}public markAsRead_result() {}/*** Performs a deep copy on <i>other</i>.*/public markAsRead_result(markAsRead_result other) {}public markAsRead_result deepCopy() {return new markAsRead_result(this);}@Deprecatedpublic markAsRead_result clone() {return new markAsRead_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 markAsRead_result)return this.equals((markAsRead_result)that);return false;}public boolean equals(markAsRead_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markAsRead_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markAsRead_result typedOther = (markAsRead_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("markAsRead_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgents_args implements TBase<getAgents_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgents_args> {private static final TStruct STRUCT_DESC = new TStruct("getAgents_args");private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);private SearchFilter searchFilter;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SEARCH_FILTER((short)1, "searchFilter");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.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, SearchFilter.class)));}});static {FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);}public getAgents_args() {}public getAgents_args(SearchFilter searchFilter){this();this.searchFilter = searchFilter;}/*** Performs a deep copy on <i>other</i>.*/public getAgents_args(getAgents_args other) {if (other.isSetSearchFilter()) {this.searchFilter = new SearchFilter(other.searchFilter);}}public getAgents_args deepCopy() {return new getAgents_args(this);}@Deprecatedpublic getAgents_args clone() {return new getAgents_args(this);}public SearchFilter getSearchFilter() {return this.searchFilter;}public getAgents_args setSearchFilter(SearchFilter searchFilter) {this.searchFilter = searchFilter;return this;}public void unsetSearchFilter() {this.searchFilter = null;}/** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */public boolean isSetSearchFilter() {return this.searchFilter != null;}public void setSearchFilterIsSet(boolean value) {if (!value) {this.searchFilter = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SEARCH_FILTER:if (value == null) {unsetSearchFilter();} else {setSearchFilter((SearchFilter)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SEARCH_FILTER:return getSearchFilter();}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 SEARCH_FILTER:return isSetSearchFilter();}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 getAgents_args)return this.equals((getAgents_args)that);return false;}public boolean equals(getAgents_args that) {if (that == null)return false;boolean this_present_searchFilter = true && this.isSetSearchFilter();boolean that_present_searchFilter = true && that.isSetSearchFilter();if (this_present_searchFilter || that_present_searchFilter) {if (!(this_present_searchFilter && that_present_searchFilter))return false;if (!this.searchFilter.equals(that.searchFilter))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgents_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgents_args typedOther = (getAgents_args)other;lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);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 SEARCH_FILTER:if (field.type == TType.STRUCT) {this.searchFilter = new SearchFilter();this.searchFilter.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.searchFilter != null) {oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);this.searchFilter.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgents_args(");boolean first = true;sb.append("searchFilter:");if (this.searchFilter == null) {sb.append("null");} else {sb.append(this.searchFilter);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgents_result implements TBase<getAgents_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgents_result> {private static final TStruct STRUCT_DESC = new TStruct("getAgents_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Agent> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Agent.class))));}});static {FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);}public getAgents_result() {}public getAgents_result(List<Agent> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAgents_result(getAgents_result other) {if (other.isSetSuccess()) {List<Agent> __this__success = new ArrayList<Agent>();for (Agent other_element : other.success) {__this__success.add(new Agent(other_element));}this.success = __this__success;}}public getAgents_result deepCopy() {return new getAgents_result(this);}@Deprecatedpublic getAgents_result clone() {return new getAgents_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Agent> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Agent elem) {if (this.success == null) {this.success = new ArrayList<Agent>();}this.success.add(elem);}public List<Agent> getSuccess() {return this.success;}public getAgents_result setSuccess(List<Agent> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Agent>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgents_result)return this.equals((getAgents_result)that);return false;}public boolean equals(getAgents_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgents_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgents_result typedOther = (getAgents_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list20 = iprot.readListBegin();this.success = new ArrayList<Agent>(_list20.size);for (int _i21 = 0; _i21 < _list20.size; ++_i21){Agent _elem22;_elem22 = new Agent();_elem22.read(iprot);this.success.add(_elem22);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Agent _iter23 : this.success){_iter23.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgents_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePasswordForAgent_args implements TBase<updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_args> {private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_args");private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);private String agentEmailId;private String password;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId"),PASSWORD((short)2, "password");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);}public updatePasswordForAgent_args() {}public updatePasswordForAgent_args(String agentEmailId,String password){this();this.agentEmailId = agentEmailId;this.password = password;}/*** Performs a deep copy on <i>other</i>.*/public updatePasswordForAgent_args(updatePasswordForAgent_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}if (other.isSetPassword()) {this.password = other.password;}}public updatePasswordForAgent_args deepCopy() {return new updatePasswordForAgent_args(this);}@Deprecatedpublic updatePasswordForAgent_args clone() {return new updatePasswordForAgent_args(this);}public String getAgentEmailId() {return this.agentEmailId;}public updatePasswordForAgent_args setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;return this;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public String getPassword() {return this.password;}public updatePasswordForAgent_args setPassword(String password) {this.password = password;return this;}public void unsetPassword() {this.password = null;}/** Returns true if field password is set (has been asigned a value) and false otherwise */public boolean isSetPassword() {return this.password != null;}public void setPasswordIsSet(boolean value) {if (!value) {this.password = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;case PASSWORD:if (value == null) {unsetPassword();} else {setPassword((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();case PASSWORD:return getPassword();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();case PASSWORD:return isSetPassword();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePasswordForAgent_args)return this.equals((updatePasswordForAgent_args)that);return false;}public boolean equals(updatePasswordForAgent_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}boolean this_present_password = true && this.isSetPassword();boolean that_present_password = true && that.isSetPassword();if (this_present_password || that_present_password) {if (!(this_present_password && that_present_password))return false;if (!this.password.equals(that.password))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePasswordForAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(password, typedOther.password);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_EMAIL_ID:if (field.type == TType.STRING) {this.agentEmailId = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case PASSWORD:if (field.type == TType.STRING) {this.password = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}if (this.password != null) {oprot.writeFieldBegin(PASSWORD_FIELD_DESC);oprot.writeString(this.password);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;if (!first) sb.append(", ");sb.append("password:");if (this.password == null) {sb.append("null");} else {sb.append(this.password);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updatePasswordForAgent_result implements TBase<updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_result> {private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);}public updatePasswordForAgent_result() {}/*** Performs a deep copy on <i>other</i>.*/public updatePasswordForAgent_result(updatePasswordForAgent_result other) {}public updatePasswordForAgent_result deepCopy() {return new updatePasswordForAgent_result(this);}@Deprecatedpublic updatePasswordForAgent_result clone() {return new updatePasswordForAgent_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updatePasswordForAgent_result)return this.equals((updatePasswordForAgent_result)that);return false;}public boolean equals(updatePasswordForAgent_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updatePasswordForAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getRoleNamesForAgent_args implements TBase<getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_args> {private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_args");private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);private String agentEmailId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);}public getRoleNamesForAgent_args() {}public getRoleNamesForAgent_args(String agentEmailId){this();this.agentEmailId = agentEmailId;}/*** Performs a deep copy on <i>other</i>.*/public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}}public getRoleNamesForAgent_args deepCopy() {return new getRoleNamesForAgent_args(this);}@Deprecatedpublic getRoleNamesForAgent_args clone() {return new getRoleNamesForAgent_args(this);}public String getAgentEmailId() {return this.agentEmailId;}public getRoleNamesForAgent_args setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;return this;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRoleNamesForAgent_args)return this.equals((getRoleNamesForAgent_args)that);return false;}public boolean equals(getRoleNamesForAgent_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRoleNamesForAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_EMAIL_ID:if (field.type == TType.STRING) {this.agentEmailId = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getRoleNamesForAgent_result implements TBase<getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_result> {private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<String> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new FieldValueMetaData(TType.STRING))));}});static {FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);}public getRoleNamesForAgent_result() {}public getRoleNamesForAgent_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getRoleNamesForAgent_result deepCopy() {return new getRoleNamesForAgent_result(this);}@Deprecatedpublic getRoleNamesForAgent_result clone() {return new getRoleNamesForAgent_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public getRoleNamesForAgent_result setSuccess(List<String> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRoleNamesForAgent_result)return this.equals((getRoleNamesForAgent_result)that);return false;}public boolean equals(getRoleNamesForAgent_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRoleNamesForAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list24 = iprot.readListBegin();this.success = new ArrayList<String>(_list24.size);for (int _i25 = 0; _i25 < _list24.size; ++_i25){String _elem26;_elem26 = iprot.readString();this.success.add(_elem26);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRING, this.success.size()));for (String _iter27 : this.success){oprot.writeString(_iter27);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getPermissionsForRoleName_args implements TBase<getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_args> {private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_args");private static final TField ROLE_NAME_FIELD_DESC = new TField("roleName", TType.STRING, (short)1);private String roleName;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ROLE_NAME((short)1, "roleName");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ROLE_NAME, new FieldMetaData("roleName", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);}public getPermissionsForRoleName_args() {}public getPermissionsForRoleName_args(String roleName){this();this.roleName = roleName;}/*** Performs a deep copy on <i>other</i>.*/public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {if (other.isSetRoleName()) {this.roleName = other.roleName;}}public getPermissionsForRoleName_args deepCopy() {return new getPermissionsForRoleName_args(this);}@Deprecatedpublic getPermissionsForRoleName_args clone() {return new getPermissionsForRoleName_args(this);}public String getRoleName() {return this.roleName;}public getPermissionsForRoleName_args setRoleName(String roleName) {this.roleName = roleName;return this;}public void unsetRoleName() {this.roleName = null;}/** Returns true if field roleName is set (has been asigned a value) and false otherwise */public boolean isSetRoleName() {return this.roleName != null;}public void setRoleNameIsSet(boolean value) {if (!value) {this.roleName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ROLE_NAME:if (value == null) {unsetRoleName();} else {setRoleName((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ROLE_NAME:return getRoleName();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ROLE_NAME:return isSetRoleName();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPermissionsForRoleName_args)return this.equals((getPermissionsForRoleName_args)that);return false;}public boolean equals(getPermissionsForRoleName_args that) {if (that == null)return false;boolean this_present_roleName = true && this.isSetRoleName();boolean that_present_roleName = true && that.isSetRoleName();if (this_present_roleName || that_present_roleName) {if (!(this_present_roleName && that_present_roleName))return false;if (!this.roleName.equals(that.roleName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPermissionsForRoleName_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(isSetRoleName());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(roleName, typedOther.roleName);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ROLE_NAME:if (field.type == TType.STRING) {this.roleName = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.roleName != null) {oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);oprot.writeString(this.roleName);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");boolean first = true;sb.append("roleName:");if (this.roleName == null) {sb.append("null");} else {sb.append(this.roleName);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getPermissionsForRoleName_result implements TBase<getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_result> {private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<String> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new FieldValueMetaData(TType.STRING))));}});static {FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);}public getPermissionsForRoleName_result() {}public getPermissionsForRoleName_result(List<String> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {if (other.isSetSuccess()) {List<String> __this__success = new ArrayList<String>();for (String other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getPermissionsForRoleName_result deepCopy() {return new getPermissionsForRoleName_result(this);}@Deprecatedpublic getPermissionsForRoleName_result clone() {return new getPermissionsForRoleName_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<String> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(String elem) {if (this.success == null) {this.success = new ArrayList<String>();}this.success.add(elem);}public List<String> getSuccess() {return this.success;}public getPermissionsForRoleName_result setSuccess(List<String> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<String>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getPermissionsForRoleName_result)return this.equals((getPermissionsForRoleName_result)that);return false;}public boolean equals(getPermissionsForRoleName_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getPermissionsForRoleName_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list28 = iprot.readListBegin();this.success = new ArrayList<String>(_list28.size);for (int _i29 = 0; _i29 < _list28.size; ++_i29){String _elem30;_elem30 = iprot.readString();this.success.add(_elem30);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRING, this.success.size()));for (String _iter31 : this.success){oprot.writeString(_iter31);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastEmailProcessedTimestamp_args implements TBase<getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_args> {private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);}public getLastEmailProcessedTimestamp_args() {}/*** Performs a deep copy on <i>other</i>.*/public getLastEmailProcessedTimestamp_args(getLastEmailProcessedTimestamp_args other) {}public getLastEmailProcessedTimestamp_args deepCopy() {return new getLastEmailProcessedTimestamp_args(this);}@Deprecatedpublic getLastEmailProcessedTimestamp_args clone() {return new getLastEmailProcessedTimestamp_args(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastEmailProcessedTimestamp_args)return this.equals((getLastEmailProcessedTimestamp_args)that);return false;}public boolean equals(getLastEmailProcessedTimestamp_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastEmailProcessedTimestamp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastEmailProcessedTimestamp_result implements TBase<getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_result> {private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);private long success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);}public getLastEmailProcessedTimestamp_result() {}public getLastEmailProcessedTimestamp_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getLastEmailProcessedTimestamp_result(getLastEmailProcessedTimestamp_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getLastEmailProcessedTimestamp_result deepCopy() {return new getLastEmailProcessedTimestamp_result(this);}@Deprecatedpublic getLastEmailProcessedTimestamp_result clone() {return new getLastEmailProcessedTimestamp_result(this);}public long getSuccess() {return this.success;}public getLastEmailProcessedTimestamp_result setSuccess(long success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Long(getSuccess());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastEmailProcessedTimestamp_result)return this.equals((getLastEmailProcessedTimestamp_result)that);return false;}public boolean equals(getLastEmailProcessedTimestamp_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastEmailProcessedTimestamp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateLastEmailProcessedTimestamp_args implements TBase<updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_args> {private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_args");private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)1);private long timestamp;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TIMESTAMP((short)1, "timestamp");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TIMESTAMP_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);}public updateLastEmailProcessedTimestamp_args() {}public updateLastEmailProcessedTimestamp_args(long timestamp){this();this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateLastEmailProcessedTimestamp_args(updateLastEmailProcessedTimestamp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.timestamp = other.timestamp;}public updateLastEmailProcessedTimestamp_args deepCopy() {return new updateLastEmailProcessedTimestamp_args(this);}@Deprecatedpublic updateLastEmailProcessedTimestamp_args clone() {return new updateLastEmailProcessedTimestamp_args(this);}public long getTimestamp() {return this.timestamp;}public updateLastEmailProcessedTimestamp_args setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);return this;}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been asigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TIMESTAMP:return new Long(getTimestamp());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateLastEmailProcessedTimestamp_args)return this.equals((updateLastEmailProcessedTimestamp_args)that);return false;}public boolean equals(updateLastEmailProcessedTimestamp_args that) {if (that == null)return false;boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateLastEmailProcessedTimestamp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TIMESTAMP:if (field.type == TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_args(");boolean first = true;sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateLastEmailProcessedTimestamp_result implements TBase<updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_result> {private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);}public updateLastEmailProcessedTimestamp_result() {}/*** Performs a deep copy on <i>other</i>.*/public updateLastEmailProcessedTimestamp_result(updateLastEmailProcessedTimestamp_result other) {}public updateLastEmailProcessedTimestamp_result deepCopy() {return new updateLastEmailProcessedTimestamp_result(this);}@Deprecatedpublic updateLastEmailProcessedTimestamp_result clone() {return new updateLastEmailProcessedTimestamp_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateLastEmailProcessedTimestamp_result)return this.equals((updateLastEmailProcessedTimestamp_result)that);return false;}public boolean equals(updateLastEmailProcessedTimestamp_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateLastEmailProcessedTimestamp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}}