Rev 3087 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.crm;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.apache.thrift.*;import org.apache.thrift.meta_data.*;import org.apache.thrift.protocol.*;public class CRMService {public interface Iface {public List<Ticket> getTickets(long customerId) throws TException;public Ticket getTicket(long ticketId) throws TException;public void updateTicket(Ticket ticket) throws TException;public long insertTicket(Ticket ticket) throws TException;public List<Activity> getActivities(long customerId) throws TException;public List<Activity> getActivitiesForTicket(long ticketId) throws TException;public Activity getActivity(long activityId) throws TException;public Activity getLastActivity(long ticketId) throws TException;public void insertActivity(Activity activity) throws TException;public Agent getAgent(long agentId) throws TException;public Agent getAgentByEmailId(String agentEmailId) throws TException;}public static class Client implements Iface {public Client(TProtocol prot){this(prot, prot);}public Client(TProtocol iprot, TProtocol oprot){iprot_ = iprot;oprot_ = oprot;}protected TProtocol iprot_;protected TProtocol oprot_;protected int seqid_;public TProtocol getInputProtocol(){return this.iprot_;}public TProtocol getOutputProtocol(){return this.oprot_;}public List<Ticket> getTickets(long customerId) throws TException{send_getTickets(customerId);return recv_getTickets();}public void send_getTickets(long customerId) throws TException{oprot_.writeMessageBegin(new TMessage("getTickets", TMessageType.CALL, seqid_));getTickets_args args = new getTickets_args();args.customerId = customerId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Ticket> recv_getTickets() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTickets_result result = new getTickets_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");}public Ticket getTicket(long ticketId) throws TException{send_getTicket(ticketId);return recv_getTicket();}public void send_getTicket(long ticketId) throws TException{oprot_.writeMessageBegin(new TMessage("getTicket", TMessageType.CALL, seqid_));getTicket_args args = new getTicket_args();args.ticketId = ticketId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Ticket recv_getTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTicket_result result = new getTicket_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTicket failed: unknown result");}public void updateTicket(Ticket ticket) throws TException{send_updateTicket(ticket);recv_updateTicket();}public void send_updateTicket(Ticket ticket) throws TException{oprot_.writeMessageBegin(new TMessage("updateTicket", TMessageType.CALL, seqid_));updateTicket_args args = new updateTicket_args();args.ticket = ticket;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) throws TException{send_insertTicket(ticket);return recv_insertTicket();}public void send_insertTicket(Ticket ticket) throws TException{oprot_.writeMessageBegin(new TMessage("insertTicket", TMessageType.CALL, seqid_));insertTicket_args args = new insertTicket_args();args.ticket = ticket;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public long recv_insertTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}insertTicket_result result = new insertTicket_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");}public List<Activity> getActivities(long customerId) throws TException{send_getActivities(customerId);return recv_getActivities();}public void send_getActivities(long customerId) throws TException{oprot_.writeMessageBegin(new TMessage("getActivities", TMessageType.CALL, seqid_));getActivities_args args = new getActivities_args();args.customerId = customerId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Activity> recv_getActivities() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivities_result result = new getActivities_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");}public List<Activity> getActivitiesForTicket(long ticketId) throws TException{send_getActivitiesForTicket(ticketId);return recv_getActivitiesForTicket();}public void send_getActivitiesForTicket(long ticketId) throws TException{oprot_.writeMessageBegin(new TMessage("getActivitiesForTicket", TMessageType.CALL, seqid_));getActivitiesForTicket_args args = new getActivitiesForTicket_args();args.ticketId = ticketId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Activity> recv_getActivitiesForTicket() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivitiesForTicket_result result = new getActivitiesForTicket_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivitiesForTicket failed: unknown result");}public Activity getActivity(long activityId) throws TException{send_getActivity(activityId);return recv_getActivity();}public void send_getActivity(long activityId) throws TException{oprot_.writeMessageBegin(new TMessage("getActivity", TMessageType.CALL, seqid_));getActivity_args args = new getActivity_args();args.activityId = activityId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Activity recv_getActivity() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getActivity_result result = new getActivity_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivity failed: unknown result");}public Activity getLastActivity(long ticketId) throws TException{send_getLastActivity(ticketId);return recv_getLastActivity();}public void send_getLastActivity(long ticketId) throws TException{oprot_.writeMessageBegin(new TMessage("getLastActivity", TMessageType.CALL, seqid_));getLastActivity_args args = new getLastActivity_args();args.ticketId = ticketId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Activity recv_getLastActivity() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getLastActivity_result result = new getLastActivity_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLastActivity failed: unknown result");}public void insertActivity(Activity activity) throws TException{send_insertActivity(activity);recv_insertActivity();}public void send_insertActivity(Activity activity) throws TException{oprot_.writeMessageBegin(new TMessage("insertActivity", TMessageType.CALL, seqid_));insertActivity_args args = new insertActivity_args();args.activity = activity;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public void recv_insertActivity() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}insertActivity_result result = new insertActivity_result();result.read(iprot_);iprot_.readMessageEnd();return;}public Agent getAgent(long agentId) throws TException{send_getAgent(agentId);return recv_getAgent();}public void send_getAgent(long agentId) throws TException{oprot_.writeMessageBegin(new TMessage("getAgent", TMessageType.CALL, seqid_));getAgent_args args = new getAgent_args();args.agentId = agentId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Agent recv_getAgent() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAgent_result result = new getAgent_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgent failed: unknown result");}public Agent getAgentByEmailId(String agentEmailId) throws TException{send_getAgentByEmailId(agentEmailId);return recv_getAgentByEmailId();}public void send_getAgentByEmailId(String agentEmailId) throws TException{oprot_.writeMessageBegin(new TMessage("getAgentByEmailId", TMessageType.CALL, seqid_));getAgentByEmailId_args args = new getAgentByEmailId_args();args.agentEmailId = agentEmailId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Agent recv_getAgentByEmailId() throws TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAgentByEmailId_result result = new getAgentByEmailId_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgentByEmailId failed: unknown result");}}public static class Processor implements TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(Iface iface){iface_ = iface;processMap_.put("getTickets", new getTickets());processMap_.put("getTicket", new getTicket());processMap_.put("updateTicket", new updateTicket());processMap_.put("insertTicket", new insertTicket());processMap_.put("getActivities", new getActivities());processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());processMap_.put("getActivity", new getActivity());processMap_.put("getLastActivity", new getLastActivity());processMap_.put("insertActivity", new insertActivity());processMap_.put("getAgent", new getAgent());processMap_.put("getAgentByEmailId", new getAgentByEmailId());}protected static interface ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;}private Iface iface_;protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();public boolean process(TProtocol iprot, TProtocol oprot) throws TException{TMessage msg = iprot.readMessageBegin();ProcessFunction fn = processMap_.get(msg.name);if (fn == null) {TProtocolUtil.skip(iprot, TType.STRUCT);iprot.readMessageEnd();TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return true;}fn.process(msg.seqid, iprot, oprot);return true;}private class getTickets implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTickets_args args = new getTickets_args();args.read(iprot);iprot.readMessageEnd();getTickets_result result = new getTickets_result();result.success = iface_.getTickets(args.customerId);oprot.writeMessageBegin(new TMessage("getTickets", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTicket_args args = new getTicket_args();args.read(iprot);iprot.readMessageEnd();getTicket_result result = new getTicket_result();result.success = iface_.getTicket(args.ticketId);oprot.writeMessageBegin(new TMessage("getTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class updateTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{updateTicket_args args = new updateTicket_args();args.read(iprot);iprot.readMessageEnd();updateTicket_result result = new updateTicket_result();iface_.updateTicket(args.ticket);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);result.setSuccessIsSet(true);oprot.writeMessageBegin(new TMessage("insertTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivities implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivities_args args = new getActivities_args();args.read(iprot);iprot.readMessageEnd();getActivities_result result = new getActivities_result();result.success = iface_.getActivities(args.customerId);oprot.writeMessageBegin(new TMessage("getActivities", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivitiesForTicket implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivitiesForTicket_args args = new getActivitiesForTicket_args();args.read(iprot);iprot.readMessageEnd();getActivitiesForTicket_result result = new getActivitiesForTicket_result();result.success = iface_.getActivitiesForTicket(args.ticketId);oprot.writeMessageBegin(new TMessage("getActivitiesForTicket", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getActivity implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getActivity_args args = new getActivity_args();args.read(iprot);iprot.readMessageEnd();getActivity_result result = new getActivity_result();result.success = iface_.getActivity(args.activityId);oprot.writeMessageBegin(new TMessage("getActivity", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getLastActivity implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getLastActivity_args args = new getLastActivity_args();args.read(iprot);iprot.readMessageEnd();getLastActivity_result result = new getLastActivity_result();result.success = iface_.getLastActivity(args.ticketId);oprot.writeMessageBegin(new TMessage("getLastActivity", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class insertActivity implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{insertActivity_args args = new insertActivity_args();args.read(iprot);iprot.readMessageEnd();insertActivity_result result = new insertActivity_result();iface_.insertActivity(args.activity);oprot.writeMessageBegin(new TMessage("insertActivity", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAgent implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAgent_args args = new getAgent_args();args.read(iprot);iprot.readMessageEnd();getAgent_result result = new getAgent_result();result.success = iface_.getAgent(args.agentId);oprot.writeMessageBegin(new TMessage("getAgent", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAgentByEmailId implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAgentByEmailId_args args = new getAgentByEmailId_args();args.read(iprot);iprot.readMessageEnd();getAgentByEmailId_result result = new getAgentByEmailId_result();result.success = iface_.getAgentByEmailId(args.agentEmailId);oprot.writeMessageBegin(new TMessage("getAgentByEmailId", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}}public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args> {private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);private long customerId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {CUSTOMER_ID((short)1, "customerId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);}public getTickets_args() {}public getTickets_args(long customerId){this();this.customerId = customerId;setCustomerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTickets_args(getTickets_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;}public getTickets_args deepCopy() {return new getTickets_args(this);}@Deprecatedpublic getTickets_args clone() {return new getTickets_args(this);}public long getCustomerId() {return this.customerId;}public getTickets_args setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);return this;}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been asigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return new Long(getCustomerId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case CUSTOMER_ID:return isSetCustomerId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTickets_args)return this.equals((getTickets_args)that);return false;}public boolean equals(getTickets_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTickets_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTickets_args typedOther = (getTickets_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case CUSTOMER_ID:if (field.type == TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTickets_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTickets_result implements TBase<getTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_result> {private static final TStruct STRUCT_DESC = new TStruct("getTickets_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Ticket> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Ticket.class))));}});static {FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);}public getTickets_result() {}public getTickets_result(List<Ticket> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getTickets_result(getTickets_result other) {if (other.isSetSuccess()) {List<Ticket> __this__success = new ArrayList<Ticket>();for (Ticket other_element : other.success) {__this__success.add(new Ticket(other_element));}this.success = __this__success;}}public getTickets_result deepCopy() {return new getTickets_result(this);}@Deprecatedpublic getTickets_result clone() {return new getTickets_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Ticket> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Ticket elem) {if (this.success == null) {this.success = new ArrayList<Ticket>();}this.success.add(elem);}public List<Ticket> getSuccess() {return this.success;}public getTickets_result setSuccess(List<Ticket> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Ticket>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTickets_result)return this.equals((getTickets_result)that);return false;}public boolean equals(getTickets_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTickets_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTickets_result typedOther = (getTickets_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list0 = iprot.readListBegin();this.success = new ArrayList<Ticket>(_list0.size);for (int _i1 = 0; _i1 < _list0.size; ++_i1){Ticket _elem2;_elem2 = new Ticket();_elem2.read(iprot);this.success.add(_elem2);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Ticket _iter3 : this.success){_iter3.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTickets_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTicket_args implements TBase<getTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("getTicket_args");private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);private long ticketId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET_ID((short)1, "ticketId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TICKETID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTicket_args.class, metaDataMap);}public getTicket_args() {}public getTicket_args(long ticketId){this();this.ticketId = ticketId;setTicketIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTicket_args(getTicket_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.ticketId = other.ticketId;}public getTicket_args deepCopy() {return new getTicket_args(this);}@Deprecatedpublic getTicket_args clone() {return new getTicket_args(this);}public long getTicketId() {return this.ticketId;}public getTicket_args setTicketId(long ticketId) {this.ticketId = ticketId;setTicketIdIsSet(true);return this;}public void unsetTicketId() {__isset_bit_vector.clear(__TICKETID_ISSET_ID);}/** Returns true if field ticketId is set (has been asigned a value) and false otherwise */public boolean isSetTicketId() {return __isset_bit_vector.get(__TICKETID_ISSET_ID);}public void setTicketIdIsSet(boolean value) {__isset_bit_vector.set(__TICKETID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET_ID:if (value == null) {unsetTicketId();} else {setTicketId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET_ID:return new Long(getTicketId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET_ID:return isSetTicketId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTicket_args)return this.equals((getTicket_args)that);return false;}public boolean equals(getTicket_args that) {if (that == null)return false;boolean this_present_ticketId = true;boolean that_present_ticketId = true;if (this_present_ticketId || that_present_ticketId) {if (!(this_present_ticketId && that_present_ticketId))return false;if (this.ticketId != that.ticketId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTicket_args typedOther = (getTicket_args)other;lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET_ID:if (field.type == TType.I64) {this.ticketId = iprot.readI64();setTicketIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);oprot.writeI64(this.ticketId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTicket_args(");boolean first = true;sb.append("ticketId:");sb.append(this.ticketId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTicket_result implements TBase<getTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("getTicket_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Ticket success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Ticket.class)));}});static {FieldMetaData.addStructMetaDataMap(getTicket_result.class, metaDataMap);}public getTicket_result() {}public getTicket_result(Ticket success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getTicket_result(getTicket_result other) {if (other.isSetSuccess()) {this.success = new Ticket(other.success);}}public getTicket_result deepCopy() {return new getTicket_result(this);}@Deprecatedpublic getTicket_result clone() {return new getTicket_result(this);}public Ticket getSuccess() {return this.success;}public getTicket_result setSuccess(Ticket success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Ticket)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTicket_result)return this.equals((getTicket_result)that);return false;}public boolean equals(getTicket_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTicket_result typedOther = (getTicket_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Ticket();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTicket_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class updateTicket_args implements TBase<updateTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("updateTicket_args");private static final TField TICKET_FIELD_DESC = new TField("ticket", TType.STRUCT, (short)1);private Ticket ticket;/** 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");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)));}});static {FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);}public updateTicket_args() {}public updateTicket_args(Ticket ticket){this();this.ticket = ticket;}/*** Performs a deep copy on <i>other</i>.*/public updateTicket_args(updateTicket_args other) {if (other.isSetTicket()) {this.ticket = new Ticket(other.ticket);}}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 void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET:if (value == null) {unsetTicket();} else {setTicket((Ticket)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();}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();}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;}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;}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;}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();}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;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 Ticket ticket;/** 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");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)));}});static {FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);}public insertTicket_args() {}public insertTicket_args(Ticket ticket){this();this.ticket = ticket;}/*** Performs a deep copy on <i>other</i>.*/public insertTicket_args(insertTicket_args other) {if (other.isSetTicket()) {this.ticket = new Ticket(other.ticket);}}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 void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET:if (value == null) {unsetTicket();} else {setTicket((Ticket)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();}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();}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;}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;}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;}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();}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;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertTicket_result implements TBase<insertTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("insertTicket_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);private long success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);}public insertTicket_result() {}public insertTicket_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public insertTicket_result(insertTicket_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public insertTicket_result deepCopy() {return new insertTicket_result(this);}@Deprecatedpublic insertTicket_result clone() {return new insertTicket_result(this);}public long getSuccess() {return this.success;}public insertTicket_result setSuccess(long success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Long(getSuccess());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertTicket_result)return this.equals((insertTicket_result)that);return false;}public boolean equals(insertTicket_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertTicket_result typedOther = (insertTicket_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertTicket_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivities_args implements TBase<getActivities_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivities_args");private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);private long customerId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {CUSTOMER_ID((short)1, "customerId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);}public getActivities_args() {}public getActivities_args(long customerId){this();this.customerId = customerId;setCustomerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getActivities_args(getActivities_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;}public getActivities_args deepCopy() {return new getActivities_args(this);}@Deprecatedpublic getActivities_args clone() {return new getActivities_args(this);}public long getCustomerId() {return this.customerId;}public getActivities_args setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);return this;}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been asigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return new Long(getCustomerId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case CUSTOMER_ID:return isSetCustomerId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivities_args)return this.equals((getActivities_args)that);return false;}public boolean equals(getActivities_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivities_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivities_args typedOther = (getActivities_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case CUSTOMER_ID:if (field.type == TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivities_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivities_result implements TBase<getActivities_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivities_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Activity> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Activity.class))));}});static {FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);}public getActivities_result() {}public getActivities_result(List<Activity> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivities_result(getActivities_result other) {if (other.isSetSuccess()) {List<Activity> __this__success = new ArrayList<Activity>();for (Activity other_element : other.success) {__this__success.add(new Activity(other_element));}this.success = __this__success;}}public getActivities_result deepCopy() {return new getActivities_result(this);}@Deprecatedpublic getActivities_result clone() {return new getActivities_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Activity> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Activity elem) {if (this.success == null) {this.success = new ArrayList<Activity>();}this.success.add(elem);}public List<Activity> getSuccess() {return this.success;}public getActivities_result setSuccess(List<Activity> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Activity>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivities_result)return this.equals((getActivities_result)that);return false;}public boolean equals(getActivities_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivities_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivities_result typedOther = (getActivities_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list4 = iprot.readListBegin();this.success = new ArrayList<Activity>(_list4.size);for (int _i5 = 0; _i5 < _list4.size; ++_i5){Activity _elem6;_elem6 = new Activity();_elem6.read(iprot);this.success.add(_elem6);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Activity _iter7 : this.success){_iter7.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 getActivitiesForTicket_args implements TBase<getActivitiesForTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_args");private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);private long ticketId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET_ID((short)1, "ticketId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TICKETID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getActivitiesForTicket_args.class, metaDataMap);}public getActivitiesForTicket_args() {}public getActivitiesForTicket_args(long ticketId){this();this.ticketId = ticketId;setTicketIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getActivitiesForTicket_args(getActivitiesForTicket_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.ticketId = other.ticketId;}public getActivitiesForTicket_args deepCopy() {return new getActivitiesForTicket_args(this);}@Deprecatedpublic getActivitiesForTicket_args clone() {return new getActivitiesForTicket_args(this);}public long getTicketId() {return this.ticketId;}public getActivitiesForTicket_args setTicketId(long ticketId) {this.ticketId = ticketId;setTicketIdIsSet(true);return this;}public void unsetTicketId() {__isset_bit_vector.clear(__TICKETID_ISSET_ID);}/** Returns true if field ticketId is set (has been asigned a value) and false otherwise */public boolean isSetTicketId() {return __isset_bit_vector.get(__TICKETID_ISSET_ID);}public void setTicketIdIsSet(boolean value) {__isset_bit_vector.set(__TICKETID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET_ID:if (value == null) {unsetTicketId();} else {setTicketId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET_ID:return new Long(getTicketId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET_ID:return isSetTicketId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivitiesForTicket_args)return this.equals((getActivitiesForTicket_args)that);return false;}public boolean equals(getActivitiesForTicket_args that) {if (that == null)return false;boolean this_present_ticketId = true;boolean that_present_ticketId = true;if (this_present_ticketId || that_present_ticketId) {if (!(this_present_ticketId && that_present_ticketId))return false;if (this.ticketId != that.ticketId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivitiesForTicket_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivitiesForTicket_args typedOther = (getActivitiesForTicket_args)other;lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET_ID:if (field.type == TType.I64) {this.ticketId = iprot.readI64();setTicketIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);oprot.writeI64(this.ticketId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivitiesForTicket_args(");boolean first = true;sb.append("ticketId:");sb.append(this.ticketId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivitiesForTicket_result implements TBase<getActivitiesForTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivitiesForTicket_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivitiesForTicket_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private List<Activity> success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Activity.class))));}});static {FieldMetaData.addStructMetaDataMap(getActivitiesForTicket_result.class, metaDataMap);}public getActivitiesForTicket_result() {}public getActivitiesForTicket_result(List<Activity> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivitiesForTicket_result(getActivitiesForTicket_result other) {if (other.isSetSuccess()) {List<Activity> __this__success = new ArrayList<Activity>();for (Activity other_element : other.success) {__this__success.add(new Activity(other_element));}this.success = __this__success;}}public getActivitiesForTicket_result deepCopy() {return new getActivitiesForTicket_result(this);}@Deprecatedpublic getActivitiesForTicket_result clone() {return new getActivitiesForTicket_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Activity> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Activity elem) {if (this.success == null) {this.success = new ArrayList<Activity>();}this.success.add(elem);}public List<Activity> getSuccess() {return this.success;}public getActivitiesForTicket_result setSuccess(List<Activity> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Activity>)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivitiesForTicket_result)return this.equals((getActivitiesForTicket_result)that);return false;}public boolean equals(getActivitiesForTicket_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivitiesForTicket_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivitiesForTicket_result typedOther = (getActivitiesForTicket_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list8 = iprot.readListBegin();this.success = new ArrayList<Activity>(_list8.size);for (int _i9 = 0; _i9 < _list8.size; ++_i9){Activity _elem10;_elem10 = new Activity();_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 (Activity _iter11 : this.success){_iter11.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivitiesForTicket_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivity_args implements TBase<getActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivity_args> {private static final TStruct STRUCT_DESC = new TStruct("getActivity_args");private static final TField ACTIVITY_ID_FIELD_DESC = new TField("activityId", TType.I64, (short)1);private long activityId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ACTIVITY_ID((short)1, "activityId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ACTIVITYID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ACTIVITY_ID, new FieldMetaData("activityId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getActivity_args.class, metaDataMap);}public getActivity_args() {}public getActivity_args(long activityId){this();this.activityId = activityId;setActivityIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getActivity_args(getActivity_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.activityId = other.activityId;}public getActivity_args deepCopy() {return new getActivity_args(this);}@Deprecatedpublic getActivity_args clone() {return new getActivity_args(this);}public long getActivityId() {return this.activityId;}public getActivity_args setActivityId(long activityId) {this.activityId = activityId;setActivityIdIsSet(true);return this;}public void unsetActivityId() {__isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);}/** Returns true if field activityId is set (has been asigned a value) and false otherwise */public boolean isSetActivityId() {return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);}public void setActivityIdIsSet(boolean value) {__isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ACTIVITY_ID:if (value == null) {unsetActivityId();} else {setActivityId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ACTIVITY_ID:return new Long(getActivityId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ACTIVITY_ID:return isSetActivityId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivity_args)return this.equals((getActivity_args)that);return false;}public boolean equals(getActivity_args that) {if (that == null)return false;boolean this_present_activityId = true;boolean that_present_activityId = true;if (this_present_activityId || that_present_activityId) {if (!(this_present_activityId && that_present_activityId))return false;if (this.activityId != that.activityId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivity_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivity_args typedOther = (getActivity_args)other;lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(isSetActivityId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activityId, typedOther.activityId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ACTIVITY_ID:if (field.type == TType.I64) {this.activityId = iprot.readI64();setActivityIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);oprot.writeI64(this.activityId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivity_args(");boolean first = true;sb.append("activityId:");sb.append(this.activityId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getActivity_result implements TBase<getActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivity_result> {private static final TStruct STRUCT_DESC = new TStruct("getActivity_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Activity success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(getActivity_result.class, metaDataMap);}public getActivity_result() {}public getActivity_result(Activity success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getActivity_result(getActivity_result other) {if (other.isSetSuccess()) {this.success = new Activity(other.success);}}public getActivity_result deepCopy() {return new getActivity_result(this);}@Deprecatedpublic getActivity_result clone() {return new getActivity_result(this);}public Activity getSuccess() {return this.success;}public getActivity_result setSuccess(Activity success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getActivity_result)return this.equals((getActivity_result)that);return false;}public boolean equals(getActivity_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getActivity_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getActivity_result typedOther = (getActivity_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Activity();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getActivity_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastActivity_args implements TBase<getLastActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLastActivity_args> {private static final TStruct STRUCT_DESC = new TStruct("getLastActivity_args");private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);private long ticketId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TICKET_ID((short)1, "ticketId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TICKETID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getLastActivity_args.class, metaDataMap);}public getLastActivity_args() {}public getLastActivity_args(long ticketId){this();this.ticketId = ticketId;setTicketIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getLastActivity_args(getLastActivity_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.ticketId = other.ticketId;}public getLastActivity_args deepCopy() {return new getLastActivity_args(this);}@Deprecatedpublic getLastActivity_args clone() {return new getLastActivity_args(this);}public long getTicketId() {return this.ticketId;}public getLastActivity_args setTicketId(long ticketId) {this.ticketId = ticketId;setTicketIdIsSet(true);return this;}public void unsetTicketId() {__isset_bit_vector.clear(__TICKETID_ISSET_ID);}/** Returns true if field ticketId is set (has been asigned a value) and false otherwise */public boolean isSetTicketId() {return __isset_bit_vector.get(__TICKETID_ISSET_ID);}public void setTicketIdIsSet(boolean value) {__isset_bit_vector.set(__TICKETID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TICKET_ID:if (value == null) {unsetTicketId();} else {setTicketId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TICKET_ID:return new Long(getTicketId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TICKET_ID:return isSetTicketId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastActivity_args)return this.equals((getLastActivity_args)that);return false;}public boolean equals(getLastActivity_args that) {if (that == null)return false;boolean this_present_ticketId = true;boolean that_present_ticketId = true;if (this_present_ticketId || that_present_ticketId) {if (!(this_present_ticketId && that_present_ticketId))return false;if (this.ticketId != that.ticketId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastActivity_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastActivity_args typedOther = (getLastActivity_args)other;lastComparison = Boolean.valueOf(isSetTicketId()).compareTo(isSetTicketId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ticketId, typedOther.ticketId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TICKET_ID:if (field.type == TType.I64) {this.ticketId = iprot.readI64();setTicketIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TICKET_ID_FIELD_DESC);oprot.writeI64(this.ticketId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastActivity_args(");boolean first = true;sb.append("ticketId:");sb.append(this.ticketId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getLastActivity_result implements TBase<getLastActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLastActivity_result> {private static final TStruct STRUCT_DESC = new TStruct("getLastActivity_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Activity success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(getLastActivity_result.class, metaDataMap);}public getLastActivity_result() {}public getLastActivity_result(Activity success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getLastActivity_result(getLastActivity_result other) {if (other.isSetSuccess()) {this.success = new Activity(other.success);}}public getLastActivity_result deepCopy() {return new getLastActivity_result(this);}@Deprecatedpublic getLastActivity_result clone() {return new getLastActivity_result(this);}public Activity getSuccess() {return this.success;}public getLastActivity_result setSuccess(Activity success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLastActivity_result)return this.equals((getLastActivity_result)that);return false;}public boolean equals(getLastActivity_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLastActivity_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLastActivity_result typedOther = (getLastActivity_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Activity();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLastActivity_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertActivity_args implements TBase<insertActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_args> {private static final TStruct STRUCT_DESC = new TStruct("insertActivity_args");private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)1);private Activity activity;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ACTIVITY((short)1, "activity");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Activity.class)));}});static {FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);}public insertActivity_args() {}public insertActivity_args(Activity activity){this();this.activity = activity;}/*** Performs a deep copy on <i>other</i>.*/public insertActivity_args(insertActivity_args other) {if (other.isSetActivity()) {this.activity = new Activity(other.activity);}}public insertActivity_args deepCopy() {return new insertActivity_args(this);}@Deprecatedpublic insertActivity_args clone() {return new insertActivity_args(this);}public Activity getActivity() {return this.activity;}public insertActivity_args setActivity(Activity activity) {this.activity = activity;return this;}public void unsetActivity() {this.activity = null;}/** Returns true if field activity is set (has been asigned a value) and false otherwise */public boolean isSetActivity() {return this.activity != null;}public void setActivityIsSet(boolean value) {if (!value) {this.activity = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ACTIVITY:if (value == null) {unsetActivity();} else {setActivity((Activity)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ACTIVITY:return getActivity();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ACTIVITY:return isSetActivity();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertActivity_args)return this.equals((insertActivity_args)that);return false;}public boolean equals(insertActivity_args that) {if (that == null)return false;boolean this_present_activity = true && this.isSetActivity();boolean that_present_activity = true && that.isSetActivity();if (this_present_activity || that_present_activity) {if (!(this_present_activity && that_present_activity))return false;if (!this.activity.equals(that.activity))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertActivity_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertActivity_args typedOther = (insertActivity_args)other;lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ACTIVITY:if (field.type == TType.STRUCT) {this.activity = new Activity();this.activity.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.activity != null) {oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);this.activity.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertActivity_args(");boolean first = true;sb.append("activity:");if (this.activity == null) {sb.append("null");} else {sb.append(this.activity);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class insertActivity_result implements TBase<insertActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_result> {private static final TStruct STRUCT_DESC = new TStruct("insertActivity_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {;private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{}});static {FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);}public insertActivity_result() {}/*** Performs a deep copy on <i>other</i>.*/public insertActivity_result(insertActivity_result other) {}public insertActivity_result deepCopy() {return new insertActivity_result(this);}@Deprecatedpublic insertActivity_result clone() {return new insertActivity_result(this);}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof insertActivity_result)return this.equals((insertActivity_result)that);return false;}public boolean equals(insertActivity_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(insertActivity_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;insertActivity_result typedOther = (insertActivity_result)other;return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("insertActivity_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgent_args implements TBase<getAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_args> {private static final TStruct STRUCT_DESC = new TStruct("getAgent_args");private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);private long agentId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_ID((short)1, "agentId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __AGENTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getAgent_args.class, metaDataMap);}public getAgent_args() {}public getAgent_args(long agentId){this();this.agentId = agentId;setAgentIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAgent_args(getAgent_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.agentId = other.agentId;}public getAgent_args deepCopy() {return new getAgent_args(this);}@Deprecatedpublic getAgent_args clone() {return new getAgent_args(this);}public long getAgentId() {return this.agentId;}public getAgent_args setAgentId(long agentId) {this.agentId = agentId;setAgentIdIsSet(true);return this;}public void unsetAgentId() {__isset_bit_vector.clear(__AGENTID_ISSET_ID);}/** Returns true if field agentId is set (has been asigned a value) and false otherwise */public boolean isSetAgentId() {return __isset_bit_vector.get(__AGENTID_ISSET_ID);}public void setAgentIdIsSet(boolean value) {__isset_bit_vector.set(__AGENTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_ID:if (value == null) {unsetAgentId();} else {setAgentId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_ID:return new Long(getAgentId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_ID:return isSetAgentId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgent_args)return this.equals((getAgent_args)that);return false;}public boolean equals(getAgent_args that) {if (that == null)return false;boolean this_present_agentId = true;boolean that_present_agentId = true;if (this_present_agentId || that_present_agentId) {if (!(this_present_agentId && that_present_agentId))return false;if (this.agentId != that.agentId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgent_args typedOther = (getAgent_args)other;lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_ID:if (field.type == TType.I64) {this.agentId = iprot.readI64();setAgentIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);oprot.writeI64(this.agentId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgent_args(");boolean first = true;sb.append("agentId:");sb.append(this.agentId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgent_result implements TBase<getAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_result> {private static final TStruct STRUCT_DESC = new TStruct("getAgent_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Agent success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Agent.class)));}});static {FieldMetaData.addStructMetaDataMap(getAgent_result.class, metaDataMap);}public getAgent_result() {}public getAgent_result(Agent success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAgent_result(getAgent_result other) {if (other.isSetSuccess()) {this.success = new Agent(other.success);}}public getAgent_result deepCopy() {return new getAgent_result(this);}@Deprecatedpublic getAgent_result clone() {return new getAgent_result(this);}public Agent getSuccess() {return this.success;}public getAgent_result setSuccess(Agent success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Agent)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgent_result)return this.equals((getAgent_result)that);return false;}public boolean equals(getAgent_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgent_result typedOther = (getAgent_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Agent();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgent_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgentByEmailId_args implements TBase<getAgentByEmailId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgentByEmailId_args> {private static final TStruct STRUCT_DESC = new TStruct("getAgentByEmailId_args");private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);private String agentEmailId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {AGENT_EMAIL_ID((short)1, "agentEmailId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(getAgentByEmailId_args.class, metaDataMap);}public getAgentByEmailId_args() {}public getAgentByEmailId_args(String agentEmailId){this();this.agentEmailId = agentEmailId;}/*** Performs a deep copy on <i>other</i>.*/public getAgentByEmailId_args(getAgentByEmailId_args other) {if (other.isSetAgentEmailId()) {this.agentEmailId = other.agentEmailId;}}public getAgentByEmailId_args deepCopy() {return new getAgentByEmailId_args(this);}@Deprecatedpublic getAgentByEmailId_args clone() {return new getAgentByEmailId_args(this);}public String getAgentEmailId() {return this.agentEmailId;}public getAgentByEmailId_args setAgentEmailId(String agentEmailId) {this.agentEmailId = agentEmailId;return this;}public void unsetAgentEmailId() {this.agentEmailId = null;}/** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */public boolean isSetAgentEmailId() {return this.agentEmailId != null;}public void setAgentEmailIdIsSet(boolean value) {if (!value) {this.agentEmailId = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT_EMAIL_ID:if (value == null) {unsetAgentEmailId();} else {setAgentEmailId((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return getAgentEmailId();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case AGENT_EMAIL_ID:return isSetAgentEmailId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgentByEmailId_args)return this.equals((getAgentByEmailId_args)that);return false;}public boolean equals(getAgentByEmailId_args that) {if (that == null)return false;boolean this_present_agentEmailId = true && this.isSetAgentEmailId();boolean that_present_agentEmailId = true && that.isSetAgentEmailId();if (this_present_agentEmailId || that_present_agentEmailId) {if (!(this_present_agentEmailId && that_present_agentEmailId))return false;if (!this.agentEmailId.equals(that.agentEmailId))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgentByEmailId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgentByEmailId_args typedOther = (getAgentByEmailId_args)other;lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case AGENT_EMAIL_ID:if (field.type == TType.STRING) {this.agentEmailId = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agentEmailId != null) {oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);oprot.writeString(this.agentEmailId);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgentByEmailId_args(");boolean first = true;sb.append("agentEmailId:");if (this.agentEmailId == null) {sb.append("null");} else {sb.append(this.agentEmailId);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAgentByEmailId_result implements TBase<getAgentByEmailId_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgentByEmailId_result> {private static final TStruct STRUCT_DESC = new TStruct("getAgentByEmailId_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private Agent success;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Agent.class)));}});static {FieldMetaData.addStructMetaDataMap(getAgentByEmailId_result.class, metaDataMap);}public getAgentByEmailId_result() {}public getAgentByEmailId_result(Agent success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAgentByEmailId_result(getAgentByEmailId_result other) {if (other.isSetSuccess()) {this.success = new Agent(other.success);}}public getAgentByEmailId_result deepCopy() {return new getAgentByEmailId_result(this);}@Deprecatedpublic getAgentByEmailId_result clone() {return new getAgentByEmailId_result(this);}public Agent getSuccess() {return this.success;}public getAgentByEmailId_result setSuccess(Agent success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Agent)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAgentByEmailId_result)return this.equals((getAgentByEmailId_result)that);return false;}public boolean equals(getAgentByEmailId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAgentByEmailId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAgentByEmailId_result typedOther = (getAgentByEmailId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Agent();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAgentByEmailId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}}