From 1eb0cec6a9c1440ea7b0e0a5b2848e85d53e171b Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Tue, 21 Oct 2014 14:04:49 +0200 Subject: Anlegen eines Benutzers in die Datenbank erfolgt nun bereits beim einloggen. Vorher war es fälschlicherweise erst beim hochladen des ersten Images --- .../src/main/java/server/ServerHandler.java | 18 +- .../src/main/java/server/generated/Server.java | 7046 +++++++++++++------- 2 files changed, 4528 insertions(+), 2536 deletions(-) (limited to 'dozentenmodulserver/src/main/java') diff --git a/dozentenmodulserver/src/main/java/server/ServerHandler.java b/dozentenmodulserver/src/main/java/server/ServerHandler.java index cf575367..2d6a62bc 100644 --- a/dozentenmodulserver/src/main/java/server/ServerHandler.java +++ b/dozentenmodulserver/src/main/java/server/ServerHandler.java @@ -163,6 +163,11 @@ public class ServerHandler implements Server.Iface { } + @Override + public String setInstitution(String university){ + return sql.setInstitution(university); + } + @Override public boolean writeVLdata(String imagename, String desc ,String login, String firstname, String lastname, String university, String Mail, @@ -180,16 +185,16 @@ public class ServerHandler implements Server.Iface { mode="to_be_published"; } - String pk_institution = sql.setInstitution(university); - - String pk_person = sql.setPerson(login, lastname, firstname, Mail, - new Date(), pk_institution); + //String pk_institution = sql.setInstitution(university); + //String pk_person = sql.setPerson(login, lastname, firstname, Mail, new Date(), pk_institution); //OS impl Select and write //ACHTUNG: Anzahl der Leerzeichen muss eingehalten werden: 'Windows 7 32 bit" String pk_os=sql.getOSpk(os.substring(0, nthIndexOf(os, " ", 2)),os.substring(nthIndexOf(os," ", 2), os.lastIndexOf(" ")).replace(" ", "")); - sql.setImageData(pk_person, license, internet, cpu, ram, imagename,desc, + //sql.setImageData(pk_person, license, internet, cpu, ram, imagename,desc, imagePath, filesize,mode,pk_os); + + sql.setImageData(login, license, internet, cpu, ram, imagename,desc, imagePath, filesize,mode,pk_os); log.info(new Date() + " - written VLdata"); @@ -224,6 +229,9 @@ public class ServerHandler implements Server.Iface { return sql.getPersonData(Vorname, Nachname); } + public void setPerson(String login, String lastname,String firstname, String mail, String Institution){ + sql.setPerson(login, lastname, firstname, mail, new Date(), Institution); + } @Override public boolean writeLecturedata(String name, String shortdesc, String desc, diff --git a/dozentenmodulserver/src/main/java/server/generated/Server.java b/dozentenmodulserver/src/main/java/server/generated/Server.java index db04dfa0..d8267f25 100644 --- a/dozentenmodulserver/src/main/java/server/generated/Server.java +++ b/dozentenmodulserver/src/main/java/server/generated/Server.java @@ -42,6 +42,8 @@ public class Server { public String getPathOfImage(String image_id, String version) throws org.apache.thrift.TException; + public String setInstitution(String university) throws org.apache.thrift.TException; + public boolean writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os) throws org.apache.thrift.TException; public List getImageListPermissionWrite(String userID) throws org.apache.thrift.TException; @@ -58,6 +60,8 @@ public class Server { public Map getPersonData(String Vorname, String Nachname) throws org.apache.thrift.TException; + public void setPerson(String login, String lastname, String firstname, String mail, String Institution) throws org.apache.thrift.TException; + public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException; public boolean startFileCopy(String file) throws org.apache.thrift.TException; @@ -104,6 +108,8 @@ public class Server { public void getPathOfImage(String image_id, String version, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setInstitution(String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getImageListPermissionWrite(String userID, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -120,6 +126,8 @@ public class Server { public void getPersonData(String Vorname, String Nachname, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setPerson(String login, String lastname, String firstname, String mail, String Institution, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void startFileCopy(String file, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -247,6 +255,29 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPathOfImage failed: unknown result"); } + public String setInstitution(String university) throws org.apache.thrift.TException + { + send_setInstitution(university); + return recv_setInstitution(); + } + + public void send_setInstitution(String university) throws org.apache.thrift.TException + { + setInstitution_args args = new setInstitution_args(); + args.setUniversity(university); + sendBase("setInstitution", args); + } + + public String recv_setInstitution() throws org.apache.thrift.TException + { + setInstitution_result result = new setInstitution_result(); + receiveBase(result, "setInstitution"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setInstitution failed: unknown result"); + } + public boolean writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os) throws org.apache.thrift.TException { send_writeVLdata(imagename, desc, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os); @@ -446,6 +477,30 @@ public class Server { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPersonData failed: unknown result"); } + public void setPerson(String login, String lastname, String firstname, String mail, String Institution) throws org.apache.thrift.TException + { + send_setPerson(login, lastname, firstname, mail, Institution); + recv_setPerson(); + } + + public void send_setPerson(String login, String lastname, String firstname, String mail, String Institution) throws org.apache.thrift.TException + { + setPerson_args args = new setPerson_args(); + args.setLogin(login); + args.setLastname(lastname); + args.setFirstname(firstname); + args.setMail(mail); + args.setInstitution(Institution); + sendBase("setPerson", args); + } + + public void recv_setPerson() throws org.apache.thrift.TException + { + setPerson_result result = new setPerson_result(); + receiveBase(result, "setPerson"); + return; + } + public boolean writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak) throws org.apache.thrift.TException { send_writeLecturedata(name, shortdesc, desc, startDate, endDate, isActive, imagename, login, firstname, lastname, university, Mail, Tel, Fak); @@ -1042,6 +1097,38 @@ public class Server { } } + public void setInstitution(String university, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + setInstitution_call method_call = new setInstitution_call(university, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class setInstitution_call extends org.apache.thrift.async.TAsyncMethodCall { + private String university; + public setInstitution_call(String university, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.university = university; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setInstitution", org.apache.thrift.protocol.TMessageType.CALL, 0)); + setInstitution_args args = new setInstitution_args(); + args.setUniversity(university); + args.write(prot); + prot.writeMessageEnd(); + } + + public String getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_setInstitution(); + } + } + public void writeVLdata(String imagename, String desc, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, boolean license, boolean internet, long ram, long cpu, String imagePath, boolean isTemplate, long filesize, long shareMode, String os, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); writeVLdata_call method_call = new writeVLdata_call(imagename, desc, login, firstname, lastname, university, Mail, Tel, Fak, license, internet, ram, cpu, imagePath, isTemplate, filesize, shareMode, os, resultHandler, this, ___protocolFactory, ___transport); @@ -1343,6 +1430,50 @@ public class Server { } } + public void setPerson(String login, String lastname, String firstname, String mail, String Institution, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + setPerson_call method_call = new setPerson_call(login, lastname, firstname, mail, Institution, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class setPerson_call extends org.apache.thrift.async.TAsyncMethodCall { + private String login; + private String lastname; + private String firstname; + private String mail; + private String Institution; + public setPerson_call(String login, String lastname, String firstname, String mail, String Institution, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.login = login; + this.lastname = lastname; + this.firstname = firstname; + this.mail = mail; + this.Institution = Institution; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPerson", org.apache.thrift.protocol.TMessageType.CALL, 0)); + setPerson_args args = new setPerson_args(); + args.setLogin(login); + args.setLastname(lastname); + args.setFirstname(firstname); + args.setMail(mail); + args.setInstitution(Institution); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + (new Client(prot)).recv_setPerson(); + } + } + public void writeLecturedata(String name, String shortdesc, String desc, String startDate, String endDate, boolean isActive, String imagename, String login, String firstname, String lastname, String university, String Mail, String Tel, String Fak, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); writeLecturedata_call method_call = new writeLecturedata_call(name, shortdesc, desc, startDate, endDate, isActive, imagename, login, firstname, lastname, university, Mail, Tel, Fak, resultHandler, this, ___protocolFactory, ___transport); @@ -2148,6 +2279,7 @@ public class Server { processMap.put("getFtpUser", new getFtpUser()); processMap.put("DeleteFtpUser", new DeleteFtpUser()); processMap.put("getPathOfImage", new getPathOfImage()); + processMap.put("setInstitution", new setInstitution()); processMap.put("writeVLdata", new writeVLdata()); processMap.put("getImageListPermissionWrite", new getImageListPermissionWrite()); processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); @@ -2156,6 +2288,7 @@ public class Server { processMap.put("getAllOS", new getAllOS()); processMap.put("getAllUniversities", new getAllUniversities()); processMap.put("getPersonData", new getPersonData()); + processMap.put("setPerson", new setPerson()); processMap.put("writeLecturedata", new writeLecturedata()); processMap.put("startFileCopy", new startFileCopy()); processMap.put("getImageData", new getImageData()); @@ -2238,6 +2371,26 @@ public class Server { } } + public static class setInstitution extends org.apache.thrift.ProcessFunction { + public setInstitution() { + super("setInstitution"); + } + + public setInstitution_args getEmptyArgsInstance() { + return new setInstitution_args(); + } + + protected boolean isOneway() { + return false; + } + + public setInstitution_result getResult(I iface, setInstitution_args args) throws org.apache.thrift.TException { + setInstitution_result result = new setInstitution_result(); + result.success = iface.setInstitution(args.university); + return result; + } + } + public static class writeVLdata extends org.apache.thrift.ProcessFunction { public writeVLdata() { super("writeVLdata"); @@ -2399,6 +2552,26 @@ public class Server { } } + public static class setPerson extends org.apache.thrift.ProcessFunction { + public setPerson() { + super("setPerson"); + } + + public setPerson_args getEmptyArgsInstance() { + return new setPerson_args(); + } + + protected boolean isOneway() { + return false; + } + + public setPerson_result getResult(I iface, setPerson_args args) throws org.apache.thrift.TException { + setPerson_result result = new setPerson_result(); + iface.setPerson(args.login, args.lastname, args.firstname, args.mail, args.Institution); + return result; + } + } + public static class writeLecturedata extends org.apache.thrift.ProcessFunction { public writeLecturedata() { super("writeLecturedata"); @@ -2788,6 +2961,7 @@ public class Server { processMap.put("getFtpUser", new getFtpUser()); processMap.put("DeleteFtpUser", new DeleteFtpUser()); processMap.put("getPathOfImage", new getPathOfImage()); + processMap.put("setInstitution", new setInstitution()); processMap.put("writeVLdata", new writeVLdata()); processMap.put("getImageListPermissionWrite", new getImageListPermissionWrite()); processMap.put("getImageListPermissionRead", new getImageListPermissionRead()); @@ -2796,6 +2970,7 @@ public class Server { processMap.put("getAllOS", new getAllOS()); processMap.put("getAllUniversities", new getAllUniversities()); processMap.put("getPersonData", new getPersonData()); + processMap.put("setPerson", new setPerson()); processMap.put("writeLecturedata", new writeLecturedata()); processMap.put("startFileCopy", new startFileCopy()); processMap.put("getImageData", new getImageData()); @@ -2971,6 +3146,57 @@ public class Server { } } + public static class setInstitution extends org.apache.thrift.AsyncProcessFunction { + public setInstitution() { + super("setInstitution"); + } + + public setInstitution_args getEmptyArgsInstance() { + return new setInstitution_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + setInstitution_result result = new setInstitution_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + setInstitution_result result = new setInstitution_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, setInstitution_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.setInstitution(args.university,resultHandler); + } + } + public static class writeVLdata extends org.apache.thrift.AsyncProcessFunction { public writeVLdata() { super("writeVLdata"); @@ -3380,6 +3606,56 @@ public class Server { } } + public static class setPerson extends org.apache.thrift.AsyncProcessFunction { + public setPerson() { + super("setPerson"); + } + + public setPerson_args getEmptyArgsInstance() { + return new setPerson_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + setPerson_result result = new setPerson_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + setPerson_result result = new setPerson_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, setPerson_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.setPerson(args.login, args.lastname, args.firstname, args.mail, args.Institution,resultHandler); + } + } + public static class writeLecturedata extends org.apache.thrift.AsyncProcessFunction { public writeLecturedata() { super("writeLecturedata"); @@ -6433,73 +6709,22 @@ public class Server { } - public static class writeVLdata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_args"); + public static class setInstitution_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setInstitution_args"); - private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)6); - private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)7); - private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)8); - private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)9); - private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)10); - private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)11); - private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)12); - private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)13); - private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("imagePath", org.apache.thrift.protocol.TType.STRING, (short)14); - private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)15); - private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)16); - private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)17); - private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)18); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeVLdata_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeVLdata_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setInstitution_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setInstitution_argsTupleSchemeFactory()); } - public String imagename; // required - public String desc; // required - public String login; // required - public String firstname; // required - public String lastname; // required public String university; // required - public String Mail; // required - public String Tel; // required - public String Fak; // required - public boolean license; // required - public boolean internet; // required - public long ram; // required - public long cpu; // required - public String imagePath; // required - public boolean isTemplate; // required - public long filesize; // required - public long shareMode; // required - public String os; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - IMAGENAME((short)1, "imagename"), - DESC((short)2, "desc"), - LOGIN((short)3, "login"), - FIRSTNAME((short)4, "firstname"), - LASTNAME((short)5, "lastname"), - UNIVERSITY((short)6, "university"), - MAIL((short)7, "Mail"), - TEL((short)8, "Tel"), - FAK((short)9, "Fak"), - LICENSE((short)10, "license"), - INTERNET((short)11, "internet"), - RAM((short)12, "ram"), - CPU((short)13, "cpu"), - IMAGE_PATH((short)14, "imagePath"), - IS_TEMPLATE((short)15, "isTemplate"), - FILESIZE((short)16, "filesize"), - SHARE_MODE((short)17, "shareMode"), - OS((short)18, "os"); + UNIVERSITY((short)1, "university"); private static final Map byName = new HashMap(); @@ -6514,42 +6739,8 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // IMAGENAME - return IMAGENAME; - case 2: // DESC - return DESC; - case 3: // LOGIN - return LOGIN; - case 4: // FIRSTNAME - return FIRSTNAME; - case 5: // LASTNAME - return LASTNAME; - case 6: // UNIVERSITY + case 1: // UNIVERSITY return UNIVERSITY; - case 7: // MAIL - return MAIL; - case 8: // TEL - return TEL; - case 9: // FAK - return FAK; - case 10: // LICENSE - return LICENSE; - case 11: // INTERNET - return INTERNET; - case 12: // RAM - return RAM; - case 13: // CPU - return CPU; - case 14: // IMAGE_PATH - return IMAGE_PATH; - case 15: // IS_TEMPLATE - return IS_TEMPLATE; - case 16: // FILESIZE - return FILESIZE; - case 17: // SHARE_MODE - return SHARE_MODE; - case 18: // OS - return OS; default: return null; } @@ -6590,1041 +6781,2847 @@ public class Server { } // isset id assignments - private static final int __LICENSE_ISSET_ID = 0; - private static final int __INTERNET_ISSET_ID = 1; - private static final int __RAM_ISSET_ID = 2; - private static final int __CPU_ISSET_ID = 3; - private static final int __ISTEMPLATE_ISSET_ID = 4; - private static final int __FILESIZE_ISSET_ID = 5; - private static final int __SHAREMODE_ISSET_ID = 6; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("imagePath", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); - tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setInstitution_args.class, metaDataMap); } - public writeVLdata_args() { + public setInstitution_args() { } - public writeVLdata_args( - String imagename, - String desc, - String login, - String firstname, - String lastname, - String university, - String Mail, - String Tel, - String Fak, - boolean license, - boolean internet, - long ram, - long cpu, - String imagePath, - boolean isTemplate, - long filesize, - long shareMode, - String os) + public setInstitution_args( + String university) { this(); - this.imagename = imagename; - this.desc = desc; - this.login = login; - this.firstname = firstname; - this.lastname = lastname; this.university = university; - this.Mail = Mail; - this.Tel = Tel; - this.Fak = Fak; - this.license = license; - setLicenseIsSet(true); - this.internet = internet; - setInternetIsSet(true); - this.ram = ram; - setRamIsSet(true); - this.cpu = cpu; - setCpuIsSet(true); - this.imagePath = imagePath; - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - this.filesize = filesize; - setFilesizeIsSet(true); - this.shareMode = shareMode; - setShareModeIsSet(true); - this.os = os; } /** * Performs a deep copy on other. */ - public writeVLdata_args(writeVLdata_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetImagename()) { - this.imagename = other.imagename; - } - if (other.isSetDesc()) { - this.desc = other.desc; - } - if (other.isSetLogin()) { - this.login = other.login; - } - if (other.isSetFirstname()) { - this.firstname = other.firstname; - } - if (other.isSetLastname()) { - this.lastname = other.lastname; - } + public setInstitution_args(setInstitution_args other) { if (other.isSetUniversity()) { this.university = other.university; } - if (other.isSetMail()) { - this.Mail = other.Mail; - } - if (other.isSetTel()) { - this.Tel = other.Tel; - } - if (other.isSetFak()) { - this.Fak = other.Fak; - } - this.license = other.license; - this.internet = other.internet; - this.ram = other.ram; - this.cpu = other.cpu; - if (other.isSetImagePath()) { - this.imagePath = other.imagePath; - } - this.isTemplate = other.isTemplate; - this.filesize = other.filesize; - this.shareMode = other.shareMode; - if (other.isSetOs()) { - this.os = other.os; - } } - public writeVLdata_args deepCopy() { - return new writeVLdata_args(this); + public setInstitution_args deepCopy() { + return new setInstitution_args(this); } @Override public void clear() { - this.imagename = null; - this.desc = null; - this.login = null; - this.firstname = null; - this.lastname = null; this.university = null; - this.Mail = null; - this.Tel = null; - this.Fak = null; - setLicenseIsSet(false); - this.license = false; - setInternetIsSet(false); - this.internet = false; - setRamIsSet(false); - this.ram = 0; - setCpuIsSet(false); - this.cpu = 0; - this.imagePath = null; - setIsTemplateIsSet(false); - this.isTemplate = false; - setFilesizeIsSet(false); - this.filesize = 0; - setShareModeIsSet(false); - this.shareMode = 0; - this.os = null; } - public String getImagename() { - return this.imagename; + public String getUniversity() { + return this.university; } - public writeVLdata_args setImagename(String imagename) { - this.imagename = imagename; + public setInstitution_args setUniversity(String university) { + this.university = university; return this; } - public void unsetImagename() { - this.imagename = null; + public void unsetUniversity() { + this.university = null; } - /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ - public boolean isSetImagename() { - return this.imagename != null; + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; } - public void setImagenameIsSet(boolean value) { + public void setUniversityIsSet(boolean value) { if (!value) { - this.imagename = null; + this.university = null; } } - public String getDesc() { - return this.desc; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); + } + break; - public writeVLdata_args setDesc(String desc) { - this.desc = desc; - return this; + } } - public void unsetDesc() { - this.desc = null; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case UNIVERSITY: + return getUniversity(); - /** Returns true if field desc is set (has been assigned a value) and false otherwise */ - public boolean isSetDesc() { - return this.desc != null; + } + throw new IllegalStateException(); } - public void setDescIsSet(boolean value) { - if (!value) { - this.desc = null; + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case UNIVERSITY: + return isSetUniversity(); } + throw new IllegalStateException(); } - public String getLogin() { - return this.login; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof setInstitution_args) + return this.equals((setInstitution_args)that); + return false; } - public writeVLdata_args setLogin(String login) { - this.login = login; - return this; - } - - public void unsetLogin() { - this.login = null; - } - - /** Returns true if field login is set (has been assigned a value) and false otherwise */ - public boolean isSetLogin() { - return this.login != null; - } + public boolean equals(setInstitution_args that) { + if (that == null) + return false; - public void setLoginIsSet(boolean value) { - if (!value) { - this.login = null; + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) + return false; } - } - public String getFirstname() { - return this.firstname; + return true; } - public writeVLdata_args setFirstname(String firstname) { - this.firstname = firstname; - return this; + @Override + public int hashCode() { + return 0; } - public void unsetFirstname() { - this.firstname = null; - } + @Override + public int compareTo(setInstitution_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } - /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ - public boolean isSetFirstname() { - return this.firstname != null; - } + int lastComparison = 0; - public void setFirstnameIsSet(boolean value) { - if (!value) { - this.firstname = null; + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (lastComparison != 0) { + return lastComparison; + } } + return 0; } - public String getLastname() { - return this.lastname; + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - public writeVLdata_args setLastname(String lastname) { - this.lastname = lastname; - return this; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public void unsetLastname() { - this.lastname = null; + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ - public boolean isSetLastname() { - return this.lastname != null; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("setInstitution_args("); + boolean first = true; - public void setLastnameIsSet(boolean value) { - if (!value) { - this.lastname = null; + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); } + first = false; + sb.append(")"); + return sb.toString(); } - public String getUniversity() { - return this.university; - } - - public writeVLdata_args setUniversity(String university) { - this.university = university; - return this; + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity } - public void unsetUniversity() { - this.university = null; + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - /** Returns true if field university is set (has been assigned a value) and false otherwise */ - public boolean isSetUniversity() { - return this.university != null; + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } } - public void setUniversityIsSet(boolean value) { - if (!value) { - this.university = null; + private static class setInstitution_argsStandardSchemeFactory implements SchemeFactory { + public setInstitution_argsStandardScheme getScheme() { + return new setInstitution_argsStandardScheme(); } } - public String getMail() { - return this.Mail; - } + private static class setInstitution_argsStandardScheme extends StandardScheme { - public writeVLdata_args setMail(String Mail) { - this.Mail = Mail; - return this; - } + public void read(org.apache.thrift.protocol.TProtocol iprot, setInstitution_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); - public void unsetMail() { - this.Mail = null; - } + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - /** Returns true if field Mail is set (has been assigned a value) and false otherwise */ - public boolean isSetMail() { - return this.Mail != null; - } + public void write(org.apache.thrift.protocol.TProtocol oprot, setInstitution_args struct) throws org.apache.thrift.TException { + struct.validate(); - public void setMailIsSet(boolean value) { - if (!value) { - this.Mail = null; + oprot.writeStructBegin(STRUCT_DESC); + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - } - - public String getTel() { - return this.Tel; - } - public writeVLdata_args setTel(String Tel) { - this.Tel = Tel; - return this; } - public void unsetTel() { - this.Tel = null; + private static class setInstitution_argsTupleSchemeFactory implements SchemeFactory { + public setInstitution_argsTupleScheme getScheme() { + return new setInstitution_argsTupleScheme(); + } } - /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ - public boolean isSetTel() { - return this.Tel != null; - } + private static class setInstitution_argsTupleScheme extends TupleScheme { - public void setTelIsSet(boolean value) { - if (!value) { - this.Tel = null; + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, setInstitution_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUniversity()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } } - } - public String getFak() { - return this.Fak; + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, setInstitution_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } + } } - public writeVLdata_args setFak(String Fak) { - this.Fak = Fak; - return this; - } + } - public void unsetFak() { - this.Fak = null; - } + public static class setInstitution_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setInstitution_result"); - /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ - public boolean isSetFak() { - return this.Fak != null; - } + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); - public void setFakIsSet(boolean value) { - if (!value) { - this.Fak = null; - } + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new setInstitution_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setInstitution_resultTupleSchemeFactory()); } - public boolean isLicense() { - return this.license; - } + public String success; // required - public writeVLdata_args setLicense(boolean license) { - this.license = license; - setLicenseIsSet(true); - return this; - } + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); - public void unsetLicense() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); - } + private static final Map byName = new HashMap(); - /** Returns true if field license is set (has been assigned a value) and false otherwise */ - public boolean isSetLicense() { - return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); - } + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } - public void setLicenseIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); - } - - public boolean isInternet() { - return this.internet; - } - - public writeVLdata_args setInternet(boolean internet) { - this.internet = internet; - setInternetIsSet(true); - return this; - } - - public void unsetInternet() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); - } + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } - /** Returns true if field internet is set (has been assigned a value) and false otherwise */ - public boolean isSetInternet() { - return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); - } + /** + * 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; + } - public void setInternetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); - } + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - public long getRam() { - return this.ram; - } + private final short _thriftId; + private final String _fieldName; - public writeVLdata_args setRam(long ram) { - this.ram = ram; - setRamIsSet(true); - return this; - } + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - public void unsetRam() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); - } + public short getThriftFieldId() { + return _thriftId; + } - /** Returns true if field ram is set (has been assigned a value) and false otherwise */ - public boolean isSetRam() { - return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); + public String getFieldName() { + return _fieldName; + } } - public void setRamIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setInstitution_result.class, metaDataMap); } - public long getCpu() { - return this.cpu; + public setInstitution_result() { } - public writeVLdata_args setCpu(long cpu) { - this.cpu = cpu; - setCpuIsSet(true); - return this; + public setInstitution_result( + String success) + { + this(); + this.success = success; } - public void unsetCpu() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); + /** + * Performs a deep copy on other. + */ + public setInstitution_result(setInstitution_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } } - /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ - public boolean isSetCpu() { - return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); + public setInstitution_result deepCopy() { + return new setInstitution_result(this); } - public void setCpuIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); + @Override + public void clear() { + this.success = null; } - public String getImagePath() { - return this.imagePath; + public String getSuccess() { + return this.success; } - public writeVLdata_args setImagePath(String imagePath) { - this.imagePath = imagePath; + public setInstitution_result setSuccess(String success) { + this.success = success; return this; } - public void unsetImagePath() { - this.imagePath = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field imagePath is set (has been assigned a value) and false otherwise */ - public boolean isSetImagePath() { - return this.imagePath != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setImagePathIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.imagePath = null; + this.success = null; } } - public boolean isIsTemplate() { - return this.isTemplate; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((String)value); + } + break; - public writeVLdata_args setIsTemplate(boolean isTemplate) { - this.isTemplate = isTemplate; - setIsTemplateIsSet(true); - return this; + } } - public void unsetIsTemplate() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); - } + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); - /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ - public boolean isSetIsTemplate() { - return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } + throw new IllegalStateException(); } - public void setIsTemplateIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); - } + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } - public long getFilesize() { - return this.filesize; + switch (field) { + case SUCCESS: + return isSetSuccess(); + } + throw new IllegalStateException(); } - public writeVLdata_args setFilesize(long filesize) { - this.filesize = filesize; - setFilesizeIsSet(true); - return this; + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof setInstitution_result) + return this.equals((setInstitution_result)that); + return false; } - public void unsetFilesize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } + public boolean equals(setInstitution_result that) { + if (that == null) + return false; - /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ - public boolean isSetFilesize() { - return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } + 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; + } - public void setFilesizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + return true; } - public long getShareMode() { - return this.shareMode; + @Override + public int hashCode() { + return 0; } - public writeVLdata_args setShareMode(long shareMode) { - this.shareMode = shareMode; - setShareModeIsSet(true); - return this; - } + @Override + public int compareTo(setInstitution_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } - public void unsetShareMode() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); - } + int lastComparison = 0; - /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ - public boolean isSetShareMode() { - return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; } - public void setShareModeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); } - public String getOs() { - return this.os; + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); } - public writeVLdata_args setOs(String os) { - this.os = os; - return this; - } + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } - public void unsetOs() { - this.os = null; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("setInstitution_result("); + boolean first = true; - /** Returns true if field os is set (has been assigned a value) and false otherwise */ - public boolean isSetOs() { - return this.os != null; - } - - public void setOsIsSet(boolean value) { - if (!value) { - this.os = null; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); } + first = false; + sb.append(")"); + return sb.toString(); } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case IMAGENAME: - if (value == null) { - unsetImagename(); - } else { - setImagename((String)value); - } - break; - - case DESC: - if (value == null) { - unsetDesc(); - } else { - setDesc((String)value); - } - break; - - case LOGIN: - if (value == null) { - unsetLogin(); - } else { - setLogin((String)value); - } - break; - - case FIRSTNAME: - if (value == null) { - unsetFirstname(); - } else { - setFirstname((String)value); - } - break; + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } - case LASTNAME: - if (value == null) { - unsetLastname(); - } else { - setLastname((String)value); - } - break; + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } - case UNIVERSITY: - if (value == null) { - unsetUniversity(); - } else { - setUniversity((String)value); - } - break; + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } - case MAIL: - if (value == null) { - unsetMail(); - } else { - setMail((String)value); - } - break; + private static class setInstitution_resultStandardSchemeFactory implements SchemeFactory { + public setInstitution_resultStandardScheme getScheme() { + return new setInstitution_resultStandardScheme(); + } + } - case TEL: - if (value == null) { - unsetTel(); - } else { - setTel((String)value); - } - break; + private static class setInstitution_resultStandardScheme extends StandardScheme { - case FAK: - if (value == null) { - unsetFak(); - } else { - setFak((String)value); + public void read(org.apache.thrift.protocol.TProtocol iprot, setInstitution_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } - break; + iprot.readStructEnd(); - case LICENSE: - if (value == null) { - unsetLicense(); - } else { - setLicense((Boolean)value); - } - break; + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } - case INTERNET: - if (value == null) { - unsetInternet(); - } else { - setInternet((Boolean)value); - } - break; + public void write(org.apache.thrift.protocol.TProtocol oprot, setInstitution_result struct) throws org.apache.thrift.TException { + struct.validate(); - case RAM: - if (value == null) { - unsetRam(); - } else { - setRam((Long)value); + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeString(struct.success); + oprot.writeFieldEnd(); } - break; + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } - case CPU: - if (value == null) { - unsetCpu(); - } else { - setCpu((Long)value); - } - break; + } - case IMAGE_PATH: - if (value == null) { - unsetImagePath(); - } else { - setImagePath((String)value); - } - break; + private static class setInstitution_resultTupleSchemeFactory implements SchemeFactory { + public setInstitution_resultTupleScheme getScheme() { + return new setInstitution_resultTupleScheme(); + } + } - case IS_TEMPLATE: - if (value == null) { - unsetIsTemplate(); - } else { - setIsTemplate((Boolean)value); - } - break; + private static class setInstitution_resultTupleScheme extends TupleScheme { - case FILESIZE: - if (value == null) { - unsetFilesize(); - } else { - setFilesize((Long)value); + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, setInstitution_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); } - break; - - case SHARE_MODE: - if (value == null) { - unsetShareMode(); - } else { - setShareMode((Long)value); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeString(struct.success); } - break; + } - case OS: - if (value == null) { - unsetOs(); - } else { - setOs((String)value); + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, setInstitution_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); } - break; - } } - public Object getFieldValue(_Fields field) { - switch (field) { - case IMAGENAME: - return getImagename(); - - case DESC: - return getDesc(); + } - case LOGIN: - return getLogin(); + public static class writeVLdata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_args"); - case FIRSTNAME: - return getFirstname(); + private static final org.apache.thrift.protocol.TField IMAGENAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imagename", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("desc", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField UNIVERSITY_FIELD_DESC = new org.apache.thrift.protocol.TField("university", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("Mail", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField TEL_FIELD_DESC = new org.apache.thrift.protocol.TField("Tel", org.apache.thrift.protocol.TType.STRING, (short)8); + private static final org.apache.thrift.protocol.TField FAK_FIELD_DESC = new org.apache.thrift.protocol.TField("Fak", org.apache.thrift.protocol.TType.STRING, (short)9); + private static final org.apache.thrift.protocol.TField LICENSE_FIELD_DESC = new org.apache.thrift.protocol.TField("license", org.apache.thrift.protocol.TType.BOOL, (short)10); + private static final org.apache.thrift.protocol.TField INTERNET_FIELD_DESC = new org.apache.thrift.protocol.TField("internet", org.apache.thrift.protocol.TType.BOOL, (short)11); + private static final org.apache.thrift.protocol.TField RAM_FIELD_DESC = new org.apache.thrift.protocol.TField("ram", org.apache.thrift.protocol.TType.I64, (short)12); + private static final org.apache.thrift.protocol.TField CPU_FIELD_DESC = new org.apache.thrift.protocol.TField("cpu", org.apache.thrift.protocol.TType.I64, (short)13); + private static final org.apache.thrift.protocol.TField IMAGE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("imagePath", org.apache.thrift.protocol.TType.STRING, (short)14); + private static final org.apache.thrift.protocol.TField IS_TEMPLATE_FIELD_DESC = new org.apache.thrift.protocol.TField("isTemplate", org.apache.thrift.protocol.TType.BOOL, (short)15); + private static final org.apache.thrift.protocol.TField FILESIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("filesize", org.apache.thrift.protocol.TType.I64, (short)16); + private static final org.apache.thrift.protocol.TField SHARE_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("shareMode", org.apache.thrift.protocol.TType.I64, (short)17); + private static final org.apache.thrift.protocol.TField OS_FIELD_DESC = new org.apache.thrift.protocol.TField("os", org.apache.thrift.protocol.TType.STRING, (short)18); - case LASTNAME: - return getLastname(); + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeVLdata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeVLdata_argsTupleSchemeFactory()); + } - case UNIVERSITY: + public String imagename; // required + public String desc; // required + public String login; // required + public String firstname; // required + public String lastname; // required + public String university; // required + public String Mail; // required + public String Tel; // required + public String Fak; // required + public boolean license; // required + public boolean internet; // required + public long ram; // required + public long cpu; // required + public String imagePath; // required + public boolean isTemplate; // required + public long filesize; // required + public long shareMode; // required + public String os; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + IMAGENAME((short)1, "imagename"), + DESC((short)2, "desc"), + LOGIN((short)3, "login"), + FIRSTNAME((short)4, "firstname"), + LASTNAME((short)5, "lastname"), + UNIVERSITY((short)6, "university"), + MAIL((short)7, "Mail"), + TEL((short)8, "Tel"), + FAK((short)9, "Fak"), + LICENSE((short)10, "license"), + INTERNET((short)11, "internet"), + RAM((short)12, "ram"), + CPU((short)13, "cpu"), + IMAGE_PATH((short)14, "imagePath"), + IS_TEMPLATE((short)15, "isTemplate"), + FILESIZE((short)16, "filesize"), + SHARE_MODE((short)17, "shareMode"), + OS((short)18, "os"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // IMAGENAME + return IMAGENAME; + case 2: // DESC + return DESC; + case 3: // LOGIN + return LOGIN; + case 4: // FIRSTNAME + return FIRSTNAME; + case 5: // LASTNAME + return LASTNAME; + case 6: // UNIVERSITY + return UNIVERSITY; + case 7: // MAIL + return MAIL; + case 8: // TEL + return TEL; + case 9: // FAK + return FAK; + case 10: // LICENSE + return LICENSE; + case 11: // INTERNET + return INTERNET; + case 12: // RAM + return RAM; + case 13: // CPU + return CPU; + case 14: // IMAGE_PATH + return IMAGE_PATH; + case 15: // IS_TEMPLATE + return IS_TEMPLATE; + case 16: // FILESIZE + return FILESIZE; + case 17: // SHARE_MODE + return SHARE_MODE; + case 18: // OS + return OS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __LICENSE_ISSET_ID = 0; + private static final int __INTERNET_ISSET_ID = 1; + private static final int __RAM_ISSET_ID = 2; + private static final int __CPU_ISSET_ID = 3; + private static final int __ISTEMPLATE_ISSET_ID = 4; + private static final int __FILESIZE_ISSET_ID = 5; + private static final int __SHAREMODE_ISSET_ID = 6; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.IMAGENAME, new org.apache.thrift.meta_data.FieldMetaData("imagename", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DESC, new org.apache.thrift.meta_data.FieldMetaData("desc", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.UNIVERSITY, new org.apache.thrift.meta_data.FieldMetaData("university", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("Mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TEL, new org.apache.thrift.meta_data.FieldMetaData("Tel", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FAK, new org.apache.thrift.meta_data.FieldMetaData("Fak", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LICENSE, new org.apache.thrift.meta_data.FieldMetaData("license", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.INTERNET, new org.apache.thrift.meta_data.FieldMetaData("internet", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.RAM, new org.apache.thrift.meta_data.FieldMetaData("ram", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.CPU, new org.apache.thrift.meta_data.FieldMetaData("cpu", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.IMAGE_PATH, new org.apache.thrift.meta_data.FieldMetaData("imagePath", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.FILESIZE, new org.apache.thrift.meta_data.FieldMetaData("filesize", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.SHARE_MODE, new org.apache.thrift.meta_data.FieldMetaData("shareMode", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "int"))); + tmpMap.put(_Fields.OS, new org.apache.thrift.meta_data.FieldMetaData("os", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_args.class, metaDataMap); + } + + public writeVLdata_args() { + } + + public writeVLdata_args( + String imagename, + String desc, + String login, + String firstname, + String lastname, + String university, + String Mail, + String Tel, + String Fak, + boolean license, + boolean internet, + long ram, + long cpu, + String imagePath, + boolean isTemplate, + long filesize, + long shareMode, + String os) + { + this(); + this.imagename = imagename; + this.desc = desc; + this.login = login; + this.firstname = firstname; + this.lastname = lastname; + this.university = university; + this.Mail = Mail; + this.Tel = Tel; + this.Fak = Fak; + this.license = license; + setLicenseIsSet(true); + this.internet = internet; + setInternetIsSet(true); + this.ram = ram; + setRamIsSet(true); + this.cpu = cpu; + setCpuIsSet(true); + this.imagePath = imagePath; + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); + this.filesize = filesize; + setFilesizeIsSet(true); + this.shareMode = shareMode; + setShareModeIsSet(true); + this.os = os; + } + + /** + * Performs a deep copy on other. + */ + public writeVLdata_args(writeVLdata_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetImagename()) { + this.imagename = other.imagename; + } + if (other.isSetDesc()) { + this.desc = other.desc; + } + if (other.isSetLogin()) { + this.login = other.login; + } + if (other.isSetFirstname()) { + this.firstname = other.firstname; + } + if (other.isSetLastname()) { + this.lastname = other.lastname; + } + if (other.isSetUniversity()) { + this.university = other.university; + } + if (other.isSetMail()) { + this.Mail = other.Mail; + } + if (other.isSetTel()) { + this.Tel = other.Tel; + } + if (other.isSetFak()) { + this.Fak = other.Fak; + } + this.license = other.license; + this.internet = other.internet; + this.ram = other.ram; + this.cpu = other.cpu; + if (other.isSetImagePath()) { + this.imagePath = other.imagePath; + } + this.isTemplate = other.isTemplate; + this.filesize = other.filesize; + this.shareMode = other.shareMode; + if (other.isSetOs()) { + this.os = other.os; + } + } + + public writeVLdata_args deepCopy() { + return new writeVLdata_args(this); + } + + @Override + public void clear() { + this.imagename = null; + this.desc = null; + this.login = null; + this.firstname = null; + this.lastname = null; + this.university = null; + this.Mail = null; + this.Tel = null; + this.Fak = null; + setLicenseIsSet(false); + this.license = false; + setInternetIsSet(false); + this.internet = false; + setRamIsSet(false); + this.ram = 0; + setCpuIsSet(false); + this.cpu = 0; + this.imagePath = null; + setIsTemplateIsSet(false); + this.isTemplate = false; + setFilesizeIsSet(false); + this.filesize = 0; + setShareModeIsSet(false); + this.shareMode = 0; + this.os = null; + } + + public String getImagename() { + return this.imagename; + } + + public writeVLdata_args setImagename(String imagename) { + this.imagename = imagename; + return this; + } + + public void unsetImagename() { + this.imagename = null; + } + + /** Returns true if field imagename is set (has been assigned a value) and false otherwise */ + public boolean isSetImagename() { + return this.imagename != null; + } + + public void setImagenameIsSet(boolean value) { + if (!value) { + this.imagename = null; + } + } + + public String getDesc() { + return this.desc; + } + + public writeVLdata_args setDesc(String desc) { + this.desc = desc; + return this; + } + + public void unsetDesc() { + this.desc = null; + } + + /** Returns true if field desc is set (has been assigned a value) and false otherwise */ + public boolean isSetDesc() { + return this.desc != null; + } + + public void setDescIsSet(boolean value) { + if (!value) { + this.desc = null; + } + } + + public String getLogin() { + return this.login; + } + + public writeVLdata_args setLogin(String login) { + this.login = login; + return this; + } + + public void unsetLogin() { + this.login = null; + } + + /** Returns true if field login is set (has been assigned a value) and false otherwise */ + public boolean isSetLogin() { + return this.login != null; + } + + public void setLoginIsSet(boolean value) { + if (!value) { + this.login = null; + } + } + + public String getFirstname() { + return this.firstname; + } + + public writeVLdata_args setFirstname(String firstname) { + this.firstname = firstname; + return this; + } + + public void unsetFirstname() { + this.firstname = null; + } + + /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ + public boolean isSetFirstname() { + return this.firstname != null; + } + + public void setFirstnameIsSet(boolean value) { + if (!value) { + this.firstname = null; + } + } + + public String getLastname() { + return this.lastname; + } + + public writeVLdata_args setLastname(String lastname) { + this.lastname = lastname; + return this; + } + + public void unsetLastname() { + this.lastname = null; + } + + /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ + public boolean isSetLastname() { + return this.lastname != null; + } + + public void setLastnameIsSet(boolean value) { + if (!value) { + this.lastname = null; + } + } + + public String getUniversity() { + return this.university; + } + + public writeVLdata_args setUniversity(String university) { + this.university = university; + return this; + } + + public void unsetUniversity() { + this.university = null; + } + + /** Returns true if field university is set (has been assigned a value) and false otherwise */ + public boolean isSetUniversity() { + return this.university != null; + } + + public void setUniversityIsSet(boolean value) { + if (!value) { + this.university = null; + } + } + + public String getMail() { + return this.Mail; + } + + public writeVLdata_args setMail(String Mail) { + this.Mail = Mail; + return this; + } + + public void unsetMail() { + this.Mail = null; + } + + /** Returns true if field Mail is set (has been assigned a value) and false otherwise */ + public boolean isSetMail() { + return this.Mail != null; + } + + public void setMailIsSet(boolean value) { + if (!value) { + this.Mail = null; + } + } + + public String getTel() { + return this.Tel; + } + + public writeVLdata_args setTel(String Tel) { + this.Tel = Tel; + return this; + } + + public void unsetTel() { + this.Tel = null; + } + + /** Returns true if field Tel is set (has been assigned a value) and false otherwise */ + public boolean isSetTel() { + return this.Tel != null; + } + + public void setTelIsSet(boolean value) { + if (!value) { + this.Tel = null; + } + } + + public String getFak() { + return this.Fak; + } + + public writeVLdata_args setFak(String Fak) { + this.Fak = Fak; + return this; + } + + public void unsetFak() { + this.Fak = null; + } + + /** Returns true if field Fak is set (has been assigned a value) and false otherwise */ + public boolean isSetFak() { + return this.Fak != null; + } + + public void setFakIsSet(boolean value) { + if (!value) { + this.Fak = null; + } + } + + public boolean isLicense() { + return this.license; + } + + public writeVLdata_args setLicense(boolean license) { + this.license = license; + setLicenseIsSet(true); + return this; + } + + public void unsetLicense() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LICENSE_ISSET_ID); + } + + /** Returns true if field license is set (has been assigned a value) and false otherwise */ + public boolean isSetLicense() { + return EncodingUtils.testBit(__isset_bitfield, __LICENSE_ISSET_ID); + } + + public void setLicenseIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LICENSE_ISSET_ID, value); + } + + public boolean isInternet() { + return this.internet; + } + + public writeVLdata_args setInternet(boolean internet) { + this.internet = internet; + setInternetIsSet(true); + return this; + } + + public void unsetInternet() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __INTERNET_ISSET_ID); + } + + /** Returns true if field internet is set (has been assigned a value) and false otherwise */ + public boolean isSetInternet() { + return EncodingUtils.testBit(__isset_bitfield, __INTERNET_ISSET_ID); + } + + public void setInternetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __INTERNET_ISSET_ID, value); + } + + public long getRam() { + return this.ram; + } + + public writeVLdata_args setRam(long ram) { + this.ram = ram; + setRamIsSet(true); + return this; + } + + public void unsetRam() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RAM_ISSET_ID); + } + + /** Returns true if field ram is set (has been assigned a value) and false otherwise */ + public boolean isSetRam() { + return EncodingUtils.testBit(__isset_bitfield, __RAM_ISSET_ID); + } + + public void setRamIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RAM_ISSET_ID, value); + } + + public long getCpu() { + return this.cpu; + } + + public writeVLdata_args setCpu(long cpu) { + this.cpu = cpu; + setCpuIsSet(true); + return this; + } + + public void unsetCpu() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CPU_ISSET_ID); + } + + /** Returns true if field cpu is set (has been assigned a value) and false otherwise */ + public boolean isSetCpu() { + return EncodingUtils.testBit(__isset_bitfield, __CPU_ISSET_ID); + } + + public void setCpuIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CPU_ISSET_ID, value); + } + + public String getImagePath() { + return this.imagePath; + } + + public writeVLdata_args setImagePath(String imagePath) { + this.imagePath = imagePath; + return this; + } + + public void unsetImagePath() { + this.imagePath = null; + } + + /** Returns true if field imagePath is set (has been assigned a value) and false otherwise */ + public boolean isSetImagePath() { + return this.imagePath != null; + } + + public void setImagePathIsSet(boolean value) { + if (!value) { + this.imagePath = null; + } + } + + public boolean isIsTemplate() { + return this.isTemplate; + } + + public writeVLdata_args setIsTemplate(boolean isTemplate) { + this.isTemplate = isTemplate; + setIsTemplateIsSet(true); + return this; + } + + public void unsetIsTemplate() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } + + /** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */ + public boolean isSetIsTemplate() { + return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID); + } + + public void setIsTemplateIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value); + } + + public long getFilesize() { + return this.filesize; + } + + public writeVLdata_args setFilesize(long filesize) { + this.filesize = filesize; + setFilesizeIsSet(true); + return this; + } + + public void unsetFilesize() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } + + /** Returns true if field filesize is set (has been assigned a value) and false otherwise */ + public boolean isSetFilesize() { + return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } + + public void setFilesizeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + } + + public long getShareMode() { + return this.shareMode; + } + + public writeVLdata_args setShareMode(long shareMode) { + this.shareMode = shareMode; + setShareModeIsSet(true); + return this; + } + + public void unsetShareMode() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + } + + /** Returns true if field shareMode is set (has been assigned a value) and false otherwise */ + public boolean isSetShareMode() { + return EncodingUtils.testBit(__isset_bitfield, __SHAREMODE_ISSET_ID); + } + + public void setShareModeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SHAREMODE_ISSET_ID, value); + } + + public String getOs() { + return this.os; + } + + public writeVLdata_args setOs(String os) { + this.os = os; + return this; + } + + public void unsetOs() { + this.os = null; + } + + /** Returns true if field os is set (has been assigned a value) and false otherwise */ + public boolean isSetOs() { + return this.os != null; + } + + public void setOsIsSet(boolean value) { + if (!value) { + this.os = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case IMAGENAME: + if (value == null) { + unsetImagename(); + } else { + setImagename((String)value); + } + break; + + case DESC: + if (value == null) { + unsetDesc(); + } else { + setDesc((String)value); + } + break; + + case LOGIN: + if (value == null) { + unsetLogin(); + } else { + setLogin((String)value); + } + break; + + case FIRSTNAME: + if (value == null) { + unsetFirstname(); + } else { + setFirstname((String)value); + } + break; + + case LASTNAME: + if (value == null) { + unsetLastname(); + } else { + setLastname((String)value); + } + break; + + case UNIVERSITY: + if (value == null) { + unsetUniversity(); + } else { + setUniversity((String)value); + } + break; + + case MAIL: + if (value == null) { + unsetMail(); + } else { + setMail((String)value); + } + break; + + case TEL: + if (value == null) { + unsetTel(); + } else { + setTel((String)value); + } + break; + + case FAK: + if (value == null) { + unsetFak(); + } else { + setFak((String)value); + } + break; + + case LICENSE: + if (value == null) { + unsetLicense(); + } else { + setLicense((Boolean)value); + } + break; + + case INTERNET: + if (value == null) { + unsetInternet(); + } else { + setInternet((Boolean)value); + } + break; + + case RAM: + if (value == null) { + unsetRam(); + } else { + setRam((Long)value); + } + break; + + case CPU: + if (value == null) { + unsetCpu(); + } else { + setCpu((Long)value); + } + break; + + case IMAGE_PATH: + if (value == null) { + unsetImagePath(); + } else { + setImagePath((String)value); + } + break; + + case IS_TEMPLATE: + if (value == null) { + unsetIsTemplate(); + } else { + setIsTemplate((Boolean)value); + } + break; + + case FILESIZE: + if (value == null) { + unsetFilesize(); + } else { + setFilesize((Long)value); + } + break; + + case SHARE_MODE: + if (value == null) { + unsetShareMode(); + } else { + setShareMode((Long)value); + } + break; + + case OS: + if (value == null) { + unsetOs(); + } else { + setOs((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case IMAGENAME: + return getImagename(); + + case DESC: + return getDesc(); + + case LOGIN: + return getLogin(); + + case FIRSTNAME: + return getFirstname(); + + case LASTNAME: + return getLastname(); + + case UNIVERSITY: return getUniversity(); - case MAIL: - return getMail(); + case MAIL: + return getMail(); + + case TEL: + return getTel(); + + case FAK: + return getFak(); + + case LICENSE: + return Boolean.valueOf(isLicense()); + + case INTERNET: + return Boolean.valueOf(isInternet()); + + case RAM: + return Long.valueOf(getRam()); + + case CPU: + return Long.valueOf(getCpu()); + + case IMAGE_PATH: + return getImagePath(); + + case IS_TEMPLATE: + return Boolean.valueOf(isIsTemplate()); + + case FILESIZE: + return Long.valueOf(getFilesize()); + + case SHARE_MODE: + return Long.valueOf(getShareMode()); + + case OS: + return getOs(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case IMAGENAME: + return isSetImagename(); + case DESC: + return isSetDesc(); + case LOGIN: + return isSetLogin(); + case FIRSTNAME: + return isSetFirstname(); + case LASTNAME: + return isSetLastname(); + case UNIVERSITY: + return isSetUniversity(); + case MAIL: + return isSetMail(); + case TEL: + return isSetTel(); + case FAK: + return isSetFak(); + case LICENSE: + return isSetLicense(); + case INTERNET: + return isSetInternet(); + case RAM: + return isSetRam(); + case CPU: + return isSetCpu(); + case IMAGE_PATH: + return isSetImagePath(); + case IS_TEMPLATE: + return isSetIsTemplate(); + case FILESIZE: + return isSetFilesize(); + case SHARE_MODE: + return isSetShareMode(); + case OS: + return isSetOs(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeVLdata_args) + return this.equals((writeVLdata_args)that); + return false; + } + + public boolean equals(writeVLdata_args that) { + if (that == null) + return false; + + boolean this_present_imagename = true && this.isSetImagename(); + boolean that_present_imagename = true && that.isSetImagename(); + if (this_present_imagename || that_present_imagename) { + if (!(this_present_imagename && that_present_imagename)) + return false; + if (!this.imagename.equals(that.imagename)) + return false; + } + + boolean this_present_desc = true && this.isSetDesc(); + boolean that_present_desc = true && that.isSetDesc(); + if (this_present_desc || that_present_desc) { + if (!(this_present_desc && that_present_desc)) + return false; + if (!this.desc.equals(that.desc)) + return false; + } + + boolean this_present_login = true && this.isSetLogin(); + boolean that_present_login = true && that.isSetLogin(); + if (this_present_login || that_present_login) { + if (!(this_present_login && that_present_login)) + return false; + if (!this.login.equals(that.login)) + return false; + } + + boolean this_present_firstname = true && this.isSetFirstname(); + boolean that_present_firstname = true && that.isSetFirstname(); + if (this_present_firstname || that_present_firstname) { + if (!(this_present_firstname && that_present_firstname)) + return false; + if (!this.firstname.equals(that.firstname)) + return false; + } + + boolean this_present_lastname = true && this.isSetLastname(); + boolean that_present_lastname = true && that.isSetLastname(); + if (this_present_lastname || that_present_lastname) { + if (!(this_present_lastname && that_present_lastname)) + return false; + if (!this.lastname.equals(that.lastname)) + return false; + } + + boolean this_present_university = true && this.isSetUniversity(); + boolean that_present_university = true && that.isSetUniversity(); + if (this_present_university || that_present_university) { + if (!(this_present_university && that_present_university)) + return false; + if (!this.university.equals(that.university)) + return false; + } + + boolean this_present_Mail = true && this.isSetMail(); + boolean that_present_Mail = true && that.isSetMail(); + if (this_present_Mail || that_present_Mail) { + if (!(this_present_Mail && that_present_Mail)) + return false; + if (!this.Mail.equals(that.Mail)) + return false; + } + + boolean this_present_Tel = true && this.isSetTel(); + boolean that_present_Tel = true && that.isSetTel(); + if (this_present_Tel || that_present_Tel) { + if (!(this_present_Tel && that_present_Tel)) + return false; + if (!this.Tel.equals(that.Tel)) + return false; + } + + boolean this_present_Fak = true && this.isSetFak(); + boolean that_present_Fak = true && that.isSetFak(); + if (this_present_Fak || that_present_Fak) { + if (!(this_present_Fak && that_present_Fak)) + return false; + if (!this.Fak.equals(that.Fak)) + return false; + } + + boolean this_present_license = true; + boolean that_present_license = true; + if (this_present_license || that_present_license) { + if (!(this_present_license && that_present_license)) + return false; + if (this.license != that.license) + return false; + } + + boolean this_present_internet = true; + boolean that_present_internet = true; + if (this_present_internet || that_present_internet) { + if (!(this_present_internet && that_present_internet)) + return false; + if (this.internet != that.internet) + return false; + } + + boolean this_present_ram = true; + boolean that_present_ram = true; + if (this_present_ram || that_present_ram) { + if (!(this_present_ram && that_present_ram)) + return false; + if (this.ram != that.ram) + return false; + } + + boolean this_present_cpu = true; + boolean that_present_cpu = true; + if (this_present_cpu || that_present_cpu) { + if (!(this_present_cpu && that_present_cpu)) + return false; + if (this.cpu != that.cpu) + return false; + } + + boolean this_present_imagePath = true && this.isSetImagePath(); + boolean that_present_imagePath = true && that.isSetImagePath(); + if (this_present_imagePath || that_present_imagePath) { + if (!(this_present_imagePath && that_present_imagePath)) + return false; + if (!this.imagePath.equals(that.imagePath)) + return false; + } + + boolean this_present_isTemplate = true; + boolean that_present_isTemplate = true; + if (this_present_isTemplate || that_present_isTemplate) { + if (!(this_present_isTemplate && that_present_isTemplate)) + return false; + if (this.isTemplate != that.isTemplate) + return false; + } + + boolean this_present_filesize = true; + boolean that_present_filesize = true; + if (this_present_filesize || that_present_filesize) { + if (!(this_present_filesize && that_present_filesize)) + return false; + if (this.filesize != that.filesize) + return false; + } + + boolean this_present_shareMode = true; + boolean that_present_shareMode = true; + if (this_present_shareMode || that_present_shareMode) { + if (!(this_present_shareMode && that_present_shareMode)) + return false; + if (this.shareMode != that.shareMode) + return false; + } + + boolean this_present_os = true && this.isSetOs(); + boolean that_present_os = true && that.isSetOs(); + if (this_present_os || that_present_os) { + if (!(this_present_os && that_present_os)) + return false; + if (!this.os.equals(that.os)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(writeVLdata_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImagename()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDesc()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLogin()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, other.login); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFirstname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLastname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUniversity()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMail()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTel()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFak()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLicense()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInternet()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRam()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetCpu()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImagePath()).compareTo(other.isSetImagePath()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImagePath()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagePath, other.imagePath); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIsTemplate()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilesize()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetShareMode()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("writeVLdata_args("); + boolean first = true; + + sb.append("imagename:"); + if (this.imagename == null) { + sb.append("null"); + } else { + sb.append(this.imagename); + } + first = false; + if (!first) sb.append(", "); + sb.append("desc:"); + if (this.desc == null) { + sb.append("null"); + } else { + sb.append(this.desc); + } + first = false; + if (!first) sb.append(", "); + sb.append("login:"); + if (this.login == null) { + sb.append("null"); + } else { + sb.append(this.login); + } + first = false; + if (!first) sb.append(", "); + sb.append("firstname:"); + if (this.firstname == null) { + sb.append("null"); + } else { + sb.append(this.firstname); + } + first = false; + if (!first) sb.append(", "); + sb.append("lastname:"); + if (this.lastname == null) { + sb.append("null"); + } else { + sb.append(this.lastname); + } + first = false; + if (!first) sb.append(", "); + sb.append("university:"); + if (this.university == null) { + sb.append("null"); + } else { + sb.append(this.university); + } + first = false; + if (!first) sb.append(", "); + sb.append("Mail:"); + if (this.Mail == null) { + sb.append("null"); + } else { + sb.append(this.Mail); + } + first = false; + if (!first) sb.append(", "); + sb.append("Tel:"); + if (this.Tel == null) { + sb.append("null"); + } else { + sb.append(this.Tel); + } + first = false; + if (!first) sb.append(", "); + sb.append("Fak:"); + if (this.Fak == null) { + sb.append("null"); + } else { + sb.append(this.Fak); + } + first = false; + if (!first) sb.append(", "); + sb.append("license:"); + sb.append(this.license); + first = false; + if (!first) sb.append(", "); + sb.append("internet:"); + sb.append(this.internet); + first = false; + if (!first) sb.append(", "); + sb.append("ram:"); + sb.append(this.ram); + first = false; + if (!first) sb.append(", "); + sb.append("cpu:"); + sb.append(this.cpu); + first = false; + if (!first) sb.append(", "); + sb.append("imagePath:"); + if (this.imagePath == null) { + sb.append("null"); + } else { + sb.append(this.imagePath); + } + first = false; + if (!first) sb.append(", "); + sb.append("isTemplate:"); + sb.append(this.isTemplate); + first = false; + if (!first) sb.append(", "); + sb.append("filesize:"); + sb.append(this.filesize); + first = false; + if (!first) sb.append(", "); + sb.append("shareMode:"); + sb.append(this.shareMode); + first = false; + if (!first) sb.append(", "); + sb.append("os:"); + if (this.os == null) { + sb.append("null"); + } else { + sb.append(this.os); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class writeVLdata_argsStandardSchemeFactory implements SchemeFactory { + public writeVLdata_argsStandardScheme getScheme() { + return new writeVLdata_argsStandardScheme(); + } + } + + private static class writeVLdata_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // IMAGENAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // DESC + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // LOGIN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.login = iprot.readString(); + struct.setLoginIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FIRSTNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.firstname = iprot.readString(); + struct.setFirstnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LASTNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lastname = iprot.readString(); + struct.setLastnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // UNIVERSITY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // MAIL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Mail = iprot.readString(); + struct.setMailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // TEL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // FAK + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // LICENSE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // INTERNET + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 12: // RAM + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 13: // CPU + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 14: // IMAGE_PATH + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imagePath = iprot.readString(); + struct.setImagePathIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 15: // IS_TEMPLATE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 16: // FILESIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 17: // SHARE_MODE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 18: // OS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.imagename != null) { + oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); + oprot.writeString(struct.imagename); + oprot.writeFieldEnd(); + } + if (struct.desc != null) { + oprot.writeFieldBegin(DESC_FIELD_DESC); + oprot.writeString(struct.desc); + oprot.writeFieldEnd(); + } + if (struct.login != null) { + oprot.writeFieldBegin(LOGIN_FIELD_DESC); + oprot.writeString(struct.login); + oprot.writeFieldEnd(); + } + if (struct.firstname != null) { + oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); + oprot.writeString(struct.firstname); + oprot.writeFieldEnd(); + } + if (struct.lastname != null) { + oprot.writeFieldBegin(LASTNAME_FIELD_DESC); + oprot.writeString(struct.lastname); + oprot.writeFieldEnd(); + } + if (struct.university != null) { + oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); + oprot.writeString(struct.university); + oprot.writeFieldEnd(); + } + if (struct.Mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.Mail); + oprot.writeFieldEnd(); + } + if (struct.Tel != null) { + oprot.writeFieldBegin(TEL_FIELD_DESC); + oprot.writeString(struct.Tel); + oprot.writeFieldEnd(); + } + if (struct.Fak != null) { + oprot.writeFieldBegin(FAK_FIELD_DESC); + oprot.writeString(struct.Fak); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LICENSE_FIELD_DESC); + oprot.writeBool(struct.license); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(INTERNET_FIELD_DESC); + oprot.writeBool(struct.internet); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(RAM_FIELD_DESC); + oprot.writeI64(struct.ram); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(CPU_FIELD_DESC); + oprot.writeI64(struct.cpu); + oprot.writeFieldEnd(); + if (struct.imagePath != null) { + oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); + oprot.writeString(struct.imagePath); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); + oprot.writeBool(struct.isTemplate); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(FILESIZE_FIELD_DESC); + oprot.writeI64(struct.filesize); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); + oprot.writeI64(struct.shareMode); + oprot.writeFieldEnd(); + if (struct.os != null) { + oprot.writeFieldBegin(OS_FIELD_DESC); + oprot.writeString(struct.os); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class writeVLdata_argsTupleSchemeFactory implements SchemeFactory { + public writeVLdata_argsTupleScheme getScheme() { + return new writeVLdata_argsTupleScheme(); + } + } + + private static class writeVLdata_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetImagename()) { + optionals.set(0); + } + if (struct.isSetDesc()) { + optionals.set(1); + } + if (struct.isSetLogin()) { + optionals.set(2); + } + if (struct.isSetFirstname()) { + optionals.set(3); + } + if (struct.isSetLastname()) { + optionals.set(4); + } + if (struct.isSetUniversity()) { + optionals.set(5); + } + if (struct.isSetMail()) { + optionals.set(6); + } + if (struct.isSetTel()) { + optionals.set(7); + } + if (struct.isSetFak()) { + optionals.set(8); + } + if (struct.isSetLicense()) { + optionals.set(9); + } + if (struct.isSetInternet()) { + optionals.set(10); + } + if (struct.isSetRam()) { + optionals.set(11); + } + if (struct.isSetCpu()) { + optionals.set(12); + } + if (struct.isSetImagePath()) { + optionals.set(13); + } + if (struct.isSetIsTemplate()) { + optionals.set(14); + } + if (struct.isSetFilesize()) { + optionals.set(15); + } + if (struct.isSetShareMode()) { + optionals.set(16); + } + if (struct.isSetOs()) { + optionals.set(17); + } + oprot.writeBitSet(optionals, 18); + if (struct.isSetImagename()) { + oprot.writeString(struct.imagename); + } + if (struct.isSetDesc()) { + oprot.writeString(struct.desc); + } + if (struct.isSetLogin()) { + oprot.writeString(struct.login); + } + if (struct.isSetFirstname()) { + oprot.writeString(struct.firstname); + } + if (struct.isSetLastname()) { + oprot.writeString(struct.lastname); + } + if (struct.isSetUniversity()) { + oprot.writeString(struct.university); + } + if (struct.isSetMail()) { + oprot.writeString(struct.Mail); + } + if (struct.isSetTel()) { + oprot.writeString(struct.Tel); + } + if (struct.isSetFak()) { + oprot.writeString(struct.Fak); + } + if (struct.isSetLicense()) { + oprot.writeBool(struct.license); + } + if (struct.isSetInternet()) { + oprot.writeBool(struct.internet); + } + if (struct.isSetRam()) { + oprot.writeI64(struct.ram); + } + if (struct.isSetCpu()) { + oprot.writeI64(struct.cpu); + } + if (struct.isSetImagePath()) { + oprot.writeString(struct.imagePath); + } + if (struct.isSetIsTemplate()) { + oprot.writeBool(struct.isTemplate); + } + if (struct.isSetFilesize()) { + oprot.writeI64(struct.filesize); + } + if (struct.isSetShareMode()) { + oprot.writeI64(struct.shareMode); + } + if (struct.isSetOs()) { + oprot.writeString(struct.os); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(18); + if (incoming.get(0)) { + struct.imagename = iprot.readString(); + struct.setImagenameIsSet(true); + } + if (incoming.get(1)) { + struct.desc = iprot.readString(); + struct.setDescIsSet(true); + } + if (incoming.get(2)) { + struct.login = iprot.readString(); + struct.setLoginIsSet(true); + } + if (incoming.get(3)) { + struct.firstname = iprot.readString(); + struct.setFirstnameIsSet(true); + } + if (incoming.get(4)) { + struct.lastname = iprot.readString(); + struct.setLastnameIsSet(true); + } + if (incoming.get(5)) { + struct.university = iprot.readString(); + struct.setUniversityIsSet(true); + } + if (incoming.get(6)) { + struct.Mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(7)) { + struct.Tel = iprot.readString(); + struct.setTelIsSet(true); + } + if (incoming.get(8)) { + struct.Fak = iprot.readString(); + struct.setFakIsSet(true); + } + if (incoming.get(9)) { + struct.license = iprot.readBool(); + struct.setLicenseIsSet(true); + } + if (incoming.get(10)) { + struct.internet = iprot.readBool(); + struct.setInternetIsSet(true); + } + if (incoming.get(11)) { + struct.ram = iprot.readI64(); + struct.setRamIsSet(true); + } + if (incoming.get(12)) { + struct.cpu = iprot.readI64(); + struct.setCpuIsSet(true); + } + if (incoming.get(13)) { + struct.imagePath = iprot.readString(); + struct.setImagePathIsSet(true); + } + if (incoming.get(14)) { + struct.isTemplate = iprot.readBool(); + struct.setIsTemplateIsSet(true); + } + if (incoming.get(15)) { + struct.filesize = iprot.readI64(); + struct.setFilesizeIsSet(true); + } + if (incoming.get(16)) { + struct.shareMode = iprot.readI64(); + struct.setShareModeIsSet(true); + } + if (incoming.get(17)) { + struct.os = iprot.readString(); + struct.setOsIsSet(true); + } + } + } + + } - case TEL: - return getTel(); + public static class writeVLdata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_result"); - case FAK: - return getFak(); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); - case LICENSE: - return Boolean.valueOf(isLicense()); + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new writeVLdata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeVLdata_resultTupleSchemeFactory()); + } - case INTERNET: - return Boolean.valueOf(isInternet()); + public boolean success; // required - case RAM: - return Long.valueOf(getRam()); + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"); - case CPU: - return Long.valueOf(getCpu()); + private static final Map byName = new HashMap(); - case IMAGE_PATH: - return getImagePath(); + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } - case IS_TEMPLATE: - return Boolean.valueOf(isIsTemplate()); + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + default: + return null; + } + } - case FILESIZE: - return Long.valueOf(getFilesize()); + /** + * 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; + } - case SHARE_MODE: - return Long.valueOf(getShareMode()); + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - case OS: - return getOs(); + private final short _thriftId; + private final String _fieldName; + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; } - throw new IllegalStateException(); - } - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); + public short getThriftFieldId() { + return _thriftId; } - switch (field) { - case IMAGENAME: - return isSetImagename(); - case DESC: - return isSetDesc(); - case LOGIN: - return isSetLogin(); - case FIRSTNAME: - return isSetFirstname(); - case LASTNAME: - return isSetLastname(); - case UNIVERSITY: - return isSetUniversity(); - case MAIL: - return isSetMail(); - case TEL: - return isSetTel(); - case FAK: - return isSetFak(); - case LICENSE: - return isSetLicense(); - case INTERNET: - return isSetInternet(); - case RAM: - return isSetRam(); - case CPU: - return isSetCpu(); - case IMAGE_PATH: - return isSetImagePath(); - case IS_TEMPLATE: - return isSetIsTemplate(); - case FILESIZE: - return isSetFilesize(); - case SHARE_MODE: - return isSetShareMode(); - case OS: - return isSetOs(); + public String getFieldName() { + return _fieldName; } - throw new IllegalStateException(); } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof writeVLdata_args) - return this.equals((writeVLdata_args)that); - return false; + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_result.class, metaDataMap); } - public boolean equals(writeVLdata_args that) { - if (that == null) - return false; + public writeVLdata_result() { + } - boolean this_present_imagename = true && this.isSetImagename(); - boolean that_present_imagename = true && that.isSetImagename(); - if (this_present_imagename || that_present_imagename) { - if (!(this_present_imagename && that_present_imagename)) - return false; - if (!this.imagename.equals(that.imagename)) - return false; - } + public writeVLdata_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); + } - boolean this_present_desc = true && this.isSetDesc(); - boolean that_present_desc = true && that.isSetDesc(); - if (this_present_desc || that_present_desc) { - if (!(this_present_desc && that_present_desc)) - return false; - if (!this.desc.equals(that.desc)) - return false; - } + /** + * Performs a deep copy on other. + */ + public writeVLdata_result(writeVLdata_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + } - boolean this_present_login = true && this.isSetLogin(); - boolean that_present_login = true && that.isSetLogin(); - if (this_present_login || that_present_login) { - if (!(this_present_login && that_present_login)) - return false; - if (!this.login.equals(that.login)) - return false; - } + public writeVLdata_result deepCopy() { + return new writeVLdata_result(this); + } - boolean this_present_firstname = true && this.isSetFirstname(); - boolean that_present_firstname = true && that.isSetFirstname(); - if (this_present_firstname || that_present_firstname) { - if (!(this_present_firstname && that_present_firstname)) - return false; - if (!this.firstname.equals(that.firstname)) - return false; - } + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + } - boolean this_present_lastname = true && this.isSetLastname(); - boolean that_present_lastname = true && that.isSetLastname(); - if (this_present_lastname || that_present_lastname) { - if (!(this_present_lastname && that_present_lastname)) - return false; - if (!this.lastname.equals(that.lastname)) - return false; - } + public boolean isSuccess() { + return this.success; + } - boolean this_present_university = true && this.isSetUniversity(); - boolean that_present_university = true && that.isSetUniversity(); - if (this_present_university || that_present_university) { - if (!(this_present_university && that_present_university)) - return false; - if (!this.university.equals(that.university)) - return false; - } + public writeVLdata_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } - boolean this_present_Mail = true && this.isSetMail(); - boolean that_present_Mail = true && that.isSetMail(); - if (this_present_Mail || that_present_Mail) { - if (!(this_present_Mail && that_present_Mail)) - return false; - if (!this.Mail.equals(that.Mail)) - return false; - } + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } - boolean this_present_Tel = true && this.isSetTel(); - boolean that_present_Tel = true && that.isSetTel(); - if (this_present_Tel || that_present_Tel) { - if (!(this_present_Tel && that_present_Tel)) - return false; - if (!this.Tel.equals(that.Tel)) - return false; - } + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } - boolean this_present_Fak = true && this.isSetFak(); - boolean that_present_Fak = true && that.isSetFak(); - if (this_present_Fak || that_present_Fak) { - if (!(this_present_Fak && that_present_Fak)) - return false; - if (!this.Fak.equals(that.Fak)) - return false; - } + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } - boolean this_present_license = true; - boolean that_present_license = true; - if (this_present_license || that_present_license) { - if (!(this_present_license && that_present_license)) - return false; - if (this.license != that.license) - return false; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; - boolean this_present_internet = true; - boolean that_present_internet = true; - if (this_present_internet || that_present_internet) { - if (!(this_present_internet && that_present_internet)) - return false; - if (this.internet != that.internet) - return false; } + } - boolean this_present_ram = true; - boolean that_present_ram = true; - if (this_present_ram || that_present_ram) { - if (!(this_present_ram && that_present_ram)) - return false; - if (this.ram != that.ram) - return false; - } + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); - boolean this_present_cpu = true; - boolean that_present_cpu = true; - if (this_present_cpu || that_present_cpu) { - if (!(this_present_cpu && that_present_cpu)) - return false; - if (this.cpu != that.cpu) - return false; } + throw new IllegalStateException(); + } - boolean this_present_imagePath = true && this.isSetImagePath(); - boolean that_present_imagePath = true && that.isSetImagePath(); - if (this_present_imagePath || that_present_imagePath) { - if (!(this_present_imagePath && that_present_imagePath)) - return false; - if (!this.imagePath.equals(that.imagePath)) - return false; + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); } - boolean this_present_isTemplate = true; - boolean that_present_isTemplate = true; - if (this_present_isTemplate || that_present_isTemplate) { - if (!(this_present_isTemplate && that_present_isTemplate)) - return false; - if (this.isTemplate != that.isTemplate) - return false; + switch (field) { + case SUCCESS: + return isSetSuccess(); } + throw new IllegalStateException(); + } - boolean this_present_filesize = true; - boolean that_present_filesize = true; - if (this_present_filesize || that_present_filesize) { - if (!(this_present_filesize && that_present_filesize)) - return false; - if (this.filesize != that.filesize) - return false; - } + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof writeVLdata_result) + return this.equals((writeVLdata_result)that); + return false; + } - boolean this_present_shareMode = true; - boolean that_present_shareMode = true; - if (this_present_shareMode || that_present_shareMode) { - if (!(this_present_shareMode && that_present_shareMode)) - return false; - if (this.shareMode != that.shareMode) - return false; - } + public boolean equals(writeVLdata_result that) { + if (that == null) + return false; - boolean this_present_os = true && this.isSetOs(); - boolean that_present_os = true && that.isSetOs(); - if (this_present_os || that_present_os) { - if (!(this_present_os && that_present_os)) + 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.os.equals(that.os)) + if (this.success != that.success) return false; } @@ -7634,329 +9631,403 @@ public class Server { @Override public int hashCode() { return 0; - } - - @Override - public int compareTo(writeVLdata_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetImagename()).compareTo(other.isSetImagename()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImagename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagename, other.imagename); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLogin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, other.login); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFirstname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLastname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUniversity()).compareTo(other.isSetUniversity()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUniversity()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.university, other.university); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMail()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Mail, other.Mail); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTel()).compareTo(other.isSetTel()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Tel, other.Tel); - if (lastComparison != 0) { - return lastComparison; - } + } + + @Override + public int compareTo(writeVLdata_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - lastComparison = Boolean.valueOf(isSetFak()).compareTo(other.isSetFak()); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetFak()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Fak, other.Fak); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLicense()).compareTo(other.isSetLicense()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLicense()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.license, other.license); - if (lastComparison != 0) { - return lastComparison; - } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - lastComparison = Boolean.valueOf(isSetInternet()).compareTo(other.isSetInternet()); - if (lastComparison != 0) { - return lastComparison; + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("writeVLdata_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); } - if (isSetInternet()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.internet, other.internet); - if (lastComparison != 0) { - return lastComparison; - } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); } - lastComparison = Boolean.valueOf(isSetRam()).compareTo(other.isSetRam()); - if (lastComparison != 0) { - return lastComparison; + } + + private static class writeVLdata_resultStandardSchemeFactory implements SchemeFactory { + public writeVLdata_resultStandardScheme getScheme() { + return new writeVLdata_resultStandardScheme(); } - if (isSetRam()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ram, other.ram); - if (lastComparison != 0) { - return lastComparison; + } + + private static class writeVLdata_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); } - lastComparison = Boolean.valueOf(isSetCpu()).compareTo(other.isSetCpu()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCpu()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cpu, other.cpu); - if (lastComparison != 0) { - return lastComparison; + + public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - lastComparison = Boolean.valueOf(isSetImagePath()).compareTo(other.isSetImagePath()); - if (lastComparison != 0) { - return lastComparison; + + } + + private static class writeVLdata_resultTupleSchemeFactory implements SchemeFactory { + public writeVLdata_resultTupleScheme getScheme() { + return new writeVLdata_resultTupleScheme(); } - if (isSetImagePath()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imagePath, other.imagePath); - if (lastComparison != 0) { - return lastComparison; + } + + private static class writeVLdata_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); } } - lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIsTemplate()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTemplate, other.isTemplate); - if (lastComparison != 0) { - return lastComparison; + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); } } - lastComparison = Boolean.valueOf(isSetFilesize()).compareTo(other.isSetFilesize()); - if (lastComparison != 0) { - return lastComparison; + } + + } + + public static class getImageListPermissionWrite_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionWrite_args"); + + private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getImageListPermissionWrite_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionWrite_argsTupleSchemeFactory()); + } + + public String userID; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_ID((short)1, "userID"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } } - if (isSetFilesize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesize, other.filesize); - if (lastComparison != 0) { - return lastComparison; + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_ID + return USER_ID; + default: + return null; } } - lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode()); - if (lastComparison != 0) { - return lastComparison; + + /** + * 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; } - if (isSetShareMode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shareMode, other.shareMode); - if (lastComparison != 0) { - return lastComparison; - } + + /** + * 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; } - lastComparison = Boolean.valueOf(isSetOs()).compareTo(other.isSetOs()); - if (lastComparison != 0) { - return lastComparison; + + public short getThriftFieldId() { + return _thriftId; } - if (isSetOs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.os, other.os); - if (lastComparison != 0) { - return lastComparison; - } + + public String getFieldName() { + return _fieldName; } - return 0; } - public _Fields fieldForId(int fieldId) { - return _Fields.findByThriftId(fieldId); + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_args.class, metaDataMap); } - public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + public getImageListPermissionWrite_args() { } - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + public getImageListPermissionWrite_args( + String userID) + { + this(); + this.userID = userID; + } + + /** + * Performs a deep copy on other. + */ + public getImageListPermissionWrite_args(getImageListPermissionWrite_args other) { + if (other.isSetUserID()) { + this.userID = other.userID; + } + } + + public getImageListPermissionWrite_args deepCopy() { + return new getImageListPermissionWrite_args(this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("writeVLdata_args("); - boolean first = true; + public void clear() { + this.userID = null; + } - sb.append("imagename:"); - if (this.imagename == null) { - sb.append("null"); - } else { - sb.append(this.imagename); - } - first = false; - if (!first) sb.append(", "); - sb.append("desc:"); - if (this.desc == null) { - sb.append("null"); - } else { - sb.append(this.desc); + public String getUserID() { + return this.userID; + } + + public getImageListPermissionWrite_args setUserID(String userID) { + this.userID = userID; + return this; + } + + public void unsetUserID() { + this.userID = null; + } + + /** Returns true if field userID is set (has been assigned a value) and false otherwise */ + public boolean isSetUserID() { + return this.userID != null; + } + + public void setUserIDIsSet(boolean value) { + if (!value) { + this.userID = null; } - first = false; - if (!first) sb.append(", "); - sb.append("login:"); - if (this.login == null) { - sb.append("null"); - } else { - sb.append(this.login); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_ID: + if (value == null) { + unsetUserID(); + } else { + setUserID((String)value); + } + break; + } - first = false; - if (!first) sb.append(", "); - sb.append("firstname:"); - if (this.firstname == null) { - sb.append("null"); - } else { - sb.append(this.firstname); + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_ID: + return getUserID(); + } - first = false; - if (!first) sb.append(", "); - sb.append("lastname:"); - if (this.lastname == null) { - sb.append("null"); - } else { - sb.append(this.lastname); + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); } - first = false; - if (!first) sb.append(", "); - sb.append("university:"); - if (this.university == null) { - sb.append("null"); - } else { - sb.append(this.university); + + switch (field) { + case USER_ID: + return isSetUserID(); } - first = false; - if (!first) sb.append(", "); - sb.append("Mail:"); - if (this.Mail == null) { - sb.append("null"); - } else { - sb.append(this.Mail); + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getImageListPermissionWrite_args) + return this.equals((getImageListPermissionWrite_args)that); + return false; + } + + public boolean equals(getImageListPermissionWrite_args that) { + if (that == null) + return false; + + boolean this_present_userID = true && this.isSetUserID(); + boolean that_present_userID = true && that.isSetUserID(); + if (this_present_userID || that_present_userID) { + if (!(this_present_userID && that_present_userID)) + return false; + if (!this.userID.equals(that.userID)) + return false; } - first = false; - if (!first) sb.append(", "); - sb.append("Tel:"); - if (this.Tel == null) { - sb.append("null"); - } else { - sb.append(this.Tel); + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getImageListPermissionWrite_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - first = false; - if (!first) sb.append(", "); - sb.append("Fak:"); - if (this.Fak == null) { - sb.append("null"); - } else { - sb.append(this.Fak); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); + if (lastComparison != 0) { + return lastComparison; } - first = false; - if (!first) sb.append(", "); - sb.append("license:"); - sb.append(this.license); - first = false; - if (!first) sb.append(", "); - sb.append("internet:"); - sb.append(this.internet); - first = false; - if (!first) sb.append(", "); - sb.append("ram:"); - sb.append(this.ram); - first = false; - if (!first) sb.append(", "); - sb.append("cpu:"); - sb.append(this.cpu); - first = false; - if (!first) sb.append(", "); - sb.append("imagePath:"); - if (this.imagePath == null) { - sb.append("null"); - } else { - sb.append(this.imagePath); + if (isSetUserID()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); + if (lastComparison != 0) { + return lastComparison; + } } - first = false; - if (!first) sb.append(", "); - sb.append("isTemplate:"); - sb.append(this.isTemplate); - first = false; - if (!first) sb.append(", "); - sb.append("filesize:"); - sb.append(this.filesize); - first = false; - if (!first) sb.append(", "); - sb.append("shareMode:"); - sb.append(this.shareMode); - first = false; - if (!first) sb.append(", "); - sb.append("os:"); - if (this.os == null) { + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getImageListPermissionWrite_args("); + boolean first = true; + + sb.append("userID:"); + if (this.userID == null) { sb.append("null"); } else { - sb.append(this.os); + sb.append(this.userID); } first = false; sb.append(")"); @@ -7978,23 +10049,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeVLdata_argsStandardSchemeFactory implements SchemeFactory { - public writeVLdata_argsStandardScheme getScheme() { - return new writeVLdata_argsStandardScheme(); + private static class getImageListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_argsStandardScheme getScheme() { + return new getImageListPermissionWrite_argsStandardScheme(); } } - private static class writeVLdata_argsStandardScheme extends StandardScheme { + private static class getImageListPermissionWrite_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8004,146 +10073,10 @@ public class Server { break; } switch (schemeField.id) { - case 1: // IMAGENAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // DESC - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // LOGIN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // FIRSTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // LASTNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // UNIVERSITY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // MAIL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // TEL - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 9: // FAK - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 10: // LICENSE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 11: // INTERNET - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 12: // RAM - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 13: // CPU - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 14: // IMAGE_PATH - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imagePath = iprot.readString(); - struct.setImagePathIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 15: // IS_TEMPLATE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 16: // FILESIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 17: // SHARE_MODE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 18: // OS + case 1: // USER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.os = iprot.readString(); - struct.setOsIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -8156,87 +10089,16 @@ public class Server { iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.imagename != null) { - oprot.writeFieldBegin(IMAGENAME_FIELD_DESC); - oprot.writeString(struct.imagename); - oprot.writeFieldEnd(); - } - if (struct.desc != null) { - oprot.writeFieldBegin(DESC_FIELD_DESC); - oprot.writeString(struct.desc); - oprot.writeFieldEnd(); - } - if (struct.login != null) { - oprot.writeFieldBegin(LOGIN_FIELD_DESC); - oprot.writeString(struct.login); - oprot.writeFieldEnd(); - } - if (struct.firstname != null) { - oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); - oprot.writeString(struct.firstname); - oprot.writeFieldEnd(); - } - if (struct.lastname != null) { - oprot.writeFieldBegin(LASTNAME_FIELD_DESC); - oprot.writeString(struct.lastname); - oprot.writeFieldEnd(); - } - if (struct.university != null) { - oprot.writeFieldBegin(UNIVERSITY_FIELD_DESC); - oprot.writeString(struct.university); - oprot.writeFieldEnd(); - } - if (struct.Mail != null) { - oprot.writeFieldBegin(MAIL_FIELD_DESC); - oprot.writeString(struct.Mail); - oprot.writeFieldEnd(); - } - if (struct.Tel != null) { - oprot.writeFieldBegin(TEL_FIELD_DESC); - oprot.writeString(struct.Tel); - oprot.writeFieldEnd(); - } - if (struct.Fak != null) { - oprot.writeFieldBegin(FAK_FIELD_DESC); - oprot.writeString(struct.Fak); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(LICENSE_FIELD_DESC); - oprot.writeBool(struct.license); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(INTERNET_FIELD_DESC); - oprot.writeBool(struct.internet); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(RAM_FIELD_DESC); - oprot.writeI64(struct.ram); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(CPU_FIELD_DESC); - oprot.writeI64(struct.cpu); - oprot.writeFieldEnd(); - if (struct.imagePath != null) { - oprot.writeFieldBegin(IMAGE_PATH_FIELD_DESC); - oprot.writeString(struct.imagePath); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(IS_TEMPLATE_FIELD_DESC); - oprot.writeBool(struct.isTemplate); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(FILESIZE_FIELD_DESC); - oprot.writeI64(struct.filesize); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(SHARE_MODE_FIELD_DESC); - oprot.writeI64(struct.shareMode); - oprot.writeFieldEnd(); - if (struct.os != null) { - oprot.writeFieldBegin(OS_FIELD_DESC); - oprot.writeString(struct.os); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userID != null) { + oprot.writeFieldBegin(USER_ID_FIELD_DESC); + oprot.writeString(struct.userID); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8245,222 +10107,52 @@ public class Server { } - private static class writeVLdata_argsTupleSchemeFactory implements SchemeFactory { - public writeVLdata_argsTupleScheme getScheme() { - return new writeVLdata_argsTupleScheme(); + private static class getImageListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_argsTupleScheme getScheme() { + return new getImageListPermissionWrite_argsTupleScheme(); } } - private static class writeVLdata_argsTupleScheme extends TupleScheme { + private static class getImageListPermissionWrite_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetImagename()) { + if (struct.isSetUserID()) { optionals.set(0); } - if (struct.isSetDesc()) { - optionals.set(1); - } - if (struct.isSetLogin()) { - optionals.set(2); - } - if (struct.isSetFirstname()) { - optionals.set(3); - } - if (struct.isSetLastname()) { - optionals.set(4); - } - if (struct.isSetUniversity()) { - optionals.set(5); - } - if (struct.isSetMail()) { - optionals.set(6); - } - if (struct.isSetTel()) { - optionals.set(7); - } - if (struct.isSetFak()) { - optionals.set(8); - } - if (struct.isSetLicense()) { - optionals.set(9); - } - if (struct.isSetInternet()) { - optionals.set(10); - } - if (struct.isSetRam()) { - optionals.set(11); - } - if (struct.isSetCpu()) { - optionals.set(12); - } - if (struct.isSetImagePath()) { - optionals.set(13); - } - if (struct.isSetIsTemplate()) { - optionals.set(14); - } - if (struct.isSetFilesize()) { - optionals.set(15); - } - if (struct.isSetShareMode()) { - optionals.set(16); - } - if (struct.isSetOs()) { - optionals.set(17); - } - oprot.writeBitSet(optionals, 18); - if (struct.isSetImagename()) { - oprot.writeString(struct.imagename); - } - if (struct.isSetDesc()) { - oprot.writeString(struct.desc); - } - if (struct.isSetLogin()) { - oprot.writeString(struct.login); - } - if (struct.isSetFirstname()) { - oprot.writeString(struct.firstname); - } - if (struct.isSetLastname()) { - oprot.writeString(struct.lastname); - } - if (struct.isSetUniversity()) { - oprot.writeString(struct.university); - } - if (struct.isSetMail()) { - oprot.writeString(struct.Mail); - } - if (struct.isSetTel()) { - oprot.writeString(struct.Tel); - } - if (struct.isSetFak()) { - oprot.writeString(struct.Fak); - } - if (struct.isSetLicense()) { - oprot.writeBool(struct.license); - } - if (struct.isSetInternet()) { - oprot.writeBool(struct.internet); - } - if (struct.isSetRam()) { - oprot.writeI64(struct.ram); - } - if (struct.isSetCpu()) { - oprot.writeI64(struct.cpu); - } - if (struct.isSetImagePath()) { - oprot.writeString(struct.imagePath); - } - if (struct.isSetIsTemplate()) { - oprot.writeBool(struct.isTemplate); - } - if (struct.isSetFilesize()) { - oprot.writeI64(struct.filesize); - } - if (struct.isSetShareMode()) { - oprot.writeI64(struct.shareMode); - } - if (struct.isSetOs()) { - oprot.writeString(struct.os); + oprot.writeBitSet(optionals, 1); + if (struct.isSetUserID()) { + oprot.writeString(struct.userID); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(18); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.imagename = iprot.readString(); - struct.setImagenameIsSet(true); - } - if (incoming.get(1)) { - struct.desc = iprot.readString(); - struct.setDescIsSet(true); - } - if (incoming.get(2)) { - struct.login = iprot.readString(); - struct.setLoginIsSet(true); - } - if (incoming.get(3)) { - struct.firstname = iprot.readString(); - struct.setFirstnameIsSet(true); - } - if (incoming.get(4)) { - struct.lastname = iprot.readString(); - struct.setLastnameIsSet(true); - } - if (incoming.get(5)) { - struct.university = iprot.readString(); - struct.setUniversityIsSet(true); - } - if (incoming.get(6)) { - struct.Mail = iprot.readString(); - struct.setMailIsSet(true); - } - if (incoming.get(7)) { - struct.Tel = iprot.readString(); - struct.setTelIsSet(true); - } - if (incoming.get(8)) { - struct.Fak = iprot.readString(); - struct.setFakIsSet(true); - } - if (incoming.get(9)) { - struct.license = iprot.readBool(); - struct.setLicenseIsSet(true); - } - if (incoming.get(10)) { - struct.internet = iprot.readBool(); - struct.setInternetIsSet(true); - } - if (incoming.get(11)) { - struct.ram = iprot.readI64(); - struct.setRamIsSet(true); - } - if (incoming.get(12)) { - struct.cpu = iprot.readI64(); - struct.setCpuIsSet(true); - } - if (incoming.get(13)) { - struct.imagePath = iprot.readString(); - struct.setImagePathIsSet(true); - } - if (incoming.get(14)) { - struct.isTemplate = iprot.readBool(); - struct.setIsTemplateIsSet(true); - } - if (incoming.get(15)) { - struct.filesize = iprot.readI64(); - struct.setFilesizeIsSet(true); - } - if (incoming.get(16)) { - struct.shareMode = iprot.readI64(); - struct.setShareModeIsSet(true); - } - if (incoming.get(17)) { - struct.os = iprot.readString(); - struct.setOsIsSet(true); + struct.userID = iprot.readString(); + struct.setUserIDIsSet(true); } } } } - public static class writeVLdata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeVLdata_result"); + public static class getImageListPermissionWrite_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionWrite_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeVLdata_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeVLdata_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionWrite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionWrite_resultTupleSchemeFactory()); } - public boolean success; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -8521,67 +10213,85 @@ public class Server { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeVLdata_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_result.class, metaDataMap); } - public writeVLdata_result() { + public getImageListPermissionWrite_result() { } - public writeVLdata_result( - boolean success) + public getImageListPermissionWrite_result( + List success) { this(); this.success = success; - setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public writeVLdata_result(writeVLdata_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getImageListPermissionWrite_result(getImageListPermissionWrite_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Image other_element : other.success) { + __this__success.add(new Image(other_element)); + } + this.success = __this__success; + } + } + + public getImageListPermissionWrite_result deepCopy() { + return new getImageListPermissionWrite_result(this); + } + + @Override + public void clear() { + this.success = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public writeVLdata_result deepCopy() { - return new writeVLdata_result(this); + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); } - @Override - public void clear() { - setSuccessIsSet(false); - this.success = false; + public void addToSuccess(Image elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); } - public boolean isSuccess() { + public List getSuccess() { return this.success; } - public writeVLdata_result setSuccess(boolean success) { + public getImageListPermissionWrite_result setSuccess(List success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -8590,7 +10300,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -8600,7 +10310,7 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); } throw new IllegalStateException(); @@ -8623,21 +10333,21 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeVLdata_result) - return this.equals((writeVLdata_result)that); + if (that instanceof getImageListPermissionWrite_result) + return this.equals((getImageListPermissionWrite_result)that); return false; } - public boolean equals(writeVLdata_result that) { + public boolean equals(getImageListPermissionWrite_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + 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 != that.success) + if (!this.success.equals(that.success)) return false; } @@ -8650,7 +10360,7 @@ public class Server { } @Override - public int compareTo(writeVLdata_result other) { + public int compareTo(getImageListPermissionWrite_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -8684,11 +10394,15 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeVLdata_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionWrite_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; sb.append(")"); return sb.toString(); @@ -8709,23 +10423,21 @@ public class Server { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class writeVLdata_resultStandardSchemeFactory implements SchemeFactory { - public writeVLdata_resultStandardScheme getScheme() { - return new writeVLdata_resultStandardScheme(); + private static class getImageListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_resultStandardScheme getScheme() { + return new getImageListPermissionWrite_resultStandardScheme(); } } - private static class writeVLdata_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionWrite_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8736,8 +10448,19 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); + struct.success = new ArrayList(_list0.size); + for (int _i1 = 0; _i1 < _list0.size; ++_i1) + { + Image _elem2; + _elem2 = new Image(); + _elem2.read(iprot); + struct.success.add(_elem2); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -8754,13 +10477,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Image _iter3 : struct.success) + { + _iter3.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8769,16 +10499,16 @@ public class Server { } - private static class writeVLdata_resultTupleSchemeFactory implements SchemeFactory { - public writeVLdata_resultTupleScheme getScheme() { - return new writeVLdata_resultTupleScheme(); + private static class getImageListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionWrite_resultTupleScheme getScheme() { + return new getImageListPermissionWrite_resultTupleScheme(); } } - private static class writeVLdata_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionWrite_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -8786,16 +10516,32 @@ public class Server { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Image _iter4 : struct.success) + { + _iter4.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeVLdata_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list5.size); + for (int _i6 = 0; _i6 < _list5.size; ++_i6) + { + Image _elem7; + _elem7 = new Image(); + _elem7.read(iprot); + struct.success.add(_elem7); + } + } struct.setSuccessIsSet(true); } } @@ -8803,15 +10549,15 @@ public class Server { } - public static class getImageListPermissionWrite_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionWrite_args"); + public static class getImageListPermissionRead_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionRead_args"); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionWrite_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionWrite_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionRead_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionRead_argsTupleSchemeFactory()); } public String userID; // required @@ -8881,13 +10627,13 @@ public class Server { tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_args.class, metaDataMap); } - public getImageListPermissionWrite_args() { + public getImageListPermissionRead_args() { } - public getImageListPermissionWrite_args( + public getImageListPermissionRead_args( String userID) { this(); @@ -8897,14 +10643,14 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionWrite_args(getImageListPermissionWrite_args other) { + public getImageListPermissionRead_args(getImageListPermissionRead_args other) { if (other.isSetUserID()) { this.userID = other.userID; } } - public getImageListPermissionWrite_args deepCopy() { - return new getImageListPermissionWrite_args(this); + public getImageListPermissionRead_args deepCopy() { + return new getImageListPermissionRead_args(this); } @Override @@ -8916,7 +10662,7 @@ public class Server { return this.userID; } - public getImageListPermissionWrite_args setUserID(String userID) { + public getImageListPermissionRead_args setUserID(String userID) { this.userID = userID; return this; } @@ -8975,12 +10721,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionWrite_args) - return this.equals((getImageListPermissionWrite_args)that); + if (that instanceof getImageListPermissionRead_args) + return this.equals((getImageListPermissionRead_args)that); return false; } - public boolean equals(getImageListPermissionWrite_args that) { + public boolean equals(getImageListPermissionRead_args that) { if (that == null) return false; @@ -9002,7 +10748,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionWrite_args other) { + public int compareTo(getImageListPermissionRead_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -9036,7 +10782,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionWrite_args("); + StringBuilder sb = new StringBuilder("getImageListPermissionRead_args("); boolean first = true; sb.append("userID:"); @@ -9071,15 +10817,15 @@ public class Server { } } - private static class getImageListPermissionWrite_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_argsStandardScheme getScheme() { - return new getImageListPermissionWrite_argsStandardScheme(); + private static class getImageListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_argsStandardScheme getScheme() { + return new getImageListPermissionRead_argsStandardScheme(); } } - private static class getImageListPermissionWrite_argsStandardScheme extends StandardScheme { + private static class getImageListPermissionRead_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9108,7 +10854,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -9123,16 +10869,16 @@ public class Server { } - private static class getImageListPermissionWrite_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_argsTupleScheme getScheme() { - return new getImageListPermissionWrite_argsTupleScheme(); + private static class getImageListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_argsTupleScheme getScheme() { + return new getImageListPermissionRead_argsTupleScheme(); } } - private static class getImageListPermissionWrite_argsTupleScheme extends TupleScheme { + private static class getImageListPermissionRead_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { @@ -9145,7 +10891,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -9157,15 +10903,15 @@ public class Server { } - public static class getImageListPermissionWrite_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionWrite_result"); + public static class getImageListPermissionRead_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionRead_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionWrite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionWrite_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionRead_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionRead_resultTupleSchemeFactory()); } public List success; // required @@ -9236,13 +10982,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionWrite_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_result.class, metaDataMap); } - public getImageListPermissionWrite_result() { + public getImageListPermissionRead_result() { } - public getImageListPermissionWrite_result( + public getImageListPermissionRead_result( List success) { this(); @@ -9252,7 +10998,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionWrite_result(getImageListPermissionWrite_result other) { + public getImageListPermissionRead_result(getImageListPermissionRead_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Image other_element : other.success) { @@ -9262,8 +11008,8 @@ public class Server { } } - public getImageListPermissionWrite_result deepCopy() { - return new getImageListPermissionWrite_result(this); + public getImageListPermissionRead_result deepCopy() { + return new getImageListPermissionRead_result(this); } @Override @@ -9290,7 +11036,7 @@ public class Server { return this.success; } - public getImageListPermissionWrite_result setSuccess(List success) { + public getImageListPermissionRead_result setSuccess(List success) { this.success = success; return this; } @@ -9349,12 +11095,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionWrite_result) - return this.equals((getImageListPermissionWrite_result)that); + if (that instanceof getImageListPermissionRead_result) + return this.equals((getImageListPermissionRead_result)that); return false; } - public boolean equals(getImageListPermissionWrite_result that) { + public boolean equals(getImageListPermissionRead_result that) { if (that == null) return false; @@ -9376,7 +11122,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionWrite_result other) { + public int compareTo(getImageListPermissionRead_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -9410,7 +11156,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionWrite_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionRead_result("); boolean first = true; sb.append("success:"); @@ -9445,15 +11191,15 @@ public class Server { } } - private static class getImageListPermissionWrite_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_resultStandardScheme getScheme() { - return new getImageListPermissionWrite_resultStandardScheme(); + private static class getImageListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_resultStandardScheme getScheme() { + return new getImageListPermissionRead_resultStandardScheme(); } } - private static class getImageListPermissionWrite_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionRead_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9466,14 +11212,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); - struct.success = new ArrayList(_list0.size); - for (int _i1 = 0; _i1 < _list0.size; ++_i1) + org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); + struct.success = new ArrayList(_list8.size); + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - Image _elem2; - _elem2 = new Image(); - _elem2.read(iprot); - struct.success.add(_elem2); + Image _elem10; + _elem10 = new Image(); + _elem10.read(iprot); + struct.success.add(_elem10); } iprot.readListEnd(); } @@ -9493,7 +11239,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -9501,9 +11247,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Image _iter3 : struct.success) + for (Image _iter11 : struct.success) { - _iter3.write(oprot); + _iter11.write(oprot); } oprot.writeListEnd(); } @@ -9515,16 +11261,16 @@ public class Server { } - private static class getImageListPermissionWrite_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionWrite_resultTupleScheme getScheme() { - return new getImageListPermissionWrite_resultTupleScheme(); + private static class getImageListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionRead_resultTupleScheme getScheme() { + return new getImageListPermissionRead_resultTupleScheme(); } } - private static class getImageListPermissionWrite_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionRead_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -9534,28 +11280,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter4 : struct.success) + for (Image _iter12 : struct.success) { - _iter4.write(oprot); + _iter12.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionWrite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list5.size); - for (int _i6 = 0; _i6 < _list5.size; ++_i6) + org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list13.size); + for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - Image _elem7; - _elem7 = new Image(); - _elem7.read(iprot); - struct.success.add(_elem7); + Image _elem15; + _elem15 = new Image(); + _elem15.read(iprot); + struct.success.add(_elem15); } } struct.setSuccessIsSet(true); @@ -9565,15 +11311,15 @@ public class Server { } - public static class getImageListPermissionRead_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionRead_args"); + public static class getImageListPermissionLink_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionLink_args"); private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionRead_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionRead_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionLink_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionLink_argsTupleSchemeFactory()); } public String userID; // required @@ -9643,13 +11389,13 @@ public class Server { tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_args.class, metaDataMap); } - public getImageListPermissionRead_args() { + public getImageListPermissionLink_args() { } - public getImageListPermissionRead_args( + public getImageListPermissionLink_args( String userID) { this(); @@ -9659,14 +11405,14 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionRead_args(getImageListPermissionRead_args other) { + public getImageListPermissionLink_args(getImageListPermissionLink_args other) { if (other.isSetUserID()) { this.userID = other.userID; } } - public getImageListPermissionRead_args deepCopy() { - return new getImageListPermissionRead_args(this); + public getImageListPermissionLink_args deepCopy() { + return new getImageListPermissionLink_args(this); } @Override @@ -9678,7 +11424,7 @@ public class Server { return this.userID; } - public getImageListPermissionRead_args setUserID(String userID) { + public getImageListPermissionLink_args setUserID(String userID) { this.userID = userID; return this; } @@ -9737,12 +11483,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionRead_args) - return this.equals((getImageListPermissionRead_args)that); + if (that instanceof getImageListPermissionLink_args) + return this.equals((getImageListPermissionLink_args)that); return false; } - public boolean equals(getImageListPermissionRead_args that) { + public boolean equals(getImageListPermissionLink_args that) { if (that == null) return false; @@ -9764,7 +11510,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionRead_args other) { + public int compareTo(getImageListPermissionLink_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -9798,7 +11544,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionRead_args("); + StringBuilder sb = new StringBuilder("getImageListPermissionLink_args("); boolean first = true; sb.append("userID:"); @@ -9833,15 +11579,15 @@ public class Server { } } - private static class getImageListPermissionRead_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_argsStandardScheme getScheme() { - return new getImageListPermissionRead_argsStandardScheme(); + private static class getImageListPermissionLink_argsStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_argsStandardScheme getScheme() { + return new getImageListPermissionLink_argsStandardScheme(); } } - private static class getImageListPermissionRead_argsStandardScheme extends StandardScheme { + private static class getImageListPermissionLink_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9870,7 +11616,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -9885,16 +11631,16 @@ public class Server { } - private static class getImageListPermissionRead_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_argsTupleScheme getScheme() { - return new getImageListPermissionRead_argsTupleScheme(); + private static class getImageListPermissionLink_argsTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_argsTupleScheme getScheme() { + return new getImageListPermissionLink_argsTupleScheme(); } } - private static class getImageListPermissionRead_argsTupleScheme extends TupleScheme { + private static class getImageListPermissionLink_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserID()) { @@ -9907,7 +11653,7 @@ public class Server { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -9919,15 +11665,15 @@ public class Server { } - public static class getImageListPermissionRead_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionRead_result"); + public static class getImageListPermissionLink_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionLink_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionRead_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionRead_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageListPermissionLink_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageListPermissionLink_resultTupleSchemeFactory()); } public List success; // required @@ -9998,13 +11744,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionRead_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_result.class, metaDataMap); } - public getImageListPermissionRead_result() { + public getImageListPermissionLink_result() { } - public getImageListPermissionRead_result( + public getImageListPermissionLink_result( List success) { this(); @@ -10014,7 +11760,7 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionRead_result(getImageListPermissionRead_result other) { + public getImageListPermissionLink_result(getImageListPermissionLink_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Image other_element : other.success) { @@ -10024,8 +11770,8 @@ public class Server { } } - public getImageListPermissionRead_result deepCopy() { - return new getImageListPermissionRead_result(this); + public getImageListPermissionLink_result deepCopy() { + return new getImageListPermissionLink_result(this); } @Override @@ -10052,7 +11798,7 @@ public class Server { return this.success; } - public getImageListPermissionRead_result setSuccess(List success) { + public getImageListPermissionLink_result setSuccess(List success) { this.success = success; return this; } @@ -10111,12 +11857,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionRead_result) - return this.equals((getImageListPermissionRead_result)that); + if (that instanceof getImageListPermissionLink_result) + return this.equals((getImageListPermissionLink_result)that); return false; } - public boolean equals(getImageListPermissionRead_result that) { + public boolean equals(getImageListPermissionLink_result that) { if (that == null) return false; @@ -10138,7 +11884,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionRead_result other) { + public int compareTo(getImageListPermissionLink_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -10172,7 +11918,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionRead_result("); + StringBuilder sb = new StringBuilder("getImageListPermissionLink_result("); boolean first = true; sb.append("success:"); @@ -10207,15 +11953,15 @@ public class Server { } } - private static class getImageListPermissionRead_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_resultStandardScheme getScheme() { - return new getImageListPermissionRead_resultStandardScheme(); + private static class getImageListPermissionLink_resultStandardSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_resultStandardScheme getScheme() { + return new getImageListPermissionLink_resultStandardScheme(); } } - private static class getImageListPermissionRead_resultStandardScheme extends StandardScheme { + private static class getImageListPermissionLink_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10228,14 +11974,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); - struct.success = new ArrayList(_list8.size); - for (int _i9 = 0; _i9 < _list8.size; ++_i9) + org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); + struct.success = new ArrayList(_list16.size); + for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - Image _elem10; - _elem10 = new Image(); - _elem10.read(iprot); - struct.success.add(_elem10); + Image _elem18; + _elem18 = new Image(); + _elem18.read(iprot); + struct.success.add(_elem18); } iprot.readListEnd(); } @@ -10255,7 +12001,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -10263,9 +12009,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Image _iter11 : struct.success) + for (Image _iter19 : struct.success) { - _iter11.write(oprot); + _iter19.write(oprot); } oprot.writeListEnd(); } @@ -10277,16 +12023,16 @@ public class Server { } - private static class getImageListPermissionRead_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionRead_resultTupleScheme getScheme() { - return new getImageListPermissionRead_resultTupleScheme(); + private static class getImageListPermissionLink_resultTupleSchemeFactory implements SchemeFactory { + public getImageListPermissionLink_resultTupleScheme getScheme() { + return new getImageListPermissionLink_resultTupleScheme(); } } - private static class getImageListPermissionRead_resultTupleScheme extends TupleScheme { + private static class getImageListPermissionLink_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -10296,28 +12042,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter12 : struct.success) + for (Image _iter20 : struct.success) { - _iter12.write(oprot); + _iter20.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionRead_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list13.size); - for (int _i14 = 0; _i14 < _list13.size; ++_i14) + org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list21.size); + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - Image _elem15; - _elem15 = new Image(); - _elem15.read(iprot); - struct.success.add(_elem15); + Image _elem23; + _elem23 = new Image(); + _elem23.read(iprot); + struct.success.add(_elem23); } } struct.setSuccessIsSet(true); @@ -10327,22 +12073,20 @@ public class Server { } - public static class getImageListPermissionLink_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionLink_args"); + public static class getLectureList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args"); - private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userID", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionLink_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionLink_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); } - public String userID; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_ID((short)1, "userID"); +; private static final Map byName = new HashMap(); @@ -10357,8 +12101,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_ID - return USER_ID; default: return null; } @@ -10397,87 +12139,37 @@ public class Server { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userID", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_args.class, metaDataMap); - } - - public getImageListPermissionLink_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); } - public getImageListPermissionLink_args( - String userID) - { - this(); - this.userID = userID; + public getLectureList_args() { } /** * Performs a deep copy on other. */ - public getImageListPermissionLink_args(getImageListPermissionLink_args other) { - if (other.isSetUserID()) { - this.userID = other.userID; - } + public getLectureList_args(getLectureList_args other) { } - public getImageListPermissionLink_args deepCopy() { - return new getImageListPermissionLink_args(this); + public getLectureList_args deepCopy() { + return new getLectureList_args(this); } @Override public void clear() { - this.userID = null; - } - - public String getUserID() { - return this.userID; - } - - public getImageListPermissionLink_args setUserID(String userID) { - this.userID = userID; - return this; - } - - public void unsetUserID() { - this.userID = null; - } - - /** Returns true if field userID is set (has been assigned a value) and false otherwise */ - public boolean isSetUserID() { - return this.userID != null; - } - - public void setUserIDIsSet(boolean value) { - if (!value) { - this.userID = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_ID: - if (value == null) { - unsetUserID(); - } else { - setUserID((String)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case USER_ID: - return getUserID(); - } throw new IllegalStateException(); } @@ -10489,8 +12181,6 @@ public class Server { } switch (field) { - case USER_ID: - return isSetUserID(); } throw new IllegalStateException(); } @@ -10499,23 +12189,14 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionLink_args) - return this.equals((getImageListPermissionLink_args)that); + if (that instanceof getLectureList_args) + return this.equals((getLectureList_args)that); return false; } - public boolean equals(getImageListPermissionLink_args that) { + public boolean equals(getLectureList_args that) { if (that == null) - return false; - - boolean this_present_userID = true && this.isSetUserID(); - boolean that_present_userID = true && that.isSetUserID(); - if (this_present_userID || that_present_userID) { - if (!(this_present_userID && that_present_userID)) - return false; - if (!this.userID.equals(that.userID)) - return false; - } + return false; return true; } @@ -10526,23 +12207,13 @@ public class Server { } @Override - public int compareTo(getImageListPermissionLink_args other) { + public int compareTo(getLectureList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserID()).compareTo(other.isSetUserID()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUserID()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userID, other.userID); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -10560,16 +12231,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionLink_args("); + StringBuilder sb = new StringBuilder("getLectureList_args("); boolean first = true; - sb.append("userID:"); - if (this.userID == null) { - sb.append("null"); - } else { - sb.append(this.userID); - } - first = false; sb.append(")"); return sb.toString(); } @@ -10595,15 +12259,15 @@ public class Server { } } - private static class getImageListPermissionLink_argsStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_argsStandardScheme getScheme() { - return new getImageListPermissionLink_argsStandardScheme(); + private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { + public getLectureList_argsStandardScheme getScheme() { + return new getLectureList_argsStandardScheme(); } } - private static class getImageListPermissionLink_argsStandardScheme extends StandardScheme { + private static class getLectureList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10613,14 +12277,6 @@ public class Server { break; } switch (schemeField.id) { - case 1: // USER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10632,67 +12288,49 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.userID != null) { - oprot.writeFieldBegin(USER_ID_FIELD_DESC); - oprot.writeString(struct.userID); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageListPermissionLink_argsTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_argsTupleScheme getScheme() { - return new getImageListPermissionLink_argsTupleScheme(); + private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { + public getLectureList_argsTupleScheme getScheme() { + return new getLectureList_argsTupleScheme(); } } - private static class getImageListPermissionLink_argsTupleScheme extends TupleScheme { + private static class getLectureList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUserID()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetUserID()) { - oprot.writeString(struct.userID); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.userID = iprot.readString(); - struct.setUserIDIsSet(true); - } } } } - public static class getImageListPermissionLink_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageListPermissionLink_result"); + public static class getLectureList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageListPermissionLink_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageListPermissionLink_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -10758,16 +12396,16 @@ public class Server { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Image.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageListPermissionLink_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); } - public getImageListPermissionLink_result() { + public getLectureList_result() { } - public getImageListPermissionLink_result( - List success) + public getLectureList_result( + List success) { this(); this.success = success; @@ -10776,18 +12414,18 @@ public class Server { /** * Performs a deep copy on other. */ - public getImageListPermissionLink_result(getImageListPermissionLink_result other) { + public getLectureList_result(getLectureList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Image other_element : other.success) { - __this__success.add(new Image(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Lecture other_element : other.success) { + __this__success.add(new Lecture(other_element)); } this.success = __this__success; } } - public getImageListPermissionLink_result deepCopy() { - return new getImageListPermissionLink_result(this); + public getLectureList_result deepCopy() { + return new getLectureList_result(this); } @Override @@ -10799,22 +12437,22 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Image elem) { + public void addToSuccess(Lecture elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getImageListPermissionLink_result setSuccess(List success) { + public getLectureList_result setSuccess(List success) { this.success = success; return this; } @@ -10840,7 +12478,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -10873,12 +12511,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageListPermissionLink_result) - return this.equals((getImageListPermissionLink_result)that); + if (that instanceof getLectureList_result) + return this.equals((getLectureList_result)that); return false; } - public boolean equals(getImageListPermissionLink_result that) { + public boolean equals(getLectureList_result that) { if (that == null) return false; @@ -10900,7 +12538,7 @@ public class Server { } @Override - public int compareTo(getImageListPermissionLink_result other) { + public int compareTo(getLectureList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -10934,7 +12572,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageListPermissionLink_result("); + StringBuilder sb = new StringBuilder("getLectureList_result("); boolean first = true; sb.append("success:"); @@ -10969,15 +12607,15 @@ public class Server { } } - private static class getImageListPermissionLink_resultStandardSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_resultStandardScheme getScheme() { - return new getImageListPermissionLink_resultStandardScheme(); + private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { + public getLectureList_resultStandardScheme getScheme() { + return new getLectureList_resultStandardScheme(); } } - private static class getImageListPermissionLink_resultStandardScheme extends StandardScheme { + private static class getLectureList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10990,14 +12628,14 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); - struct.success = new ArrayList(_list16.size); - for (int _i17 = 0; _i17 < _list16.size; ++_i17) + org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); + struct.success = new ArrayList(_list24.size); + for (int _i25 = 0; _i25 < _list24.size; ++_i25) { - Image _elem18; - _elem18 = new Image(); - _elem18.read(iprot); - struct.success.add(_elem18); + Lecture _elem26; + _elem26 = new Lecture(); + _elem26.read(iprot); + struct.success.add(_elem26); } iprot.readListEnd(); } @@ -11017,7 +12655,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11025,9 +12663,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Image _iter19 : struct.success) + for (Lecture _iter27 : struct.success) { - _iter19.write(oprot); + _iter27.write(oprot); } oprot.writeListEnd(); } @@ -11039,16 +12677,16 @@ public class Server { } - private static class getImageListPermissionLink_resultTupleSchemeFactory implements SchemeFactory { - public getImageListPermissionLink_resultTupleScheme getScheme() { - return new getImageListPermissionLink_resultTupleScheme(); + private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { + public getLectureList_resultTupleScheme getScheme() { + return new getLectureList_resultTupleScheme(); } } - private static class getImageListPermissionLink_resultTupleScheme extends TupleScheme { + private static class getLectureList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -11058,28 +12696,28 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Image _iter20 : struct.success) + for (Lecture _iter28 : struct.success) { - _iter20.write(oprot); + _iter28.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageListPermissionLink_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list21.size); - for (int _i22 = 0; _i22 < _list21.size; ++_i22) + org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list29.size); + for (int _i30 = 0; _i30 < _list29.size; ++_i30) { - Image _elem23; - _elem23 = new Image(); - _elem23.read(iprot); - struct.success.add(_elem23); + Lecture _elem31; + _elem31 = new Lecture(); + _elem31.read(iprot); + struct.success.add(_elem31); } } struct.setSuccessIsSet(true); @@ -11089,14 +12727,14 @@ public class Server { } - public static class getLectureList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_args"); + public static class getAllOS_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOS_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOS_argsTupleSchemeFactory()); } @@ -11159,20 +12797,20 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_args.class, metaDataMap); } - public getLectureList_args() { + public getAllOS_args() { } /** * Performs a deep copy on other. */ - public getLectureList_args(getLectureList_args other) { + public getAllOS_args(getAllOS_args other) { } - public getLectureList_args deepCopy() { - return new getLectureList_args(this); + public getAllOS_args deepCopy() { + return new getAllOS_args(this); } @Override @@ -11205,12 +12843,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_args) - return this.equals((getLectureList_args)that); + if (that instanceof getAllOS_args) + return this.equals((getAllOS_args)that); return false; } - public boolean equals(getLectureList_args that) { + public boolean equals(getAllOS_args that) { if (that == null) return false; @@ -11223,7 +12861,7 @@ public class Server { } @Override - public int compareTo(getLectureList_args other) { + public int compareTo(getAllOS_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11247,7 +12885,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_args("); + StringBuilder sb = new StringBuilder("getAllOS_args("); boolean first = true; sb.append(")"); @@ -11275,15 +12913,15 @@ public class Server { } } - private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { - public getLectureList_argsStandardScheme getScheme() { - return new getLectureList_argsStandardScheme(); + private static class getAllOS_argsStandardSchemeFactory implements SchemeFactory { + public getAllOS_argsStandardScheme getScheme() { + return new getAllOS_argsStandardScheme(); } } - private static class getLectureList_argsStandardScheme extends StandardScheme { + private static class getAllOS_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11304,7 +12942,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11314,39 +12952,39 @@ public class Server { } - private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { - public getLectureList_argsTupleScheme getScheme() { - return new getLectureList_argsTupleScheme(); + private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory { + public getAllOS_argsTupleScheme getScheme() { + return new getAllOS_argsTupleScheme(); } } - private static class getLectureList_argsTupleScheme extends TupleScheme { + private static class getAllOS_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getLectureList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLectureList_result"); + public static class getAllOS_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOS_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOS_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -11412,16 +13050,16 @@ public class Server { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Lecture.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_result.class, metaDataMap); } - public getLectureList_result() { + public getAllOS_result() { } - public getLectureList_result( - List success) + public getAllOS_result( + List success) { this(); this.success = success; @@ -11430,18 +13068,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getLectureList_result(getLectureList_result other) { + public getAllOS_result(getAllOS_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Lecture other_element : other.success) { - __this__success.add(new Lecture(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } } - public getLectureList_result deepCopy() { - return new getLectureList_result(this); + public getAllOS_result deepCopy() { + return new getAllOS_result(this); } @Override @@ -11453,22 +13088,22 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Lecture elem) { + public void addToSuccess(String elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getLectureList_result setSuccess(List success) { + public getAllOS_result setSuccess(List success) { this.success = success; return this; } @@ -11494,7 +13129,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -11527,12 +13162,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_result) - return this.equals((getLectureList_result)that); + if (that instanceof getAllOS_result) + return this.equals((getAllOS_result)that); return false; } - public boolean equals(getLectureList_result that) { + public boolean equals(getAllOS_result that) { if (that == null) return false; @@ -11554,7 +13189,7 @@ public class Server { } @Override - public int compareTo(getLectureList_result other) { + public int compareTo(getAllOS_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11588,7 +13223,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_result("); + StringBuilder sb = new StringBuilder("getAllOS_result("); boolean first = true; sb.append("success:"); @@ -11623,15 +13258,15 @@ public class Server { } } - private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { - public getLectureList_resultStandardScheme getScheme() { - return new getLectureList_resultStandardScheme(); + private static class getAllOS_resultStandardSchemeFactory implements SchemeFactory { + public getAllOS_resultStandardScheme getScheme() { + return new getAllOS_resultStandardScheme(); } } - private static class getLectureList_resultStandardScheme extends StandardScheme { + private static class getAllOS_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11644,14 +13279,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); - struct.success = new ArrayList(_list24.size); - for (int _i25 = 0; _i25 < _list24.size; ++_i25) + org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); + struct.success = new ArrayList(_list32.size); + for (int _i33 = 0; _i33 < _list32.size; ++_i33) { - Lecture _elem26; - _elem26 = new Lecture(); - _elem26.read(iprot); - struct.success.add(_elem26); + String _elem34; + _elem34 = iprot.readString(); + struct.success.add(_elem34); } iprot.readListEnd(); } @@ -11671,17 +13305,17 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Lecture _iter27 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter35 : struct.success) { - _iter27.write(oprot); + oprot.writeString(_iter35); } oprot.writeListEnd(); } @@ -11693,16 +13327,16 @@ public class Server { } - private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { - public getLectureList_resultTupleScheme getScheme() { - return new getLectureList_resultTupleScheme(); + private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory { + public getAllOS_resultTupleScheme getScheme() { + return new getAllOS_resultTupleScheme(); } } - private static class getLectureList_resultTupleScheme extends TupleScheme { + private static class getAllOS_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -11712,28 +13346,27 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Lecture _iter28 : struct.success) + for (String _iter36 : struct.success) { - _iter28.write(oprot); + oprot.writeString(_iter36); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list29 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list29.size); - for (int _i30 = 0; _i30 < _list29.size; ++_i30) + org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list37.size); + for (int _i38 = 0; _i38 < _list37.size; ++_i38) { - Lecture _elem31; - _elem31 = new Lecture(); - _elem31.read(iprot); - struct.success.add(_elem31); + String _elem39; + _elem39 = iprot.readString(); + struct.success.add(_elem39); } } struct.setSuccessIsSet(true); @@ -11743,14 +13376,14 @@ public class Server { } - public static class getAllOS_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_args"); + public static class getAllUniversities_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUniversities_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOS_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOS_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUniversities_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUniversities_argsTupleSchemeFactory()); } @@ -11813,20 +13446,20 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_args.class, metaDataMap); } - public getAllOS_args() { + public getAllUniversities_args() { } /** * Performs a deep copy on other. */ - public getAllOS_args(getAllOS_args other) { + public getAllUniversities_args(getAllUniversities_args other) { } - public getAllOS_args deepCopy() { - return new getAllOS_args(this); + public getAllUniversities_args deepCopy() { + return new getAllUniversities_args(this); } @Override @@ -11859,12 +13492,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOS_args) - return this.equals((getAllOS_args)that); + if (that instanceof getAllUniversities_args) + return this.equals((getAllUniversities_args)that); return false; } - public boolean equals(getAllOS_args that) { + public boolean equals(getAllUniversities_args that) { if (that == null) return false; @@ -11877,7 +13510,7 @@ public class Server { } @Override - public int compareTo(getAllOS_args other) { + public int compareTo(getAllUniversities_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11901,7 +13534,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOS_args("); + StringBuilder sb = new StringBuilder("getAllUniversities_args("); boolean first = true; sb.append(")"); @@ -11929,15 +13562,15 @@ public class Server { } } - private static class getAllOS_argsStandardSchemeFactory implements SchemeFactory { - public getAllOS_argsStandardScheme getScheme() { - return new getAllOS_argsStandardScheme(); + private static class getAllUniversities_argsStandardSchemeFactory implements SchemeFactory { + public getAllUniversities_argsStandardScheme getScheme() { + return new getAllUniversities_argsStandardScheme(); } } - private static class getAllOS_argsStandardScheme extends StandardScheme { + private static class getAllUniversities_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11958,7 +13591,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11968,36 +13601,36 @@ public class Server { } - private static class getAllOS_argsTupleSchemeFactory implements SchemeFactory { - public getAllOS_argsTupleScheme getScheme() { - return new getAllOS_argsTupleScheme(); + private static class getAllUniversities_argsTupleSchemeFactory implements SchemeFactory { + public getAllUniversities_argsTupleScheme getScheme() { + return new getAllUniversities_argsTupleScheme(); } } - private static class getAllOS_argsTupleScheme extends TupleScheme { + private static class getAllUniversities_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getAllOS_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOS_result"); + public static class getAllUniversities_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUniversities_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOS_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOS_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllUniversities_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllUniversities_resultTupleSchemeFactory()); } public List success; // required @@ -12068,13 +13701,13 @@ public class Server { new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOS_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_result.class, metaDataMap); } - public getAllOS_result() { + public getAllUniversities_result() { } - public getAllOS_result( + public getAllUniversities_result( List success) { this(); @@ -12084,15 +13717,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllOS_result(getAllOS_result other) { + public getAllUniversities_result(getAllUniversities_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success); this.success = __this__success; } } - public getAllOS_result deepCopy() { - return new getAllOS_result(this); + public getAllUniversities_result deepCopy() { + return new getAllUniversities_result(this); } @Override @@ -12119,7 +13752,7 @@ public class Server { return this.success; } - public getAllOS_result setSuccess(List success) { + public getAllUniversities_result setSuccess(List success) { this.success = success; return this; } @@ -12178,12 +13811,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOS_result) - return this.equals((getAllOS_result)that); + if (that instanceof getAllUniversities_result) + return this.equals((getAllUniversities_result)that); return false; } - public boolean equals(getAllOS_result that) { + public boolean equals(getAllUniversities_result that) { if (that == null) return false; @@ -12205,7 +13838,7 @@ public class Server { } @Override - public int compareTo(getAllOS_result other) { + public int compareTo(getAllUniversities_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12239,7 +13872,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOS_result("); + StringBuilder sb = new StringBuilder("getAllUniversities_result("); boolean first = true; sb.append("success:"); @@ -12274,15 +13907,15 @@ public class Server { } } - private static class getAllOS_resultStandardSchemeFactory implements SchemeFactory { - public getAllOS_resultStandardScheme getScheme() { - return new getAllOS_resultStandardScheme(); + private static class getAllUniversities_resultStandardSchemeFactory implements SchemeFactory { + public getAllUniversities_resultStandardScheme getScheme() { + return new getAllUniversities_resultStandardScheme(); } } - private static class getAllOS_resultStandardScheme extends StandardScheme { + private static class getAllUniversities_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOS_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12295,13 +13928,13 @@ public class Server { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); - struct.success = new ArrayList(_list32.size); - for (int _i33 = 0; _i33 < _list32.size; ++_i33) + org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); + struct.success = new ArrayList(_list40.size); + for (int _i41 = 0; _i41 < _list40.size; ++_i41) { - String _elem34; - _elem34 = iprot.readString(); - struct.success.add(_elem34); + String _elem42; + _elem42 = iprot.readString(); + struct.success.add(_elem42); } iprot.readListEnd(); } @@ -12321,7 +13954,7 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOS_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12329,9 +13962,9 @@ public class Server { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter35 : struct.success) + for (String _iter43 : struct.success) { - oprot.writeString(_iter35); + oprot.writeString(_iter43); } oprot.writeListEnd(); } @@ -12343,16 +13976,16 @@ public class Server { } - private static class getAllOS_resultTupleSchemeFactory implements SchemeFactory { - public getAllOS_resultTupleScheme getScheme() { - return new getAllOS_resultTupleScheme(); + private static class getAllUniversities_resultTupleSchemeFactory implements SchemeFactory { + public getAllUniversities_resultTupleScheme getScheme() { + return new getAllUniversities_resultTupleScheme(); } } - private static class getAllOS_resultTupleScheme extends TupleScheme { + private static class getAllUniversities_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -12362,27 +13995,27 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter36 : struct.success) + for (String _iter44 : struct.success) { - oprot.writeString(_iter36); + oprot.writeString(_iter44); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOS_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list37 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list37.size); - for (int _i38 = 0; _i38 < _list37.size; ++_i38) + org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list45.size); + for (int _i46 = 0; _i46 < _list45.size; ++_i46) { - String _elem39; - _elem39 = iprot.readString(); - struct.success.add(_elem39); + String _elem47; + _elem47 = iprot.readString(); + struct.success.add(_elem47); } } struct.setSuccessIsSet(true); @@ -12392,20 +14025,25 @@ public class Server { } - public static class getAllUniversities_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUniversities_args"); + public static class getPersonData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_args"); + private static final org.apache.thrift.protocol.TField VORNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Vorname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NACHNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Nachname", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUniversities_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUniversities_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPersonData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPersonData_argsTupleSchemeFactory()); } + public String Vorname; // required + public String Nachname; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + VORNAME((short)1, "Vorname"), + NACHNAME((short)2, "Nachname"); private static final Map byName = new HashMap(); @@ -12420,6 +14058,10 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // VORNAME + return VORNAME; + case 2: // NACHNAME + return NACHNAME; default: return null; } @@ -12458,37 +14100,130 @@ public class Server { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NACHNAME, new org.apache.thrift.meta_data.FieldMetaData("Nachname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_args.class, metaDataMap); } - public getAllUniversities_args() { + public getPersonData_args() { + } + + public getPersonData_args( + String Vorname, + String Nachname) + { + this(); + this.Vorname = Vorname; + this.Nachname = Nachname; } /** * Performs a deep copy on other. */ - public getAllUniversities_args(getAllUniversities_args other) { + public getPersonData_args(getPersonData_args other) { + if (other.isSetVorname()) { + this.Vorname = other.Vorname; + } + if (other.isSetNachname()) { + this.Nachname = other.Nachname; + } } - public getAllUniversities_args deepCopy() { - return new getAllUniversities_args(this); + public getPersonData_args deepCopy() { + return new getPersonData_args(this); } @Override public void clear() { + this.Vorname = null; + this.Nachname = null; + } + + public String getVorname() { + return this.Vorname; + } + + public getPersonData_args setVorname(String Vorname) { + this.Vorname = Vorname; + return this; + } + + public void unsetVorname() { + this.Vorname = null; + } + + /** Returns true if field Vorname is set (has been assigned a value) and false otherwise */ + public boolean isSetVorname() { + return this.Vorname != null; + } + + public void setVornameIsSet(boolean value) { + if (!value) { + this.Vorname = null; + } + } + + public String getNachname() { + return this.Nachname; + } + + public getPersonData_args setNachname(String Nachname) { + this.Nachname = Nachname; + return this; + } + + public void unsetNachname() { + this.Nachname = null; + } + + /** Returns true if field Nachname is set (has been assigned a value) and false otherwise */ + public boolean isSetNachname() { + return this.Nachname != null; + } + + public void setNachnameIsSet(boolean value) { + if (!value) { + this.Nachname = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { + case VORNAME: + if (value == null) { + unsetVorname(); + } else { + setVorname((String)value); + } + break; + + case NACHNAME: + if (value == null) { + unsetNachname(); + } else { + setNachname((String)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case VORNAME: + return getVorname(); + + case NACHNAME: + return getNachname(); + } throw new IllegalStateException(); } @@ -12500,6 +14235,10 @@ public class Server { } switch (field) { + case VORNAME: + return isSetVorname(); + case NACHNAME: + return isSetNachname(); } throw new IllegalStateException(); } @@ -12508,15 +14247,33 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUniversities_args) - return this.equals((getAllUniversities_args)that); + if (that instanceof getPersonData_args) + return this.equals((getPersonData_args)that); return false; } - public boolean equals(getAllUniversities_args that) { + public boolean equals(getPersonData_args that) { if (that == null) return false; + boolean this_present_Vorname = true && this.isSetVorname(); + boolean that_present_Vorname = true && that.isSetVorname(); + if (this_present_Vorname || that_present_Vorname) { + if (!(this_present_Vorname && that_present_Vorname)) + return false; + if (!this.Vorname.equals(that.Vorname)) + return false; + } + + boolean this_present_Nachname = true && this.isSetNachname(); + boolean that_present_Nachname = true && that.isSetNachname(); + if (this_present_Nachname || that_present_Nachname) { + if (!(this_present_Nachname && that_present_Nachname)) + return false; + if (!this.Nachname.equals(that.Nachname)) + return false; + } + return true; } @@ -12526,13 +14283,33 @@ public class Server { } @Override - public int compareTo(getAllUniversities_args other) { + public int compareTo(getPersonData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetVorname()).compareTo(other.isSetVorname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetVorname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Vorname, other.Vorname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNachname()).compareTo(other.isSetNachname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNachname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Nachname, other.Nachname); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -12550,9 +14327,24 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUniversities_args("); + StringBuilder sb = new StringBuilder("getPersonData_args("); boolean first = true; + sb.append("Vorname:"); + if (this.Vorname == null) { + sb.append("null"); + } else { + sb.append(this.Vorname); + } + first = false; + if (!first) sb.append(", "); + sb.append("Nachname:"); + if (this.Nachname == null) { + sb.append("null"); + } else { + sb.append(this.Nachname); + } + first = false; sb.append(")"); return sb.toString(); } @@ -12578,15 +14370,15 @@ public class Server { } } - private static class getAllUniversities_argsStandardSchemeFactory implements SchemeFactory { - public getAllUniversities_argsStandardScheme getScheme() { - return new getAllUniversities_argsStandardScheme(); + private static class getPersonData_argsStandardSchemeFactory implements SchemeFactory { + public getPersonData_argsStandardScheme getScheme() { + return new getPersonData_argsStandardScheme(); } } - private static class getAllUniversities_argsStandardScheme extends StandardScheme { + private static class getPersonData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12596,6 +14388,22 @@ public class Server { break; } switch (schemeField.id) { + case 1: // VORNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Vorname = iprot.readString(); + struct.setVornameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NACHNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Nachname = iprot.readString(); + struct.setNachnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12607,49 +14415,82 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.Vorname != null) { + oprot.writeFieldBegin(VORNAME_FIELD_DESC); + oprot.writeString(struct.Vorname); + oprot.writeFieldEnd(); + } + if (struct.Nachname != null) { + oprot.writeFieldBegin(NACHNAME_FIELD_DESC); + oprot.writeString(struct.Nachname); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllUniversities_argsTupleSchemeFactory implements SchemeFactory { - public getAllUniversities_argsTupleScheme getScheme() { - return new getAllUniversities_argsTupleScheme(); + private static class getPersonData_argsTupleSchemeFactory implements SchemeFactory { + public getPersonData_argsTupleScheme getScheme() { + return new getPersonData_argsTupleScheme(); } } - private static class getAllUniversities_argsTupleScheme extends TupleScheme { + private static class getPersonData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetVorname()) { + optionals.set(0); + } + if (struct.isSetNachname()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetVorname()) { + oprot.writeString(struct.Vorname); + } + if (struct.isSetNachname()) { + oprot.writeString(struct.Nachname); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.Vorname = iprot.readString(); + struct.setVornameIsSet(true); + } + if (incoming.get(1)) { + struct.Nachname = iprot.readString(); + struct.setNachnameIsSet(true); + } } } } - public static class getAllUniversities_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUniversities_result"); + public static class getPersonData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUniversities_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUniversities_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPersonData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPersonData_resultTupleSchemeFactory()); } - public List success; // required + public Map success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -12714,17 +14555,18 @@ public class Server { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUniversities_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_result.class, metaDataMap); } - public getAllUniversities_result() { + public getPersonData_result() { } - public getAllUniversities_result( - List success) + public getPersonData_result( + Map success) { this(); this.success = success; @@ -12733,15 +14575,15 @@ public class Server { /** * Performs a deep copy on other. */ - public getAllUniversities_result(getAllUniversities_result other) { + public getPersonData_result(getPersonData_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + Map __this__success = new HashMap(other.success); this.success = __this__success; } } - public getAllUniversities_result deepCopy() { - return new getAllUniversities_result(this); + public getPersonData_result deepCopy() { + return new getPersonData_result(this); } @Override @@ -12753,22 +14595,18 @@ public class Server { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { + public void putToSuccess(String key, String val) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new HashMap(); } - this.success.add(elem); + this.success.put(key, val); } - public List getSuccess() { + public Map getSuccess() { return this.success; } - public getAllUniversities_result setSuccess(List success) { + public getPersonData_result setSuccess(Map success) { this.success = success; return this; } @@ -12794,7 +14632,7 @@ public class Server { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((Map)value); } break; @@ -12827,12 +14665,12 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUniversities_result) - return this.equals((getAllUniversities_result)that); + if (that instanceof getPersonData_result) + return this.equals((getPersonData_result)that); return false; } - public boolean equals(getAllUniversities_result that) { + public boolean equals(getPersonData_result that) { if (that == null) return false; @@ -12854,7 +14692,7 @@ public class Server { } @Override - public int compareTo(getAllUniversities_result other) { + public int compareTo(getPersonData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12888,7 +14726,7 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUniversities_result("); + StringBuilder sb = new StringBuilder("getPersonData_result("); boolean first = true; sb.append("success:"); @@ -12923,15 +14761,15 @@ public class Server { } } - private static class getAllUniversities_resultStandardSchemeFactory implements SchemeFactory { - public getAllUniversities_resultStandardScheme getScheme() { - return new getAllUniversities_resultStandardScheme(); + private static class getPersonData_resultStandardSchemeFactory implements SchemeFactory { + public getPersonData_resultStandardScheme getScheme() { + return new getPersonData_resultStandardScheme(); } } - private static class getAllUniversities_resultStandardScheme extends StandardScheme { + private static class getPersonData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12942,17 +14780,19 @@ public class Server { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TList _list40 = iprot.readListBegin(); - struct.success = new ArrayList(_list40.size); - for (int _i41 = 0; _i41 < _list40.size; ++_i41) + org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map48.size); + for (int _i49 = 0; _i49 < _map48.size; ++_i49) { - String _elem42; - _elem42 = iprot.readString(); - struct.success.add(_elem42); + String _key50; + String _val51; + _key50 = iprot.readString(); + _val51 = iprot.readString(); + struct.success.put(_key50, _val51); } - iprot.readListEnd(); + iprot.readMapEnd(); } struct.setSuccessIsSet(true); } else { @@ -12970,19 +14810,20 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter43 : struct.success) + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (Map.Entry _iter52 : struct.success.entrySet()) { - oprot.writeString(_iter43); + oprot.writeString(_iter52.getKey()); + oprot.writeString(_iter52.getValue()); } - oprot.writeListEnd(); + oprot.writeMapEnd(); } oprot.writeFieldEnd(); } @@ -12992,16 +14833,16 @@ public class Server { } - private static class getAllUniversities_resultTupleSchemeFactory implements SchemeFactory { - public getAllUniversities_resultTupleScheme getScheme() { - return new getAllUniversities_resultTupleScheme(); + private static class getPersonData_resultTupleSchemeFactory implements SchemeFactory { + public getPersonData_resultTupleScheme getScheme() { + return new getPersonData_resultTupleScheme(); } } - private static class getAllUniversities_resultTupleScheme extends TupleScheme { + private static class getPersonData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -13011,27 +14852,30 @@ public class Server { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter44 : struct.success) + for (Map.Entry _iter53 : struct.success.entrySet()) { - oprot.writeString(_iter44); + oprot.writeString(_iter53.getKey()); + oprot.writeString(_iter53.getValue()); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUniversities_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list45 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list45.size); - for (int _i46 = 0; _i46 < _list45.size; ++_i46) + org.apache.thrift.protocol.TMap _map54 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map54.size); + for (int _i55 = 0; _i55 < _map54.size; ++_i55) { - String _elem47; - _elem47 = iprot.readString(); - struct.success.add(_elem47); + String _key56; + String _val57; + _key56 = iprot.readString(); + _val57 = iprot.readString(); + struct.success.put(_key56, _val57); } } struct.setSuccessIsSet(true); @@ -13041,25 +14885,34 @@ public class Server { } - public static class getPersonData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_args"); + public static class setPerson_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPerson_args"); - private static final org.apache.thrift.protocol.TField VORNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Vorname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField NACHNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("Nachname", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("login", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField LASTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lastname", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FIRSTNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstname", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("mail", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField INSTITUTION_FIELD_DESC = new org.apache.thrift.protocol.TField("Institution", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPersonData_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPersonData_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setPerson_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setPerson_argsTupleSchemeFactory()); } - public String Vorname; // required - public String Nachname; // required + public String login; // required + public String lastname; // required + public String firstname; // required + public String mail; // required + public String Institution; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - VORNAME((short)1, "Vorname"), - NACHNAME((short)2, "Nachname"); + LOGIN((short)1, "login"), + LASTNAME((short)2, "lastname"), + FIRSTNAME((short)3, "firstname"), + MAIL((short)4, "mail"), + INSTITUTION((short)5, "Institution"); private static final Map byName = new HashMap(); @@ -13074,10 +14927,16 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // VORNAME - return VORNAME; - case 2: // NACHNAME - return NACHNAME; + case 1: // LOGIN + return LOGIN; + case 2: // LASTNAME + return LASTNAME; + case 3: // FIRSTNAME + return FIRSTNAME; + case 4: // MAIL + return MAIL; + case 5: // INSTITUTION + return INSTITUTION; default: return null; } @@ -13121,111 +14980,231 @@ public class Server { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.VORNAME, new org.apache.thrift.meta_data.FieldMetaData("Vorname", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LOGIN, new org.apache.thrift.meta_data.FieldMetaData("login", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.NACHNAME, new org.apache.thrift.meta_data.FieldMetaData("Nachname", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LASTNAME, new org.apache.thrift.meta_data.FieldMetaData("lastname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FIRSTNAME, new org.apache.thrift.meta_data.FieldMetaData("firstname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.INSTITUTION, new org.apache.thrift.meta_data.FieldMetaData("Institution", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPerson_args.class, metaDataMap); } - public getPersonData_args() { + public setPerson_args() { } - public getPersonData_args( - String Vorname, - String Nachname) + public setPerson_args( + String login, + String lastname, + String firstname, + String mail, + String Institution) { this(); - this.Vorname = Vorname; - this.Nachname = Nachname; + this.login = login; + this.lastname = lastname; + this.firstname = firstname; + this.mail = mail; + this.Institution = Institution; } /** * Performs a deep copy on other. */ - public getPersonData_args(getPersonData_args other) { - if (other.isSetVorname()) { - this.Vorname = other.Vorname; + public setPerson_args(setPerson_args other) { + if (other.isSetLogin()) { + this.login = other.login; } - if (other.isSetNachname()) { - this.Nachname = other.Nachname; + if (other.isSetLastname()) { + this.lastname = other.lastname; + } + if (other.isSetFirstname()) { + this.firstname = other.firstname; + } + if (other.isSetMail()) { + this.mail = other.mail; + } + if (other.isSetInstitution()) { + this.Institution = other.Institution; } } - public getPersonData_args deepCopy() { - return new getPersonData_args(this); + public setPerson_args deepCopy() { + return new setPerson_args(this); } @Override public void clear() { - this.Vorname = null; - this.Nachname = null; + this.login = null; + this.lastname = null; + this.firstname = null; + this.mail = null; + this.Institution = null; } - public String getVorname() { - return this.Vorname; + public String getLogin() { + return this.login; + } + + public setPerson_args setLogin(String login) { + this.login = login; + return this; + } + + public void unsetLogin() { + this.login = null; + } + + /** Returns true if field login is set (has been assigned a value) and false otherwise */ + public boolean isSetLogin() { + return this.login != null; + } + + public void setLoginIsSet(boolean value) { + if (!value) { + this.login = null; + } + } + + public String getLastname() { + return this.lastname; + } + + public setPerson_args setLastname(String lastname) { + this.lastname = lastname; + return this; + } + + public void unsetLastname() { + this.lastname = null; + } + + /** Returns true if field lastname is set (has been assigned a value) and false otherwise */ + public boolean isSetLastname() { + return this.lastname != null; + } + + public void setLastnameIsSet(boolean value) { + if (!value) { + this.lastname = null; + } + } + + public String getFirstname() { + return this.firstname; + } + + public setPerson_args setFirstname(String firstname) { + this.firstname = firstname; + return this; + } + + public void unsetFirstname() { + this.firstname = null; + } + + /** Returns true if field firstname is set (has been assigned a value) and false otherwise */ + public boolean isSetFirstname() { + return this.firstname != null; + } + + public void setFirstnameIsSet(boolean value) { + if (!value) { + this.firstname = null; + } + } + + public String getMail() { + return this.mail; } - public getPersonData_args setVorname(String Vorname) { - this.Vorname = Vorname; + public setPerson_args setMail(String mail) { + this.mail = mail; return this; } - public void unsetVorname() { - this.Vorname = null; + public void unsetMail() { + this.mail = null; } - /** Returns true if field Vorname is set (has been assigned a value) and false otherwise */ - public boolean isSetVorname() { - return this.Vorname != null; + /** Returns true if field mail is set (has been assigned a value) and false otherwise */ + public boolean isSetMail() { + return this.mail != null; } - public void setVornameIsSet(boolean value) { + public void setMailIsSet(boolean value) { if (!value) { - this.Vorname = null; + this.mail = null; } } - public String getNachname() { - return this.Nachname; + public String getInstitution() { + return this.Institution; } - public getPersonData_args setNachname(String Nachname) { - this.Nachname = Nachname; + public setPerson_args setInstitution(String Institution) { + this.Institution = Institution; return this; } - public void unsetNachname() { - this.Nachname = null; + public void unsetInstitution() { + this.Institution = null; } - /** Returns true if field Nachname is set (has been assigned a value) and false otherwise */ - public boolean isSetNachname() { - return this.Nachname != null; + /** Returns true if field Institution is set (has been assigned a value) and false otherwise */ + public boolean isSetInstitution() { + return this.Institution != null; } - public void setNachnameIsSet(boolean value) { + public void setInstitutionIsSet(boolean value) { if (!value) { - this.Nachname = null; + this.Institution = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case VORNAME: + case LOGIN: if (value == null) { - unsetVorname(); + unsetLogin(); } else { - setVorname((String)value); + setLogin((String)value); } break; - case NACHNAME: + case LASTNAME: if (value == null) { - unsetNachname(); + unsetLastname(); } else { - setNachname((String)value); + setLastname((String)value); + } + break; + + case FIRSTNAME: + if (value == null) { + unsetFirstname(); + } else { + setFirstname((String)value); + } + break; + + case MAIL: + if (value == null) { + unsetMail(); + } else { + setMail((String)value); + } + break; + + case INSTITUTION: + if (value == null) { + unsetInstitution(); + } else { + setInstitution((String)value); } break; @@ -13234,11 +15213,20 @@ public class Server { public Object getFieldValue(_Fields field) { switch (field) { - case VORNAME: - return getVorname(); + case LOGIN: + return getLogin(); - case NACHNAME: - return getNachname(); + case LASTNAME: + return getLastname(); + + case FIRSTNAME: + return getFirstname(); + + case MAIL: + return getMail(); + + case INSTITUTION: + return getInstitution(); } throw new IllegalStateException(); @@ -13251,10 +15239,16 @@ public class Server { } switch (field) { - case VORNAME: - return isSetVorname(); - case NACHNAME: - return isSetNachname(); + case LOGIN: + return isSetLogin(); + case LASTNAME: + return isSetLastname(); + case FIRSTNAME: + return isSetFirstname(); + case MAIL: + return isSetMail(); + case INSTITUTION: + return isSetInstitution(); } throw new IllegalStateException(); } @@ -13263,30 +15257,57 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPersonData_args) - return this.equals((getPersonData_args)that); + if (that instanceof setPerson_args) + return this.equals((setPerson_args)that); return false; } - public boolean equals(getPersonData_args that) { + public boolean equals(setPerson_args that) { if (that == null) return false; - boolean this_present_Vorname = true && this.isSetVorname(); - boolean that_present_Vorname = true && that.isSetVorname(); - if (this_present_Vorname || that_present_Vorname) { - if (!(this_present_Vorname && that_present_Vorname)) + boolean this_present_login = true && this.isSetLogin(); + boolean that_present_login = true && that.isSetLogin(); + if (this_present_login || that_present_login) { + if (!(this_present_login && that_present_login)) return false; - if (!this.Vorname.equals(that.Vorname)) + if (!this.login.equals(that.login)) return false; } - boolean this_present_Nachname = true && this.isSetNachname(); - boolean that_present_Nachname = true && that.isSetNachname(); - if (this_present_Nachname || that_present_Nachname) { - if (!(this_present_Nachname && that_present_Nachname)) + boolean this_present_lastname = true && this.isSetLastname(); + boolean that_present_lastname = true && that.isSetLastname(); + if (this_present_lastname || that_present_lastname) { + if (!(this_present_lastname && that_present_lastname)) return false; - if (!this.Nachname.equals(that.Nachname)) + if (!this.lastname.equals(that.lastname)) + return false; + } + + boolean this_present_firstname = true && this.isSetFirstname(); + boolean that_present_firstname = true && that.isSetFirstname(); + if (this_present_firstname || that_present_firstname) { + if (!(this_present_firstname && that_present_firstname)) + return false; + if (!this.firstname.equals(that.firstname)) + return false; + } + + boolean this_present_mail = true && this.isSetMail(); + boolean that_present_mail = true && that.isSetMail(); + if (this_present_mail || that_present_mail) { + if (!(this_present_mail && that_present_mail)) + return false; + if (!this.mail.equals(that.mail)) + return false; + } + + boolean this_present_Institution = true && this.isSetInstitution(); + boolean that_present_Institution = true && that.isSetInstitution(); + if (this_present_Institution || that_present_Institution) { + if (!(this_present_Institution && that_present_Institution)) + return false; + if (!this.Institution.equals(that.Institution)) return false; } @@ -13299,29 +15320,59 @@ public class Server { } @Override - public int compareTo(getPersonData_args other) { + public int compareTo(setPerson_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetVorname()).compareTo(other.isSetVorname()); + lastComparison = Boolean.valueOf(isSetLogin()).compareTo(other.isSetLogin()); if (lastComparison != 0) { return lastComparison; } - if (isSetVorname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Vorname, other.Vorname); + if (isSetLogin()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.login, other.login); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNachname()).compareTo(other.isSetNachname()); + lastComparison = Boolean.valueOf(isSetLastname()).compareTo(other.isSetLastname()); if (lastComparison != 0) { return lastComparison; } - if (isSetNachname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Nachname, other.Nachname); + if (isSetLastname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastname, other.lastname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFirstname()).compareTo(other.isSetFirstname()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFirstname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstname, other.firstname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMail()).compareTo(other.isSetMail()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMail()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, other.mail); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetInstitution()).compareTo(other.isSetInstitution()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetInstitution()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.Institution, other.Institution); if (lastComparison != 0) { return lastComparison; } @@ -13343,22 +15394,46 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPersonData_args("); + StringBuilder sb = new StringBuilder("setPerson_args("); boolean first = true; - sb.append("Vorname:"); - if (this.Vorname == null) { + sb.append("login:"); + if (this.login == null) { sb.append("null"); } else { - sb.append(this.Vorname); + sb.append(this.login); } first = false; if (!first) sb.append(", "); - sb.append("Nachname:"); - if (this.Nachname == null) { + sb.append("lastname:"); + if (this.lastname == null) { sb.append("null"); } else { - sb.append(this.Nachname); + sb.append(this.lastname); + } + first = false; + if (!first) sb.append(", "); + sb.append("firstname:"); + if (this.firstname == null) { + sb.append("null"); + } else { + sb.append(this.firstname); + } + first = false; + if (!first) sb.append(", "); + sb.append("mail:"); + if (this.mail == null) { + sb.append("null"); + } else { + sb.append(this.mail); + } + first = false; + if (!first) sb.append(", "); + sb.append("Institution:"); + if (this.Institution == null) { + sb.append("null"); + } else { + sb.append(this.Institution); } first = false; sb.append(")"); @@ -13386,15 +15461,15 @@ public class Server { } } - private static class getPersonData_argsStandardSchemeFactory implements SchemeFactory { - public getPersonData_argsStandardScheme getScheme() { - return new getPersonData_argsStandardScheme(); + private static class setPerson_argsStandardSchemeFactory implements SchemeFactory { + public setPerson_argsStandardScheme getScheme() { + return new setPerson_argsStandardScheme(); } } - private static class getPersonData_argsStandardScheme extends StandardScheme { + private static class setPerson_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setPerson_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13404,18 +15479,42 @@ public class Server { break; } switch (schemeField.id) { - case 1: // VORNAME + case 1: // LOGIN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Vorname = iprot.readString(); - struct.setVornameIsSet(true); + struct.login = iprot.readString(); + struct.setLoginIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NACHNAME + case 2: // LASTNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.Nachname = iprot.readString(); - struct.setNachnameIsSet(true); + struct.lastname = iprot.readString(); + struct.setLastnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FIRSTNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.firstname = iprot.readString(); + struct.setFirstnameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAIL + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // INSTITUTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.Institution = iprot.readString(); + struct.setInstitutionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13431,18 +15530,33 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setPerson_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.Vorname != null) { - oprot.writeFieldBegin(VORNAME_FIELD_DESC); - oprot.writeString(struct.Vorname); + if (struct.login != null) { + oprot.writeFieldBegin(LOGIN_FIELD_DESC); + oprot.writeString(struct.login); + oprot.writeFieldEnd(); + } + if (struct.lastname != null) { + oprot.writeFieldBegin(LASTNAME_FIELD_DESC); + oprot.writeString(struct.lastname); oprot.writeFieldEnd(); } - if (struct.Nachname != null) { - oprot.writeFieldBegin(NACHNAME_FIELD_DESC); - oprot.writeString(struct.Nachname); + if (struct.firstname != null) { + oprot.writeFieldBegin(FIRSTNAME_FIELD_DESC); + oprot.writeString(struct.firstname); + oprot.writeFieldEnd(); + } + if (struct.mail != null) { + oprot.writeFieldBegin(MAIL_FIELD_DESC); + oprot.writeString(struct.mail); + oprot.writeFieldEnd(); + } + if (struct.Institution != null) { + oprot.writeFieldBegin(INSTITUTION_FIELD_DESC); + oprot.writeString(struct.Institution); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -13451,66 +15565,94 @@ public class Server { } - private static class getPersonData_argsTupleSchemeFactory implements SchemeFactory { - public getPersonData_argsTupleScheme getScheme() { - return new getPersonData_argsTupleScheme(); + private static class setPerson_argsTupleSchemeFactory implements SchemeFactory { + public setPerson_argsTupleScheme getScheme() { + return new setPerson_argsTupleScheme(); } } - private static class getPersonData_argsTupleScheme extends TupleScheme { + private static class setPerson_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setPerson_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetVorname()) { + if (struct.isSetLogin()) { optionals.set(0); } - if (struct.isSetNachname()) { + if (struct.isSetLastname()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetVorname()) { - oprot.writeString(struct.Vorname); + if (struct.isSetFirstname()) { + optionals.set(2); } - if (struct.isSetNachname()) { - oprot.writeString(struct.Nachname); + if (struct.isSetMail()) { + optionals.set(3); + } + if (struct.isSetInstitution()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetLogin()) { + oprot.writeString(struct.login); + } + if (struct.isSetLastname()) { + oprot.writeString(struct.lastname); + } + if (struct.isSetFirstname()) { + oprot.writeString(struct.firstname); + } + if (struct.isSetMail()) { + oprot.writeString(struct.mail); + } + if (struct.isSetInstitution()) { + oprot.writeString(struct.Institution); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setPerson_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.Vorname = iprot.readString(); - struct.setVornameIsSet(true); + struct.login = iprot.readString(); + struct.setLoginIsSet(true); } if (incoming.get(1)) { - struct.Nachname = iprot.readString(); - struct.setNachnameIsSet(true); + struct.lastname = iprot.readString(); + struct.setLastnameIsSet(true); + } + if (incoming.get(2)) { + struct.firstname = iprot.readString(); + struct.setFirstnameIsSet(true); + } + if (incoming.get(3)) { + struct.mail = iprot.readString(); + struct.setMailIsSet(true); + } + if (incoming.get(4)) { + struct.Institution = iprot.readString(); + struct.setInstitutionIsSet(true); } } } } - public static class getPersonData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPersonData_result"); + public static class setPerson_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPerson_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getPersonData_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getPersonData_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setPerson_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setPerson_resultTupleSchemeFactory()); } - public Map success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); +; private static final Map byName = new HashMap(); @@ -13525,8 +15667,6 @@ public class Server { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -13565,101 +15705,37 @@ public class Server { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPersonData_result.class, metaDataMap); - } - - public getPersonData_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPerson_result.class, metaDataMap); } - public getPersonData_result( - Map success) - { - this(); - this.success = success; + public setPerson_result() { } /** * Performs a deep copy on other. */ - public getPersonData_result(getPersonData_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); - this.success = __this__success; - } + public setPerson_result(setPerson_result other) { } - public getPersonData_result deepCopy() { - return new getPersonData_result(this); + public setPerson_result deepCopy() { + return new setPerson_result(this); } @Override public void clear() { - this.success = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, String val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); - } - - public Map getSuccess() { - return this.success; - } - - public getPersonData_result setSuccess(Map success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Map)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - } throw new IllegalStateException(); } @@ -13671,8 +15747,6 @@ public class Server { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -13681,24 +15755,15 @@ public class Server { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getPersonData_result) - return this.equals((getPersonData_result)that); + if (that instanceof setPerson_result) + return this.equals((setPerson_result)that); return false; } - public boolean equals(getPersonData_result that) { + public boolean equals(setPerson_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; } @@ -13708,23 +15773,13 @@ public class Server { } @Override - public int compareTo(getPersonData_result other) { + public int compareTo(setPerson_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -13742,16 +15797,9 @@ public class Server { @Override public String toString() { - StringBuilder sb = new StringBuilder("getPersonData_result("); + StringBuilder sb = new StringBuilder("setPerson_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(); } @@ -13777,15 +15825,15 @@ public class Server { } } - private static class getPersonData_resultStandardSchemeFactory implements SchemeFactory { - public getPersonData_resultStandardScheme getScheme() { - return new getPersonData_resultStandardScheme(); + private static class setPerson_resultStandardSchemeFactory implements SchemeFactory { + public setPerson_resultStandardScheme getScheme() { + return new setPerson_resultStandardScheme(); } } - private static class getPersonData_resultStandardScheme extends StandardScheme { + private static class setPerson_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getPersonData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setPerson_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13795,26 +15843,6 @@ public class Server { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map48.size); - for (int _i49 = 0; _i49 < _map48.size; ++_i49) - { - String _key50; - String _val51; - _key50 = iprot.readString(); - _val51 = iprot.readString(); - struct.success.put(_key50, _val51); - } - iprot.readMapEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13826,76 +15854,32 @@ public class Server { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getPersonData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setPerson_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter52 : struct.success.entrySet()) - { - oprot.writeString(_iter52.getKey()); - oprot.writeString(_iter52.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getPersonData_resultTupleSchemeFactory implements SchemeFactory { - public getPersonData_resultTupleScheme getScheme() { - return new getPersonData_resultTupleScheme(); + private static class setPerson_resultTupleSchemeFactory implements SchemeFactory { + public setPerson_resultTupleScheme getScheme() { + return new setPerson_resultTupleScheme(); } } - private static class getPersonData_resultTupleScheme extends TupleScheme { + private static class setPerson_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setPerson_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter53 : struct.success.entrySet()) - { - oprot.writeString(_iter53.getKey()); - oprot.writeString(_iter53.getValue()); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getPersonData_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setPerson_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map54 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map54.size); - for (int _i55 = 0; _i55 < _map54.size; ++_i55) - { - String _key56; - String _val57; - _key56 = iprot.readString(); - _val57 = iprot.readString(); - struct.success.put(_key56, _val57); - } - } - struct.setSuccessIsSet(true); - } } } -- cgit v1.2.3-55-g7522