From dd6c06d66706b20da08cbc13ae2869e420453911 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 23 Jun 2015 19:09:36 +0200 Subject: More minor interface changes --- .../openslx/bwlp/thrift/iface/SatelliteServer.java | 10206 +++++++++++++------ 1 file changed, 7246 insertions(+), 2960 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java index b45f0ed..ba52f7d 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -52,7 +52,7 @@ public class SatelliteServer { public void invalidateSession(String userToken) throws org.apache.thrift.TException; - public List getUserList(String userToken, int page) throws TAuthorizationException, org.apache.thrift.TException; + public List getUserList(String userToken, int page) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; public List getOperatingSystems() throws org.apache.thrift.TException; @@ -60,37 +60,41 @@ public class SatelliteServer { public List getAllOrganizations() throws org.apache.thrift.TException; - public List getImageList(String userToken, List tagSearch) throws TAuthorizationException, org.apache.thrift.TException; + public List getImageList(String userToken, List tagSearch) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; - public ImageDetailsRead getImageDetails(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public ImageDetailsRead getImageDetails(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public boolean createImage(String userToken, String imageName) throws TAuthorizationException, org.apache.thrift.TException; + public String createImage(String userToken, String imageName) throws TAuthorizationException, TImageDataException, TInternalServerError, org.apache.thrift.TException; - public boolean updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, org.apache.thrift.TException; + public void updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, org.apache.thrift.TException; - public boolean updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, org.apache.thrift.TException; + public void updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, org.apache.thrift.TException; - public boolean deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public void deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public boolean writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public void writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public Map getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public Map getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, org.apache.thrift.TException; + public void setImageOwner(String userToken, String imageBaseId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public boolean updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; - public List getLectureList(String userToken) throws TAuthorizationException, org.apache.thrift.TException; + public void updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public LectureRead getLectureDetails(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public List getLectureList(String userToken) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; - public List getLecturesByImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public LectureRead getLectureDetails(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public boolean deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public List getLecturesByImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public boolean writeLecturePermissions(String userToken, String lectureId, Map permissions) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public void deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public Map getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException; + public void writeLecturePermissions(String userToken, String lectureId, Map permissions) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; + + public Map getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; + + public void setLectureOwner(String userToken, String lectureId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; } @@ -136,6 +140,8 @@ public class SatelliteServer { public void getImagePermissions(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setImageOwner(String userToken, String imageBaseId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void updateLecture(String userToken, String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -152,6 +158,8 @@ public class SatelliteServer { public void getLecturePermissions(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void setLectureOwner(String userToken, String lectureId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + } public static class Client extends org.apache.thrift.TServiceClient implements Iface { @@ -364,7 +372,7 @@ public class SatelliteServer { return; } - public List getUserList(String userToken, int page) throws TAuthorizationException, org.apache.thrift.TException + public List getUserList(String userToken, int page) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { send_getUserList(userToken, page); return recv_getUserList(); @@ -378,7 +386,7 @@ public class SatelliteServer { sendBase("getUserList", args); } - public List recv_getUserList() throws TAuthorizationException, org.apache.thrift.TException + public List recv_getUserList() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { getUserList_result result = new getUserList_result(); receiveBase(result, "getUserList"); @@ -388,6 +396,9 @@ public class SatelliteServer { if (result.failure != null) { throw result.failure; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserList failed: unknown result"); } @@ -457,7 +468,7 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrganizations failed: unknown result"); } - public List getImageList(String userToken, List tagSearch) throws TAuthorizationException, org.apache.thrift.TException + public List getImageList(String userToken, List tagSearch) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { send_getImageList(userToken, tagSearch); return recv_getImageList(); @@ -471,7 +482,7 @@ public class SatelliteServer { sendBase("getImageList", args); } - public List recv_getImageList() throws TAuthorizationException, org.apache.thrift.TException + public List recv_getImageList() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { getImageList_result result = new getImageList_result(); receiveBase(result, "getImageList"); @@ -481,10 +492,13 @@ public class SatelliteServer { if (result.authError != null) { throw result.authError; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageList failed: unknown result"); } - public ImageDetailsRead getImageDetails(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public ImageDetailsRead getImageDetails(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_getImageDetails(userToken, imageBaseId); return recv_getImageDetails(); @@ -498,7 +512,7 @@ public class SatelliteServer { sendBase("getImageDetails", args); } - public ImageDetailsRead recv_getImageDetails() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public ImageDetailsRead recv_getImageDetails() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { getImageDetails_result result = new getImageDetails_result(); receiveBase(result, "getImageDetails"); @@ -511,10 +525,13 @@ public class SatelliteServer { if (result.notFound != null) { throw result.notFound; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageDetails failed: unknown result"); } - public boolean createImage(String userToken, String imageName) throws TAuthorizationException, org.apache.thrift.TException + public String createImage(String userToken, String imageName) throws TAuthorizationException, TImageDataException, TInternalServerError, org.apache.thrift.TException { send_createImage(userToken, imageName); return recv_createImage(); @@ -528,7 +545,7 @@ public class SatelliteServer { sendBase("createImage", args); } - public boolean recv_createImage() throws TAuthorizationException, org.apache.thrift.TException + public String recv_createImage() throws TAuthorizationException, TImageDataException, TInternalServerError, org.apache.thrift.TException { createImage_result result = new createImage_result(); receiveBase(result, "createImage"); @@ -538,13 +555,19 @@ public class SatelliteServer { if (result.authError != null) { throw result.authError; } + if (result.imgError != null) { + throw result.imgError; + } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createImage failed: unknown result"); } - public boolean updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, org.apache.thrift.TException + public void updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, org.apache.thrift.TException { send_updateImageBase(userToken, imageBaseId, image); - return recv_updateImageBase(); + recv_updateImageBase(); } public void send_updateImageBase(String userToken, String imageBaseId, ImageBaseWrite image) throws org.apache.thrift.TException @@ -556,23 +579,29 @@ public class SatelliteServer { sendBase("updateImageBase", args); } - public boolean recv_updateImageBase() throws TAuthorizationException, org.apache.thrift.TException + public void recv_updateImageBase() throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, org.apache.thrift.TException { updateImageBase_result result = new updateImageBase_result(); receiveBase(result, "updateImageBase"); - if (result.isSetSuccess()) { - return result.success; - } if (result.authError != null) { throw result.authError; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateImageBase failed: unknown result"); + if (result.notFound != null) { + throw result.notFound; + } + if (result.imgError != null) { + throw result.imgError; + } + if (result.serverError != null) { + throw result.serverError; + } + return; } - public boolean updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, org.apache.thrift.TException + public void updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, org.apache.thrift.TException { send_updateImageVersion(userToken, imageVersionId, image); - return recv_updateImageVersion(); + recv_updateImageVersion(); } public void send_updateImageVersion(String userToken, String imageVersionId, ImageVersionWrite image) throws org.apache.thrift.TException @@ -584,23 +613,29 @@ public class SatelliteServer { sendBase("updateImageVersion", args); } - public boolean recv_updateImageVersion() throws TAuthorizationException, org.apache.thrift.TException + public void recv_updateImageVersion() throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, org.apache.thrift.TException { updateImageVersion_result result = new updateImageVersion_result(); receiveBase(result, "updateImageVersion"); - if (result.isSetSuccess()) { - return result.success; - } if (result.authError != null) { throw result.authError; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateImageVersion failed: unknown result"); + if (result.notFound != null) { + throw result.notFound; + } + if (result.imgError != null) { + throw result.imgError; + } + if (result.serverError != null) { + throw result.serverError; + } + return; } - public boolean deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_deleteImageVersion(userToken, imageVersionId); - return recv_deleteImageVersion(); + recv_deleteImageVersion(); } public void send_deleteImageVersion(String userToken, String imageVersionId) throws org.apache.thrift.TException @@ -611,26 +646,26 @@ public class SatelliteServer { sendBase("deleteImageVersion", args); } - public boolean recv_deleteImageVersion() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void recv_deleteImageVersion() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { deleteImageVersion_result result = new deleteImageVersion_result(); receiveBase(result, "deleteImageVersion"); - if (result.isSetSuccess()) { - return result.success; - } if (result.authError != null) { throw result.authError; } if (result.notFound != null) { throw result.notFound; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteImageVersion failed: unknown result"); + if (result.serverError != null) { + throw result.serverError; + } + return; } - public boolean writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_writeImagePermissions(userToken, imageBaseId, permissions); - return recv_writeImagePermissions(); + recv_writeImagePermissions(); } public void send_writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws org.apache.thrift.TException @@ -642,23 +677,23 @@ public class SatelliteServer { sendBase("writeImagePermissions", args); } - public boolean recv_writeImagePermissions() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void recv_writeImagePermissions() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { writeImagePermissions_result result = new writeImagePermissions_result(); receiveBase(result, "writeImagePermissions"); - if (result.isSetSuccess()) { - return result.success; - } if (result.authError != null) { throw result.authError; } if (result.notFound != null) { throw result.notFound; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeImagePermissions failed: unknown result"); + if (result.serverError != null) { + throw result.serverError; + } + return; } - public Map getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public Map getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_getImagePermissions(userToken, imageBaseId); return recv_getImagePermissions(); @@ -672,7 +707,7 @@ public class SatelliteServer { sendBase("getImagePermissions", args); } - public Map recv_getImagePermissions() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public Map recv_getImagePermissions() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { getImagePermissions_result result = new getImagePermissions_result(); receiveBase(result, "getImagePermissions"); @@ -685,10 +720,44 @@ public class SatelliteServer { if (result.notFound != null) { throw result.notFound; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImagePermissions failed: unknown result"); } - public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, org.apache.thrift.TException + public void setImageOwner(String userToken, String imageBaseId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException + { + send_setImageOwner(userToken, imageBaseId, newOwnerId); + recv_setImageOwner(); + } + + public void send_setImageOwner(String userToken, String imageBaseId, String newOwnerId) throws org.apache.thrift.TException + { + setImageOwner_args args = new setImageOwner_args(); + args.setUserToken(userToken); + args.setImageBaseId(imageBaseId); + args.setNewOwnerId(newOwnerId); + sendBase("setImageOwner", args); + } + + public void recv_setImageOwner() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException + { + setImageOwner_result result = new setImageOwner_result(); + receiveBase(result, "setImageOwner"); + if (result.authError != null) { + throw result.authError; + } + if (result.notFound != null) { + throw result.notFound; + } + if (result.serverError != null) { + throw result.serverError; + } + return; + } + + public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { send_createLecture(userToken, lecture); return recv_createLecture(); @@ -702,7 +771,7 @@ public class SatelliteServer { sendBase("createLecture", args); } - public String recv_createLecture() throws TAuthorizationException, org.apache.thrift.TException + public String recv_createLecture() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { createLecture_result result = new createLecture_result(); receiveBase(result, "createLecture"); @@ -712,13 +781,16 @@ public class SatelliteServer { if (result.authError != null) { throw result.authError; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createLecture failed: unknown result"); } - public boolean updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_updateLecture(userToken, lectureId, lecture); - return recv_updateLecture(); + recv_updateLecture(); } public void send_updateLecture(String userToken, String lectureId, LectureWrite lecture) throws org.apache.thrift.TException @@ -730,23 +802,23 @@ public class SatelliteServer { sendBase("updateLecture", args); } - public boolean recv_updateLecture() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void recv_updateLecture() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { updateLecture_result result = new updateLecture_result(); receiveBase(result, "updateLecture"); - if (result.isSetSuccess()) { - return result.success; - } if (result.authError != null) { throw result.authError; } if (result.notFound != null) { throw result.notFound; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateLecture failed: unknown result"); + if (result.serverError != null) { + throw result.serverError; + } + return; } - public List getLectureList(String userToken) throws TAuthorizationException, org.apache.thrift.TException + public List getLectureList(String userToken) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { send_getLectureList(userToken); return recv_getLectureList(); @@ -759,7 +831,7 @@ public class SatelliteServer { sendBase("getLectureList", args); } - public List recv_getLectureList() throws TAuthorizationException, org.apache.thrift.TException + public List recv_getLectureList() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { getLectureList_result result = new getLectureList_result(); receiveBase(result, "getLectureList"); @@ -769,10 +841,13 @@ public class SatelliteServer { if (result.authError != null) { throw result.authError; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureList failed: unknown result"); } - public LectureRead getLectureDetails(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public LectureRead getLectureDetails(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_getLectureDetails(userToken, lectureId); return recv_getLectureDetails(); @@ -786,7 +861,7 @@ public class SatelliteServer { sendBase("getLectureDetails", args); } - public LectureRead recv_getLectureDetails() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public LectureRead recv_getLectureDetails() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { getLectureDetails_result result = new getLectureDetails_result(); receiveBase(result, "getLectureDetails"); @@ -799,10 +874,13 @@ public class SatelliteServer { if (result.notFound != null) { throw result.notFound; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLectureDetails failed: unknown result"); } - public List getLecturesByImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public List getLecturesByImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_getLecturesByImageVersion(userToken, imageVersionId); return recv_getLecturesByImageVersion(); @@ -816,7 +894,7 @@ public class SatelliteServer { sendBase("getLecturesByImageVersion", args); } - public List recv_getLecturesByImageVersion() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public List recv_getLecturesByImageVersion() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { getLecturesByImageVersion_result result = new getLecturesByImageVersion_result(); receiveBase(result, "getLecturesByImageVersion"); @@ -829,13 +907,16 @@ public class SatelliteServer { if (result.notFound != null) { throw result.notFound; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLecturesByImageVersion failed: unknown result"); } - public boolean deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_deleteLecture(userToken, lectureId); - return recv_deleteLecture(); + recv_deleteLecture(); } public void send_deleteLecture(String userToken, String lectureId) throws org.apache.thrift.TException @@ -846,26 +927,26 @@ public class SatelliteServer { sendBase("deleteLecture", args); } - public boolean recv_deleteLecture() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void recv_deleteLecture() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { deleteLecture_result result = new deleteLecture_result(); receiveBase(result, "deleteLecture"); - if (result.isSetSuccess()) { - return result.success; - } if (result.authError != null) { throw result.authError; } if (result.notFound != null) { throw result.notFound; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteLecture failed: unknown result"); + if (result.serverError != null) { + throw result.serverError; + } + return; } - public boolean writeLecturePermissions(String userToken, String lectureId, Map permissions) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void writeLecturePermissions(String userToken, String lectureId, Map permissions) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_writeLecturePermissions(userToken, lectureId, permissions); - return recv_writeLecturePermissions(); + recv_writeLecturePermissions(); } public void send_writeLecturePermissions(String userToken, String lectureId, Map permissions) throws org.apache.thrift.TException @@ -877,23 +958,23 @@ public class SatelliteServer { sendBase("writeLecturePermissions", args); } - public boolean recv_writeLecturePermissions() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public void recv_writeLecturePermissions() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { writeLecturePermissions_result result = new writeLecturePermissions_result(); receiveBase(result, "writeLecturePermissions"); - if (result.isSetSuccess()) { - return result.success; - } if (result.authError != null) { throw result.authError; } if (result.notFound != null) { throw result.notFound; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "writeLecturePermissions failed: unknown result"); + if (result.serverError != null) { + throw result.serverError; + } + return; } - public Map getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public Map getLecturePermissions(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_getLecturePermissions(userToken, lectureId); return recv_getLecturePermissions(); @@ -907,7 +988,7 @@ public class SatelliteServer { sendBase("getLecturePermissions", args); } - public Map recv_getLecturePermissions() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException + public Map recv_getLecturePermissions() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { getLecturePermissions_result result = new getLecturePermissions_result(); receiveBase(result, "getLecturePermissions"); @@ -920,9 +1001,43 @@ public class SatelliteServer { if (result.notFound != null) { throw result.notFound; } + if (result.serverError != null) { + throw result.serverError; + } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLecturePermissions failed: unknown result"); } + public void setLectureOwner(String userToken, String lectureId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException + { + send_setLectureOwner(userToken, lectureId, newOwnerId); + recv_setLectureOwner(); + } + + public void send_setLectureOwner(String userToken, String lectureId, String newOwnerId) throws org.apache.thrift.TException + { + setLectureOwner_args args = new setLectureOwner_args(); + args.setUserToken(userToken); + args.setLectureId(lectureId); + args.setNewOwnerId(newOwnerId); + sendBase("setLectureOwner", args); + } + + public void recv_setLectureOwner() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException + { + setLectureOwner_result result = new setLectureOwner_result(); + receiveBase(result, "setLectureOwner"); + if (result.authError != null) { + throw result.authError; + } + if (result.notFound != null) { + throw result.notFound; + } + if (result.serverError != null) { + throw result.serverError; + } + return; + } + } public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface { public static class Factory implements org.apache.thrift.async.TAsyncClientFactory { @@ -1231,7 +1346,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, org.apache.thrift.TException { + public List getResult() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1353,7 +1468,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, org.apache.thrift.TException { + public List getResult() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1388,7 +1503,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public ImageDetailsRead getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public ImageDetailsRead getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1423,7 +1538,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, org.apache.thrift.TException { + public String getResult() throws TAuthorizationException, TImageDataException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1461,13 +1576,13 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, org.apache.thrift.TException { + public void getResult() throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, 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_updateImageBase(); + (new Client(prot)).recv_updateImageBase(); } } @@ -1499,13 +1614,13 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, org.apache.thrift.TException { + public void getResult() throws TAuthorizationException, TNotFoundException, TImageDataException, TInternalServerError, 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_updateImageVersion(); + (new Client(prot)).recv_updateImageVersion(); } } @@ -1534,13 +1649,13 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, 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_deleteImageVersion(); + (new Client(prot)).recv_deleteImageVersion(); } } @@ -1572,13 +1687,13 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, 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_writeImagePermissions(); + (new Client(prot)).recv_writeImagePermissions(); } } @@ -1607,7 +1722,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public Map getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public Map getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1617,6 +1732,44 @@ public class SatelliteServer { } } + public void setImageOwner(String userToken, String imageBaseId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + setImageOwner_call method_call = new setImageOwner_call(userToken, imageBaseId, newOwnerId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class setImageOwner_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userToken; + private String imageBaseId; + private String newOwnerId; + public setImageOwner_call(String userToken, String imageBaseId, String newOwnerId, 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.userToken = userToken; + this.imageBaseId = imageBaseId; + this.newOwnerId = newOwnerId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setImageOwner", org.apache.thrift.protocol.TMessageType.CALL, 0)); + setImageOwner_args args = new setImageOwner_args(); + args.setUserToken(userToken); + args.setImageBaseId(imageBaseId); + args.setNewOwnerId(newOwnerId); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, 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_setImageOwner(); + } + } + public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createLecture_call method_call = new createLecture_call(userToken, lecture, resultHandler, this, ___protocolFactory, ___transport); @@ -1642,7 +1795,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public String getResult() throws TAuthorizationException, org.apache.thrift.TException { + public String getResult() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1680,13 +1833,13 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, 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_updateLecture(); + (new Client(prot)).recv_updateLecture(); } } @@ -1712,7 +1865,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, org.apache.thrift.TException { + public List getResult() throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1747,7 +1900,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public LectureRead getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public LectureRead getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1782,7 +1935,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public List getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public List getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1817,13 +1970,13 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, 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_deleteLecture(); + (new Client(prot)).recv_deleteLecture(); } } @@ -1855,13 +2008,13 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public boolean getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, 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_writeLecturePermissions(); + (new Client(prot)).recv_writeLecturePermissions(); } } @@ -1890,7 +2043,7 @@ public class SatelliteServer { prot.writeMessageEnd(); } - public Map getResult() throws TAuthorizationException, TNotFoundException, org.apache.thrift.TException { + public Map getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } @@ -1900,6 +2053,44 @@ public class SatelliteServer { } } + public void setLectureOwner(String userToken, String lectureId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + setLectureOwner_call method_call = new setLectureOwner_call(userToken, lectureId, newOwnerId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class setLectureOwner_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userToken; + private String lectureId; + private String newOwnerId; + public setLectureOwner_call(String userToken, String lectureId, String newOwnerId, 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.userToken = userToken; + this.lectureId = lectureId; + this.newOwnerId = newOwnerId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLectureOwner", org.apache.thrift.protocol.TMessageType.CALL, 0)); + setLectureOwner_args args = new setLectureOwner_args(); + args.setUserToken(userToken); + args.setLectureId(lectureId); + args.setNewOwnerId(newOwnerId); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, 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_setLectureOwner(); + } + } + } public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor { @@ -1933,6 +2124,7 @@ public class SatelliteServer { processMap.put("deleteImageVersion", new deleteImageVersion()); processMap.put("writeImagePermissions", new writeImagePermissions()); processMap.put("getImagePermissions", new getImagePermissions()); + processMap.put("setImageOwner", new setImageOwner()); processMap.put("createLecture", new createLecture()); processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); @@ -1941,6 +2133,7 @@ public class SatelliteServer { processMap.put("deleteLecture", new deleteLecture()); processMap.put("writeLecturePermissions", new writeLecturePermissions()); processMap.put("getLecturePermissions", new getLecturePermissions()); + processMap.put("setLectureOwner", new setLectureOwner()); return processMap; } @@ -2139,6 +2332,8 @@ public class SatelliteServer { result.success = iface.getUserList(args.userToken, args.page); } catch (TAuthorizationException failure) { result.failure = failure; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2223,6 +2418,8 @@ public class SatelliteServer { result.success = iface.getImageList(args.userToken, args.tagSearch); } catch (TAuthorizationException authError) { result.authError = authError; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2249,6 +2446,8 @@ public class SatelliteServer { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2271,9 +2470,12 @@ public class SatelliteServer { createImage_result result = new createImage_result(); try { result.success = iface.createImage(args.userToken, args.imageName); - result.setSuccessIsSet(true); } catch (TAuthorizationException authError) { result.authError = authError; + } catch (TImageDataException imgError) { + result.imgError = imgError; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2295,10 +2497,15 @@ public class SatelliteServer { public updateImageBase_result getResult(I iface, updateImageBase_args args) throws org.apache.thrift.TException { updateImageBase_result result = new updateImageBase_result(); try { - result.success = iface.updateImageBase(args.userToken, args.imageBaseId, args.image); - result.setSuccessIsSet(true); + iface.updateImageBase(args.userToken, args.imageBaseId, args.image); } catch (TAuthorizationException authError) { result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TImageDataException imgError) { + result.imgError = imgError; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2320,10 +2527,15 @@ public class SatelliteServer { public updateImageVersion_result getResult(I iface, updateImageVersion_args args) throws org.apache.thrift.TException { updateImageVersion_result result = new updateImageVersion_result(); try { - result.success = iface.updateImageVersion(args.userToken, args.imageVersionId, args.image); - result.setSuccessIsSet(true); + iface.updateImageVersion(args.userToken, args.imageVersionId, args.image); } catch (TAuthorizationException authError) { result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TImageDataException imgError) { + result.imgError = imgError; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2345,12 +2557,13 @@ public class SatelliteServer { public deleteImageVersion_result getResult(I iface, deleteImageVersion_args args) throws org.apache.thrift.TException { deleteImageVersion_result result = new deleteImageVersion_result(); try { - result.success = iface.deleteImageVersion(args.userToken, args.imageVersionId); - result.setSuccessIsSet(true); + iface.deleteImageVersion(args.userToken, args.imageVersionId); } catch (TAuthorizationException authError) { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2372,12 +2585,13 @@ public class SatelliteServer { public writeImagePermissions_result getResult(I iface, writeImagePermissions_args args) throws org.apache.thrift.TException { writeImagePermissions_result result = new writeImagePermissions_result(); try { - result.success = iface.writeImagePermissions(args.userToken, args.imageBaseId, args.permissions); - result.setSuccessIsSet(true); + iface.writeImagePermissions(args.userToken, args.imageBaseId, args.permissions); } catch (TAuthorizationException authError) { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2404,6 +2618,36 @@ public class SatelliteServer { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; + } + return result; + } + } + + public static class setImageOwner extends org.apache.thrift.ProcessFunction { + public setImageOwner() { + super("setImageOwner"); + } + + public setImageOwner_args getEmptyArgsInstance() { + return new setImageOwner_args(); + } + + protected boolean isOneway() { + return false; + } + + public setImageOwner_result getResult(I iface, setImageOwner_args args) throws org.apache.thrift.TException { + setImageOwner_result result = new setImageOwner_result(); + try { + iface.setImageOwner(args.userToken, args.imageBaseId, args.newOwnerId); + } catch (TAuthorizationException authError) { + result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2428,6 +2672,8 @@ public class SatelliteServer { result.success = iface.createLecture(args.userToken, args.lecture); } catch (TAuthorizationException authError) { result.authError = authError; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2449,12 +2695,13 @@ public class SatelliteServer { public updateLecture_result getResult(I iface, updateLecture_args args) throws org.apache.thrift.TException { updateLecture_result result = new updateLecture_result(); try { - result.success = iface.updateLecture(args.userToken, args.lectureId, args.lecture); - result.setSuccessIsSet(true); + iface.updateLecture(args.userToken, args.lectureId, args.lecture); } catch (TAuthorizationException authError) { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2479,6 +2726,8 @@ public class SatelliteServer { result.success = iface.getLectureList(args.userToken); } catch (TAuthorizationException authError) { result.authError = authError; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2505,6 +2754,8 @@ public class SatelliteServer { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2531,6 +2782,8 @@ public class SatelliteServer { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2552,12 +2805,13 @@ public class SatelliteServer { public deleteLecture_result getResult(I iface, deleteLecture_args args) throws org.apache.thrift.TException { deleteLecture_result result = new deleteLecture_result(); try { - result.success = iface.deleteLecture(args.userToken, args.lectureId); - result.setSuccessIsSet(true); + iface.deleteLecture(args.userToken, args.lectureId); } catch (TAuthorizationException authError) { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2579,12 +2833,13 @@ public class SatelliteServer { public writeLecturePermissions_result getResult(I iface, writeLecturePermissions_args args) throws org.apache.thrift.TException { writeLecturePermissions_result result = new writeLecturePermissions_result(); try { - result.success = iface.writeLecturePermissions(args.userToken, args.lectureId, args.permissions); - result.setSuccessIsSet(true); + iface.writeLecturePermissions(args.userToken, args.lectureId, args.permissions); } catch (TAuthorizationException authError) { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2611,6 +2866,36 @@ public class SatelliteServer { result.authError = authError; } catch (TNotFoundException notFound) { result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; + } + return result; + } + } + + public static class setLectureOwner extends org.apache.thrift.ProcessFunction { + public setLectureOwner() { + super("setLectureOwner"); + } + + public setLectureOwner_args getEmptyArgsInstance() { + return new setLectureOwner_args(); + } + + protected boolean isOneway() { + return false; + } + + public setLectureOwner_result getResult(I iface, setLectureOwner_args args) throws org.apache.thrift.TException { + setLectureOwner_result result = new setLectureOwner_result(); + try { + iface.setLectureOwner(args.userToken, args.lectureId, args.newOwnerId); + } catch (TAuthorizationException authError) { + result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; } return result; } @@ -2649,6 +2934,7 @@ public class SatelliteServer { processMap.put("deleteImageVersion", new deleteImageVersion()); processMap.put("writeImagePermissions", new writeImagePermissions()); processMap.put("getImagePermissions", new getImagePermissions()); + processMap.put("setImageOwner", new setImageOwner()); processMap.put("createLecture", new createLecture()); processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); @@ -2657,6 +2943,7 @@ public class SatelliteServer { processMap.put("deleteLecture", new deleteLecture()); processMap.put("writeLecturePermissions", new writeLecturePermissions()); processMap.put("getLecturePermissions", new getLecturePermissions()); + processMap.put("setLectureOwner", new setLectureOwner()); return processMap; } @@ -3121,6 +3408,11 @@ public class SatelliteServer { result.failure = (TAuthorizationException) e; result.setFailureIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3331,6 +3623,11 @@ public class SatelliteServer { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3393,6 +3690,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3419,7 +3721,7 @@ public class SatelliteServer { } } - public static class createImage extends org.apache.thrift.AsyncProcessFunction { + public static class createImage extends org.apache.thrift.AsyncProcessFunction { public createImage() { super("createImage"); } @@ -3428,13 +3730,12 @@ public class SatelliteServer { return new createImage_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new AsyncMethodCallback() { + public void onComplete(String o) { createImage_result result = new createImage_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -3451,6 +3752,16 @@ public class SatelliteServer { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); msg = result; + } + else if (e instanceof TImageDataException) { + result.imgError = (TImageDataException) e; + result.setImgErrorIsSet(true); + msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3472,12 +3783,12 @@ public class SatelliteServer { return false; } - public void start(I iface, createImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, createImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.createImage(args.userToken, args.imageName,resultHandler); } } - public static class updateImageBase extends org.apache.thrift.AsyncProcessFunction { + public static class updateImageBase extends org.apache.thrift.AsyncProcessFunction { public updateImageBase() { super("updateImageBase"); } @@ -3486,13 +3797,11 @@ public class SatelliteServer { return new updateImageBase_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new AsyncMethodCallback() { + public void onComplete(Void o) { updateImageBase_result result = new updateImageBase_result(); - result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -3509,6 +3818,21 @@ public class SatelliteServer { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); msg = result; + } + else if (e instanceof TNotFoundException) { + result.notFound = (TNotFoundException) e; + result.setNotFoundIsSet(true); + msg = result; + } + else if (e instanceof TImageDataException) { + result.imgError = (TImageDataException) e; + result.setImgErrorIsSet(true); + msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3530,12 +3854,12 @@ public class SatelliteServer { return false; } - public void start(I iface, updateImageBase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateImageBase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.updateImageBase(args.userToken, args.imageBaseId, args.image,resultHandler); } } - public static class updateImageVersion extends org.apache.thrift.AsyncProcessFunction { + public static class updateImageVersion extends org.apache.thrift.AsyncProcessFunction { public updateImageVersion() { super("updateImageVersion"); } @@ -3544,13 +3868,11 @@ public class SatelliteServer { return new updateImageVersion_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new AsyncMethodCallback() { + public void onComplete(Void o) { updateImageVersion_result result = new updateImageVersion_result(); - result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -3567,6 +3889,21 @@ public class SatelliteServer { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); msg = result; + } + else if (e instanceof TNotFoundException) { + result.notFound = (TNotFoundException) e; + result.setNotFoundIsSet(true); + msg = result; + } + else if (e instanceof TImageDataException) { + result.imgError = (TImageDataException) e; + result.setImgErrorIsSet(true); + msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3588,12 +3925,12 @@ public class SatelliteServer { return false; } - public void start(I iface, updateImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.updateImageVersion(args.userToken, args.imageVersionId, args.image,resultHandler); } } - public static class deleteImageVersion extends org.apache.thrift.AsyncProcessFunction { + public static class deleteImageVersion extends org.apache.thrift.AsyncProcessFunction { public deleteImageVersion() { super("deleteImageVersion"); } @@ -3602,13 +3939,11 @@ public class SatelliteServer { return new deleteImageVersion_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new AsyncMethodCallback() { + public void onComplete(Void o) { deleteImageVersion_result result = new deleteImageVersion_result(); - result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -3630,6 +3965,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3651,12 +3991,12 @@ public class SatelliteServer { return false; } - public void start(I iface, deleteImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.deleteImageVersion(args.userToken, args.imageVersionId,resultHandler); } } - public static class writeImagePermissions extends org.apache.thrift.AsyncProcessFunction { + public static class writeImagePermissions extends org.apache.thrift.AsyncProcessFunction { public writeImagePermissions() { super("writeImagePermissions"); } @@ -3665,13 +4005,11 @@ public class SatelliteServer { return new writeImagePermissions_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - writeImagePermissions_result result = new writeImagePermissions_result(); - result.success = o; - result.setSuccessIsSet(true); + return new AsyncMethodCallback() { + public void onComplete(Void o) { + writeImagePermissions_result result = new writeImagePermissions_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -3693,6 +4031,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3714,7 +4057,7 @@ public class SatelliteServer { return false; } - public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.writeImagePermissions(args.userToken, args.imageBaseId, args.permissions,resultHandler); } } @@ -3755,6 +4098,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3781,6 +4129,72 @@ public class SatelliteServer { } } + public static class setImageOwner extends org.apache.thrift.AsyncProcessFunction { + public setImageOwner() { + super("setImageOwner"); + } + + public setImageOwner_args getEmptyArgsInstance() { + return new setImageOwner_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) { + setImageOwner_result result = new setImageOwner_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; + setImageOwner_result result = new setImageOwner_result(); + if (e instanceof TAuthorizationException) { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } + else if (e instanceof TNotFoundException) { + result.notFound = (TNotFoundException) e; + result.setNotFoundIsSet(true); + msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; + } + else + { + 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, setImageOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.setImageOwner(args.userToken, args.imageBaseId, args.newOwnerId,resultHandler); + } + } + public static class createLecture extends org.apache.thrift.AsyncProcessFunction { public createLecture() { super("createLecture"); @@ -3812,6 +4226,11 @@ public class SatelliteServer { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3838,7 +4257,7 @@ public class SatelliteServer { } } - public static class updateLecture extends org.apache.thrift.AsyncProcessFunction { + public static class updateLecture extends org.apache.thrift.AsyncProcessFunction { public updateLecture() { super("updateLecture"); } @@ -3847,13 +4266,11 @@ public class SatelliteServer { return new updateLecture_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new AsyncMethodCallback() { + public void onComplete(Void o) { updateLecture_result result = new updateLecture_result(); - result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -3875,6 +4292,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3896,7 +4318,7 @@ public class SatelliteServer { return false; } - public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.updateLecture(args.userToken, args.lectureId, args.lecture,resultHandler); } } @@ -3932,6 +4354,11 @@ public class SatelliteServer { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -3994,6 +4421,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -4056,6 +4488,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -4082,7 +4519,7 @@ public class SatelliteServer { } } - public static class deleteLecture extends org.apache.thrift.AsyncProcessFunction { + public static class deleteLecture extends org.apache.thrift.AsyncProcessFunction { public deleteLecture() { super("deleteLecture"); } @@ -4091,13 +4528,11 @@ public class SatelliteServer { return new deleteLecture_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new AsyncMethodCallback() { + public void onComplete(Void o) { deleteLecture_result result = new deleteLecture_result(); - result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4119,6 +4554,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -4140,12 +4580,12 @@ public class SatelliteServer { return false; } - public void start(I iface, deleteLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, deleteLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.deleteLecture(args.userToken, args.lectureId,resultHandler); } } - public static class writeLecturePermissions extends org.apache.thrift.AsyncProcessFunction { + public static class writeLecturePermissions extends org.apache.thrift.AsyncProcessFunction { public writeLecturePermissions() { super("writeLecturePermissions"); } @@ -4154,13 +4594,11 @@ public class SatelliteServer { return new writeLecturePermissions_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { + return new AsyncMethodCallback() { + public void onComplete(Void o) { writeLecturePermissions_result result = new writeLecturePermissions_result(); - result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4182,6 +4620,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -4203,7 +4646,7 @@ public class SatelliteServer { return false; } - public void start(I iface, writeLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + public void start(I iface, writeLecturePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { iface.writeLecturePermissions(args.userToken, args.lectureId, args.permissions,resultHandler); } } @@ -4244,6 +4687,11 @@ public class SatelliteServer { result.notFound = (TNotFoundException) e; result.setNotFoundIsSet(true); msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; } else { @@ -4270,6 +4718,72 @@ public class SatelliteServer { } } + public static class setLectureOwner extends org.apache.thrift.AsyncProcessFunction { + public setLectureOwner() { + super("setLectureOwner"); + } + + public setLectureOwner_args getEmptyArgsInstance() { + return new setLectureOwner_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) { + setLectureOwner_result result = new setLectureOwner_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; + setLectureOwner_result result = new setLectureOwner_result(); + if (e instanceof TAuthorizationException) { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } + else if (e instanceof TNotFoundException) { + result.notFound = (TNotFoundException) e; + result.setNotFoundIsSet(true); + msg = result; + } + else if (e instanceof TInternalServerError) { + result.serverError = (TInternalServerError) e; + result.setServerErrorIsSet(true); + msg = result; + } + else + { + 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, setLectureOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.setLectureOwner(args.userToken, args.lectureId, args.newOwnerId,resultHandler); + } + } + } public static class getVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { @@ -10831,6 +11345,7 @@ public class SatelliteServer { 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 FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -10840,11 +11355,13 @@ public class SatelliteServer { public List success; // required public TAuthorizationException failure; // required + public TInternalServerError serverError; // 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"), - FAILURE((short)1, "failure"); + FAILURE((short)1, "failure"), + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -10863,6 +11380,8 @@ public class SatelliteServer { return SUCCESS; case 1: // FAILURE return FAILURE; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -10911,6 +11430,8 @@ public class SatelliteServer { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class)))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_result.class, metaDataMap); } @@ -10920,11 +11441,13 @@ public class SatelliteServer { public getUserList_result( List success, - TAuthorizationException failure) + TAuthorizationException failure, + TInternalServerError serverError) { this(); this.success = success; this.failure = failure; + this.serverError = serverError; } /** @@ -10941,6 +11464,9 @@ public class SatelliteServer { if (other.isSetFailure()) { this.failure = new TAuthorizationException(other.failure); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } public getUserList_result deepCopy() { @@ -10951,6 +11477,7 @@ public class SatelliteServer { public void clear() { this.success = null; this.failure = null; + this.serverError = null; } public int getSuccessSize() { @@ -11016,6 +11543,30 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public getUserList_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -11034,6 +11585,14 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } @@ -11045,6 +11604,9 @@ public class SatelliteServer { case FAILURE: return getFailure(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -11060,6 +11622,8 @@ public class SatelliteServer { return isSetSuccess(); case FAILURE: return isSetFailure(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -11095,6 +11659,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -11131,6 +11704,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -11166,6 +11749,14 @@ public class SatelliteServer { sb.append(this.failure); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -11237,6 +11828,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11269,6 +11869,11 @@ public class SatelliteServer { struct.failure.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -11293,7 +11898,10 @@ public class SatelliteServer { if (struct.isSetFailure()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); @@ -11306,12 +11914,15 @@ public class SatelliteServer { if (struct.isSetFailure()) { struct.failure.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); @@ -11331,6 +11942,11 @@ public class SatelliteServer { struct.failure.read(iprot); struct.setFailureIsSet(true); } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } @@ -13806,6 +14422,7 @@ public class SatelliteServer { 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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -13815,11 +14432,13 @@ public class SatelliteServer { public List success; // required public TAuthorizationException authError; // required + public TInternalServerError serverError; // 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"), - AUTH_ERROR((short)1, "authError"); + AUTH_ERROR((short)1, "authError"), + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -13838,6 +14457,8 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -13886,6 +14507,8 @@ public class SatelliteServer { new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageSummaryRead.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); } @@ -13895,11 +14518,13 @@ public class SatelliteServer { public getImageList_result( List success, - TAuthorizationException authError) + TAuthorizationException authError, + TInternalServerError serverError) { this(); this.success = success; this.authError = authError; + this.serverError = serverError; } /** @@ -13916,6 +14541,9 @@ public class SatelliteServer { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } public getImageList_result deepCopy() { @@ -13926,6 +14554,7 @@ public class SatelliteServer { public void clear() { this.success = null; this.authError = null; + this.serverError = null; } public int getSuccessSize() { @@ -13991,6 +14620,30 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public getImageList_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -14009,6 +14662,14 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } @@ -14020,6 +14681,9 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -14035,6 +14699,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -14070,6 +14736,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -14106,6 +14781,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -14141,6 +14826,14 @@ public class SatelliteServer { sb.append(this.authError); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -14212,6 +14905,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14244,6 +14946,11 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -14268,7 +14975,10 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); @@ -14281,12 +14991,15 @@ public class SatelliteServer { if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); @@ -14306,6 +15019,11 @@ public class SatelliteServer { struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } @@ -14771,6 +15489,7 @@ public class SatelliteServer { private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -14781,12 +15500,14 @@ public class SatelliteServer { public ImageDetailsRead success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -14807,6 +15528,8 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -14856,6 +15579,8 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap); } @@ -14866,12 +15591,14 @@ public class SatelliteServer { public getImageDetails_result( ImageDetailsRead success, TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); this.success = success; this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** @@ -14887,6 +15614,9 @@ public class SatelliteServer { if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } public getImageDetails_result deepCopy() { @@ -14898,6 +15628,7 @@ public class SatelliteServer { this.success = null; this.authError = null; this.notFound = null; + this.serverError = null; } public ImageDetailsRead getSuccess() { @@ -14972,6 +15703,30 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public getImageDetails_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -14998,6 +15753,14 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } @@ -15012,6 +15775,9 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -15029,6 +15795,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -15073,6 +15841,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -15119,6 +15896,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -15162,6 +15949,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -15235,6 +16030,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15265,6 +16069,11 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -15292,7 +16101,10 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -15302,12 +16114,15 @@ public class SatelliteServer { if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new ImageDetailsRead(); struct.success.read(iprot); @@ -15323,6 +16138,11 @@ public class SatelliteServer { struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } @@ -15785,8 +16605,10 @@ public class SatelliteServer { public static class createImage_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("createImage_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.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -15794,13 +16616,17 @@ public class SatelliteServer { schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); } - public boolean success; // required + public String success; // required public TAuthorizationException authError; // required + public TImageDataException imgError; // required + public TInternalServerError serverError; // 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"), - AUTH_ERROR((short)1, "authError"); + AUTH_ERROR((short)1, "authError"), + IMG_ERROR((short)2, "imgError"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -15819,6 +16645,10 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; + case 2: // IMG_ERROR + return IMG_ERROR; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -15859,15 +16689,17 @@ public class SatelliteServer { } // 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_result.class, metaDataMap); } @@ -15876,24 +16708,34 @@ public class SatelliteServer { } public createImage_result( - boolean success, - TAuthorizationException authError) + String success, + TAuthorizationException authError, + TImageDataException imgError, + TInternalServerError serverError) { this(); this.success = success; - setSuccessIsSet(true); this.authError = authError; + this.imgError = imgError; + this.serverError = serverError; } /** * Performs a deep copy on other. */ public createImage_result(createImage_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + if (other.isSetSuccess()) { + this.success = other.success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } + if (other.isSetImgError()) { + this.imgError = new TImageDataException(other.imgError); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } public createImage_result deepCopy() { @@ -15902,32 +16744,34 @@ public class SatelliteServer { @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.authError = null; + this.imgError = null; + this.serverError = null; } - public boolean isSuccess() { + public String getSuccess() { return this.success; } - public createImage_result setSuccess(boolean success) { + public createImage_result setSuccess(String 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 TAuthorizationException getAuthError() { @@ -15954,13 +16798,61 @@ public class SatelliteServer { } } + public TImageDataException getImgError() { + return this.imgError; + } + + public createImage_result setImgError(TImageDataException imgError) { + this.imgError = imgError; + return this; + } + + public void unsetImgError() { + this.imgError = null; + } + + /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ + public boolean isSetImgError() { + return this.imgError != null; + } + + public void setImgErrorIsSet(boolean value) { + if (!value) { + this.imgError = null; + } + } + + public TInternalServerError getServerError() { + return this.serverError; + } + + public createImage_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((String)value); } break; @@ -15972,17 +16864,39 @@ public class SatelliteServer { } break; + case IMG_ERROR: + if (value == null) { + unsetImgError(); + } else { + setImgError((TImageDataException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case AUTH_ERROR: return getAuthError(); + case IMG_ERROR: + return getImgError(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -15998,6 +16912,10 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case IMG_ERROR: + return isSetImgError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -16015,12 +16933,12 @@ public class SatelliteServer { 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; } @@ -16033,6 +16951,24 @@ public class SatelliteServer { return false; } + boolean this_present_imgError = true && this.isSetImgError(); + boolean that_present_imgError = true && that.isSetImgError(); + if (this_present_imgError || that_present_imgError) { + if (!(this_present_imgError && that_present_imgError)) + return false; + if (!this.imgError.equals(that.imgError)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -16069,6 +17005,26 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -16090,7 +17046,11 @@ public class SatelliteServer { boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("authError:"); @@ -16100,6 +17060,22 @@ public class SatelliteServer { sb.append(this.authError); } first = false; + if (!first) sb.append(", "); + sb.append("imgError:"); + if (this.imgError == null) { + sb.append("null"); + } else { + sb.append(this.imgError); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -16119,8 +17095,6 @@ public class SatelliteServer { 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); @@ -16146,8 +17120,8 @@ public class SatelliteServer { } 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.STRING) { + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -16162,6 +17136,24 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // IMG_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16177,9 +17169,9 @@ public class SatelliteServer { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + oprot.writeString(struct.success); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -16187,6 +17179,16 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -16211,21 +17213,33 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetImgError()) { + optionals.set(2); + } + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + oprot.writeString(struct.success); } if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetImgError()) { + struct.imgError.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -16233,6 +17247,16 @@ public class SatelliteServer { struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(2)) { + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } @@ -16800,8 +17824,10 @@ public class SatelliteServer { public static class updateImageBase_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("updateImageBase_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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -16809,13 +17835,17 @@ public class SatelliteServer { schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); } - public boolean success; // required public TAuthorizationException authError; // required + public TNotFoundException notFound; // required + public TImageDataException imgError; // required + public TInternalServerError serverError; // 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"), - AUTH_ERROR((short)1, "authError"); + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + IMG_ERROR((short)3, "imgError"), + SERVER_ERROR((short)4, "serverError"); private static final Map byName = new HashMap(); @@ -16830,10 +17860,14 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // IMG_ERROR + return IMG_ERROR; + case 4: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -16874,15 +17908,17 @@ public class SatelliteServer { } // 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))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_result.class, metaDataMap); } @@ -16891,25 +17927,35 @@ public class SatelliteServer { } public updateImageBase_result( - boolean success, - TAuthorizationException authError) + TAuthorizationException authError, + TNotFoundException notFound, + TImageDataException imgError, + TInternalServerError serverError) { this(); - this.success = success; - setSuccessIsSet(true); this.authError = authError; + this.notFound = notFound; + this.imgError = imgError; + this.serverError = serverError; } /** * Performs a deep copy on other. */ public updateImageBase_result(updateImageBase_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetImgError()) { + this.imgError = new TImageDataException(other.imgError); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } + } public updateImageBase_result deepCopy() { return new updateImageBase_result(this); @@ -16917,73 +17963,2431 @@ public class SatelliteServer { @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.authError = null; + this.notFound = null; + this.imgError = null; + this.serverError = null; + } + + public TAuthorizationException getAuthError() { + return this.authError; + } + + public updateImageBase_result setAuthError(TAuthorizationException authError) { + this.authError = authError; + return this; + } + + public void unsetAuthError() { + this.authError = null; + } + + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; + } + + public void setAuthErrorIsSet(boolean value) { + if (!value) { + this.authError = null; + } + } + + public TNotFoundException getNotFound() { + return this.notFound; + } + + public updateImageBase_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; + return this; + } + + public void unsetNotFound() { + this.notFound = null; + } + + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; + } + + public void setNotFoundIsSet(boolean value) { + if (!value) { + this.notFound = null; + } + } + + public TImageDataException getImgError() { + return this.imgError; + } + + public updateImageBase_result setImgError(TImageDataException imgError) { + this.imgError = imgError; + return this; + } + + public void unsetImgError() { + this.imgError = null; + } + + /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ + public boolean isSetImgError() { + return this.imgError != null; + } + + public void setImgErrorIsSet(boolean value) { + if (!value) { + this.imgError = null; + } + } + + public TInternalServerError getServerError() { + return this.serverError; + } + + public updateImageBase_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + + case IMG_ERROR: + if (value == null) { + unsetImgError(); + } else { + setImgError((TImageDataException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case AUTH_ERROR: + return getAuthError(); + + case NOT_FOUND: + return getNotFound(); + + case IMG_ERROR: + return getImgError(); + + case SERVER_ERROR: + return getServerError(); + + } + 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 AUTH_ERROR: + return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); + case SERVER_ERROR: + return isSetServerError(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageBase_result) + return this.equals((updateImageBase_result)that); + return false; + } + + public boolean equals(updateImageBase_result that) { + if (that == null) + return false; + + boolean this_present_authError = true && this.isSetAuthError(); + boolean that_present_authError = true && that.isSetAuthError(); + if (this_present_authError || that_present_authError) { + if (!(this_present_authError && that_present_authError)) + return false; + if (!this.authError.equals(that.authError)) + return false; + } + + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_imgError = true && this.isSetImgError(); + boolean that_present_imgError = true && that.isSetImgError(); + if (this_present_imgError || that_present_imgError) { + if (!(this_present_imgError && that_present_imgError)) + return false; + if (!this.imgError.equals(that.imgError)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(updateImageBase_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + 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("updateImageBase_result("); + boolean first = true; + + sb.append("authError:"); + if (this.authError == null) { + sb.append("null"); + } else { + sb.append(this.authError); + } + first = false; + if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("imgError:"); + if (this.imgError == null) { + sb.append("null"); + } else { + sb.append(this.imgError); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + 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 { + 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 updateImageBase_resultStandardSchemeFactory implements SchemeFactory { + public updateImageBase_resultStandardScheme getScheme() { + return new updateImageBase_resultStandardScheme(); + } + } + + private static class updateImageBase_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_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 1: // AUTH_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMG_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(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, updateImageBase_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { + public updateImageBase_resultTupleScheme getScheme() { + return new updateImageBase_resultTupleScheme(); + } + } + + private static class updateImageBase_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetAuthError()) { + optionals.set(0); + } + if (struct.isSetNotFound()) { + optionals.set(1); + } + if (struct.isSetImgError()) { + optionals.set(2); + } + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetImgError()) { + struct.imgError.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(2)) { + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } + } + } + + } + + public static class updateImageVersion_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("updateImageVersion_args"); + + private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("image", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_argsTupleSchemeFactory()); + } + + public String userToken; // required + public String imageVersionId; // required + public ImageVersionWrite image; // 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_TOKEN((short)1, "userToken"), + IMAGE_VERSION_ID((short)2, "imageVersionId"), + IMAGE((short)3, "image"); + + 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: // USER_TOKEN + return USER_TOKEN; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; + case 3: // IMAGE + return IMAGE; + 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 + 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_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.IMAGE, new org.apache.thrift.meta_data.FieldMetaData("image", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageVersionWrite.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); + } + + public updateImageVersion_args() { + } + + public updateImageVersion_args( + String userToken, + String imageVersionId, + ImageVersionWrite image) + { + this(); + this.userToken = userToken; + this.imageVersionId = imageVersionId; + this.image = image; + } + + /** + * Performs a deep copy on other. + */ + public updateImageVersion_args(updateImageVersion_args other) { + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; + } + if (other.isSetImage()) { + this.image = new ImageVersionWrite(other.image); + } + } + + public updateImageVersion_args deepCopy() { + return new updateImageVersion_args(this); + } + + @Override + public void clear() { + this.userToken = null; + this.imageVersionId = null; + this.image = null; + } + + public String getUserToken() { + return this.userToken; + } + + public updateImageVersion_args setUserToken(String userToken) { + this.userToken = userToken; + return this; + } + + public void unsetUserToken() { + this.userToken = null; + } + + /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUserToken() { + return this.userToken != null; + } + + public void setUserTokenIsSet(boolean value) { + if (!value) { + this.userToken = null; + } + } + + public String getImageVersionId() { + return this.imageVersionId; + } + + public updateImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; + return this; + } + + public void unsetImageVersionId() { + this.imageVersionId = null; + } + + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; + } + + public void setImageVersionIdIsSet(boolean value) { + if (!value) { + this.imageVersionId = null; + } + } + + public ImageVersionWrite getImage() { + return this.image; + } + + public updateImageVersion_args setImage(ImageVersionWrite image) { + this.image = image; + return this; + } + + public void unsetImage() { + this.image = null; + } + + /** Returns true if field image is set (has been assigned a value) and false otherwise */ + public boolean isSetImage() { + return this.image != null; + } + + public void setImageIsSet(boolean value) { + if (!value) { + this.image = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_TOKEN: + if (value == null) { + unsetUserToken(); + } else { + setUserToken((String)value); + } + break; + + case IMAGE_VERSION_ID: + if (value == null) { + unsetImageVersionId(); + } else { + setImageVersionId((String)value); + } + break; + + case IMAGE: + if (value == null) { + unsetImage(); + } else { + setImage((ImageVersionWrite)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_TOKEN: + return getUserToken(); + + case IMAGE_VERSION_ID: + return getImageVersionId(); + + case IMAGE: + return getImage(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); + case IMAGE: + return isSetImage(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageVersion_args) + return this.equals((updateImageVersion_args)that); + return false; + } + + public boolean equals(updateImageVersion_args that) { + if (that == null) + return false; + + boolean this_present_userToken = true && this.isSetUserToken(); + boolean that_present_userToken = true && that.isSetUserToken(); + if (this_present_userToken || that_present_userToken) { + if (!(this_present_userToken && that_present_userToken)) + return false; + if (!this.userToken.equals(that.userToken)) + return false; + } + + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) + return false; + if (!this.imageVersionId.equals(that.imageVersionId)) + return false; + } + + boolean this_present_image = true && this.isSetImage(); + boolean that_present_image = true && that.isSetImage(); + if (this_present_image || that_present_image) { + if (!(this_present_image && that_present_image)) + return false; + if (!this.image.equals(that.image)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(updateImageVersion_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); + 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("updateImageVersion_args("); + boolean first = true; + + sb.append("userToken:"); + if (this.userToken == null) { + sb.append("null"); + } else { + sb.append(this.userToken); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { + sb.append("null"); + } else { + sb.append(this.imageVersionId); + } + first = false; + if (!first) sb.append(", "); + sb.append("image:"); + if (this.image == null) { + sb.append("null"); + } else { + sb.append(this.image); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (image != null) { + image.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_argsStandardScheme getScheme() { + return new updateImageVersion_argsStandardScheme(); + } + } + + private static class updateImageVersion_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_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: // USER_TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IMAGE_VERSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMAGE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.image = new ImageVersionWrite(); + struct.image.read(iprot); + struct.setImageIsSet(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, updateImageVersion_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); + oprot.writeFieldEnd(); + } + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); + oprot.writeFieldEnd(); + } + if (struct.image != null) { + oprot.writeFieldBegin(IMAGE_FIELD_DESC); + struct.image.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_argsTupleScheme getScheme() { + return new updateImageVersion_argsTupleScheme(); + } + } + + private static class updateImageVersion_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserToken()) { + optionals.set(0); + } + if (struct.isSetImageVersionId()) { + optionals.set(1); + } + if (struct.isSetImage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); + } + if (struct.isSetImage()) { + struct.image.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); + } + if (incoming.get(2)) { + struct.image = new ImageVersionWrite(); + struct.image.read(iprot); + struct.setImageIsSet(true); + } + } + } + + } + + public static class updateImageVersion_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("updateImageVersion_result"); + + private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); + } + + public TAuthorizationException authError; // required + public TNotFoundException notFound; // required + public TImageDataException imgError; // required + public TInternalServerError serverError; // 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 { + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + IMG_ERROR((short)3, "imgError"), + SERVER_ERROR((short)4, "serverError"); + + 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: // AUTH_ERROR + return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // IMG_ERROR + return IMG_ERROR; + case 4: // SERVER_ERROR + return SERVER_ERROR; + 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 + 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.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); + } + + public updateImageVersion_result() { + } + + public updateImageVersion_result( + TAuthorizationException authError, + TNotFoundException notFound, + TImageDataException imgError, + TInternalServerError serverError) + { + this(); + this.authError = authError; + this.notFound = notFound; + this.imgError = imgError; + this.serverError = serverError; + } + + /** + * Performs a deep copy on other. + */ + public updateImageVersion_result(updateImageVersion_result other) { + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetImgError()) { + this.imgError = new TImageDataException(other.imgError); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } + } + + public updateImageVersion_result deepCopy() { + return new updateImageVersion_result(this); + } + + @Override + public void clear() { + this.authError = null; + this.notFound = null; + this.imgError = null; + this.serverError = null; + } + + public TAuthorizationException getAuthError() { + return this.authError; + } + + public updateImageVersion_result setAuthError(TAuthorizationException authError) { + this.authError = authError; + return this; + } + + public void unsetAuthError() { + this.authError = null; + } + + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; + } + + public void setAuthErrorIsSet(boolean value) { + if (!value) { + this.authError = null; + } + } + + public TNotFoundException getNotFound() { + return this.notFound; + } + + public updateImageVersion_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; + return this; + } + + public void unsetNotFound() { + this.notFound = null; + } + + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; + } + + public void setNotFoundIsSet(boolean value) { + if (!value) { + this.notFound = null; + } + } + + public TImageDataException getImgError() { + return this.imgError; + } + + public updateImageVersion_result setImgError(TImageDataException imgError) { + this.imgError = imgError; + return this; + } + + public void unsetImgError() { + this.imgError = null; + } + + /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ + public boolean isSetImgError() { + return this.imgError != null; + } + + public void setImgErrorIsSet(boolean value) { + if (!value) { + this.imgError = null; + } + } + + public TInternalServerError getServerError() { + return this.serverError; + } + + public updateImageVersion_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + + case IMG_ERROR: + if (value == null) { + unsetImgError(); + } else { + setImgError((TImageDataException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case AUTH_ERROR: + return getAuthError(); + + case NOT_FOUND: + return getNotFound(); + + case IMG_ERROR: + return getImgError(); + + case SERVER_ERROR: + return getServerError(); + + } + 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 AUTH_ERROR: + return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); + case SERVER_ERROR: + return isSetServerError(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageVersion_result) + return this.equals((updateImageVersion_result)that); + return false; + } + + public boolean equals(updateImageVersion_result that) { + if (that == null) + return false; + + boolean this_present_authError = true && this.isSetAuthError(); + boolean that_present_authError = true && that.isSetAuthError(); + if (this_present_authError || that_present_authError) { + if (!(this_present_authError && that_present_authError)) + return false; + if (!this.authError.equals(that.authError)) + return false; + } + + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_imgError = true && this.isSetImgError(); + boolean that_present_imgError = true && that.isSetImgError(); + if (this_present_imgError || that_present_imgError) { + if (!(this_present_imgError && that_present_imgError)) + return false; + if (!this.imgError.equals(that.imgError)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(updateImageVersion_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + 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("updateImageVersion_result("); + boolean first = true; + + sb.append("authError:"); + if (this.authError == null) { + sb.append("null"); + } else { + sb.append(this.authError); + } + first = false; + if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("imgError:"); + if (this.imgError == null) { + sb.append("null"); + } else { + sb.append(this.imgError); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + 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 { + 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 updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_resultStandardScheme getScheme() { + return new updateImageVersion_resultStandardScheme(); + } + } + + private static class updateImageVersion_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_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 1: // AUTH_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMG_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(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, updateImageVersion_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_resultTupleScheme getScheme() { + return new updateImageVersion_resultTupleScheme(); + } + } + + private static class updateImageVersion_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetAuthError()) { + optionals.set(0); + } + if (struct.isSetNotFound()) { + optionals.set(1); + } + if (struct.isSetImgError()) { + optionals.set(2); + } + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetImgError()) { + struct.imgError.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(2)) { + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } + } + } + + } + + public static class deleteImageVersion_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("deleteImageVersion_args"); + + private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); + } + + public String userToken; // required + public String imageVersionId; // 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_TOKEN((short)1, "userToken"), + IMAGE_VERSION_ID((short)2, "imageVersionId"); + + 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: // USER_TOKEN + return USER_TOKEN; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id 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_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); + } + + public deleteImageVersion_args() { + } + + public deleteImageVersion_args( + String userToken, + String imageVersionId) + { + this(); + this.userToken = userToken; + this.imageVersionId = imageVersionId; + } + + /** + * Performs a deep copy on other. + */ + public deleteImageVersion_args(deleteImageVersion_args other) { + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; + } + } + + public deleteImageVersion_args deepCopy() { + return new deleteImageVersion_args(this); + } + + @Override + public void clear() { + this.userToken = null; + this.imageVersionId = null; + } + + public String getUserToken() { + return this.userToken; + } + + public deleteImageVersion_args setUserToken(String userToken) { + this.userToken = userToken; + return this; + } + + public void unsetUserToken() { + this.userToken = null; + } + + /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUserToken() { + return this.userToken != null; + } + + public void setUserTokenIsSet(boolean value) { + if (!value) { + this.userToken = null; + } + } + + public String getImageVersionId() { + return this.imageVersionId; + } + + public deleteImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; + return this; + } + + public void unsetImageVersionId() { + this.imageVersionId = null; + } + + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; + } + + public void setImageVersionIdIsSet(boolean value) { + if (!value) { + this.imageVersionId = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_TOKEN: + if (value == null) { + unsetUserToken(); + } else { + setUserToken((String)value); + } + break; + + case IMAGE_VERSION_ID: + if (value == null) { + unsetImageVersionId(); + } else { + setImageVersionId((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_TOKEN: + return getUserToken(); + + case IMAGE_VERSION_ID: + return getImageVersionId(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof deleteImageVersion_args) + return this.equals((deleteImageVersion_args)that); + return false; + } + + public boolean equals(deleteImageVersion_args that) { + if (that == null) + return false; + + boolean this_present_userToken = true && this.isSetUserToken(); + boolean that_present_userToken = true && that.isSetUserToken(); + if (this_present_userToken || that_present_userToken) { + if (!(this_present_userToken && that_present_userToken)) + return false; + if (!this.userToken.equals(that.userToken)) + return false; + } + + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) + return false; + if (!this.imageVersionId.equals(that.imageVersionId)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(deleteImageVersion_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + 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("deleteImageVersion_args("); + boolean first = true; + + sb.append("userToken:"); + if (this.userToken == null) { + sb.append("null"); + } else { + sb.append(this.userToken); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { + sb.append("null"); + } else { + sb.append(this.imageVersionId); + } + 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 { + 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 deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsStandardScheme getScheme() { + return new deleteImageVersion_argsStandardScheme(); + } + } + + private static class deleteImageVersion_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_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: // USER_TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IMAGE_VERSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(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, deleteImageVersion_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); + oprot.writeFieldEnd(); + } + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsTupleScheme getScheme() { + return new deleteImageVersion_argsTupleScheme(); + } + } + + private static class deleteImageVersion_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserToken()) { + optionals.set(0); + } + if (struct.isSetImageVersionId()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); + } + } + } + + } + + public static class deleteImageVersion_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("deleteImageVersion_result"); + + private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); + } + + public TAuthorizationException authError; // required + public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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 { + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); + + 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: // AUTH_ERROR + return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; + 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 + 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.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_result.class, metaDataMap); + } + + public deleteImageVersion_result() { + } + + public deleteImageVersion_result( + TAuthorizationException authError, + TNotFoundException notFound, + TInternalServerError serverError) + { + this(); + this.authError = authError; + this.notFound = notFound; + this.serverError = serverError; + } + + /** + * Performs a deep copy on other. + */ + public deleteImageVersion_result(deleteImageVersion_result other) { + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } + } + + public deleteImageVersion_result deepCopy() { + return new deleteImageVersion_result(this); + } + + @Override + public void clear() { + this.authError = null; + this.notFound = null; + this.serverError = null; + } + + public TAuthorizationException getAuthError() { + return this.authError; + } + + public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + this.authError = authError; + return this; + } + + public void unsetAuthError() { + this.authError = null; + } + + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; } - public boolean isSuccess() { - return this.success; + public void setAuthErrorIsSet(boolean value) { + if (!value) { + this.authError = null; + } } - public updateImageBase_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public TNotFoundException getNotFound() { + return this.notFound; + } + + public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; return this; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetNotFound() { + this.notFound = 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); + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setNotFoundIsSet(boolean value) { + if (!value) { + this.notFound = null; + } } - public TAuthorizationException getAuthError() { - return this.authError; + public TInternalServerError getServerError() { + return this.serverError; } - public updateImageBase_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public deleteImageVersion_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetServerError() { + this.serverError = null; } - /** Returns true if field authError is set (has been assigned a value) and false otherwise */ - public boolean isSetAuthError() { - return this.authError != null; + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; } - public void setAuthErrorIsSet(boolean value) { + public void setServerErrorIsSet(boolean value) { if (!value) { - this.authError = null; + this.serverError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case AUTH_ERROR: if (value == null) { - unsetSuccess(); + unsetAuthError(); } else { - setSuccess((Boolean)value); + setAuthError((TAuthorizationException)value); } break; - case AUTH_ERROR: + case NOT_FOUND: if (value == null) { - unsetAuthError(); + unsetNotFound(); } else { - setAuthError((TAuthorizationException)value); + setNotFound((TNotFoundException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); } break; @@ -16992,12 +20396,15 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); - case AUTH_ERROR: return getAuthError(); + case NOT_FOUND: + return getNotFound(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -17009,10 +20416,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -17021,24 +20430,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageBase_result) - return this.equals((updateImageBase_result)that); + if (that instanceof deleteImageVersion_result) + return this.equals((deleteImageVersion_result)that); return false; } - public boolean equals(updateImageBase_result that) { + public boolean equals(deleteImageVersion_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -17048,6 +20448,24 @@ public class SatelliteServer { return false; } + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -17057,29 +20475,39 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageBase_result other) { + public int compareTo(deleteImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -17101,13 +20529,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_result("); + StringBuilder sb = new StringBuilder("deleteImageVersion_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -17115,6 +20539,22 @@ public class SatelliteServer { sb.append(this.authError); } first = false; + if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -17134,23 +20574,21 @@ public class SatelliteServer { 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 updateImageBase_resultStandardSchemeFactory implements SchemeFactory { - public updateImageBase_resultStandardScheme getScheme() { - return new updateImageBase_resultStandardScheme(); + private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultStandardScheme getScheme() { + return new deleteImageVersion_resultStandardScheme(); } } - private static class updateImageBase_resultStandardScheme extends StandardScheme { + private static class deleteImageVersion_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17160,14 +20598,6 @@ public class SatelliteServer { 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; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -17177,6 +20607,24 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17188,93 +20636,110 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_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(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); oprot.writeFieldEnd(); } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { - public updateImageBase_resultTupleScheme getScheme() { - return new updateImageBase_resultTupleScheme(); + private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultTupleScheme getScheme() { + return new deleteImageVersion_resultTupleScheme(); } } - private static class updateImageBase_resultTupleScheme extends TupleScheme { + private static class deleteImageVersion_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + if (struct.isSetServerError()) { + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class updateImageVersion_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("updateImageVersion_args"); + public static class writeImagePermissions_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("writeImagePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("image", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageVersion_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required - public ImageVersionWrite image; // required + public String imageBaseId; // required + public Map permissions; // 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_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"), - IMAGE((short)3, "image"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + PERMISSIONS((short)3, "permissions"); private static final Map byName = new HashMap(); @@ -17291,10 +20756,10 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; - case 3: // IMAGE - return IMAGE; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; + case 3: // PERMISSIONS + return PERMISSIONS; default: return null; } @@ -17340,59 +20805,73 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.IMAGE, new org.apache.thrift.meta_data.FieldMetaData("image", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageVersionWrite.class))); + tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", 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 , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); } - public updateImageVersion_args() { + public writeImagePermissions_args() { } - public updateImageVersion_args( + public writeImagePermissions_args( String userToken, - String imageVersionId, - ImageVersionWrite image) + String imageBaseId, + Map permissions) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; - this.image = image; + this.imageBaseId = imageBaseId; + this.permissions = permissions; } /** * Performs a deep copy on other. */ - public updateImageVersion_args(updateImageVersion_args other) { + public writeImagePermissions_args(writeImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } - if (other.isSetImage()) { - this.image = new ImageVersionWrite(other.image); + if (other.isSetPermissions()) { + Map __this__permissions = new HashMap(other.permissions.size()); + for (Map.Entry other_element : other.permissions.entrySet()) { + + String other_element_key = other_element.getKey(); + ImagePermissions other_element_value = other_element.getValue(); + + String __this__permissions_copy_key = other_element_key; + + ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); + + __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); + } + this.permissions = __this__permissions; } } - public updateImageVersion_args deepCopy() { - return new updateImageVersion_args(this); + public writeImagePermissions_args deepCopy() { + return new writeImagePermissions_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; - this.image = null; + this.imageBaseId = null; + this.permissions = null; } public String getUserToken() { return this.userToken; } - public updateImageVersion_args setUserToken(String userToken) { + public writeImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -17412,51 +20891,62 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; + public String getImageBaseId() { + return this.imageBaseId; } - public updateImageVersion_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; + public writeImagePermissions_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetImageVersionId() { - this.imageVersionId = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setImageVersionIdIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.imageVersionId = null; + this.imageBaseId = null; } } - public ImageVersionWrite getImage() { - return this.image; + public int getPermissionsSize() { + return (this.permissions == null) ? 0 : this.permissions.size(); } - public updateImageVersion_args setImage(ImageVersionWrite image) { - this.image = image; + public void putToPermissions(String key, ImagePermissions val) { + if (this.permissions == null) { + this.permissions = new HashMap(); + } + this.permissions.put(key, val); + } + + public Map getPermissions() { + return this.permissions; + } + + public writeImagePermissions_args setPermissions(Map permissions) { + this.permissions = permissions; return this; } - public void unsetImage() { - this.image = null; + public void unsetPermissions() { + this.permissions = null; } - /** Returns true if field image is set (has been assigned a value) and false otherwise */ - public boolean isSetImage() { - return this.image != null; + /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ + public boolean isSetPermissions() { + return this.permissions != null; } - public void setImageIsSet(boolean value) { + public void setPermissionsIsSet(boolean value) { if (!value) { - this.image = null; + this.permissions = null; } } @@ -17470,19 +20960,19 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: + case IMAGE_BASE_ID: if (value == null) { - unsetImageVersionId(); + unsetImageBaseId(); } else { - setImageVersionId((String)value); + setImageBaseId((String)value); } break; - case IMAGE: + case PERMISSIONS: if (value == null) { - unsetImage(); + unsetPermissions(); } else { - setImage((ImageVersionWrite)value); + setPermissions((Map)value); } break; @@ -17494,11 +20984,11 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_BASE_ID: + return getImageBaseId(); - case IMAGE: - return getImage(); + case PERMISSIONS: + return getPermissions(); } throw new IllegalStateException(); @@ -17513,10 +21003,10 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); - case IMAGE: - return isSetImage(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); + case PERMISSIONS: + return isSetPermissions(); } throw new IllegalStateException(); } @@ -17525,12 +21015,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageVersion_args) - return this.equals((updateImageVersion_args)that); + if (that instanceof writeImagePermissions_args) + return this.equals((writeImagePermissions_args)that); return false; } - public boolean equals(updateImageVersion_args that) { + public boolean equals(writeImagePermissions_args that) { if (that == null) return false; @@ -17543,21 +21033,21 @@ public class SatelliteServer { return false; } - boolean this_present_imageVersionId = true && this.isSetImageVersionId(); - boolean that_present_imageVersionId = true && that.isSetImageVersionId(); - if (this_present_imageVersionId || that_present_imageVersionId) { - if (!(this_present_imageVersionId && that_present_imageVersionId)) + boolean this_present_imageBaseId = true && this.isSetImageBaseId(); + boolean that_present_imageBaseId = true && that.isSetImageBaseId(); + if (this_present_imageBaseId || that_present_imageBaseId) { + if (!(this_present_imageBaseId && that_present_imageBaseId)) return false; - if (!this.imageVersionId.equals(that.imageVersionId)) + if (!this.imageBaseId.equals(that.imageBaseId)) return false; } - boolean this_present_image = true && this.isSetImage(); - boolean that_present_image = true && that.isSetImage(); - if (this_present_image || that_present_image) { - if (!(this_present_image && that_present_image)) + boolean this_present_permissions = true && this.isSetPermissions(); + boolean that_present_permissions = true && that.isSetPermissions(); + if (this_present_permissions || that_present_permissions) { + if (!(this_present_permissions && that_present_permissions)) return false; - if (!this.image.equals(that.image)) + if (!this.permissions.equals(that.permissions)) return false; } @@ -17570,7 +21060,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_args other) { + public int compareTo(writeImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17587,22 +21077,22 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); if (lastComparison != 0) { return lastComparison; } - if (isSetImage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); + if (isSetPermissions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); if (lastComparison != 0) { return lastComparison; } @@ -17624,7 +21114,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_args("); + StringBuilder sb = new StringBuilder("writeImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -17635,19 +21125,19 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.imageBaseId); } first = false; if (!first) sb.append(", "); - sb.append("image:"); - if (this.image == null) { + sb.append("permissions:"); + if (this.permissions == null) { sb.append("null"); } else { - sb.append(this.image); + sb.append(this.permissions); } first = false; sb.append(")"); @@ -17657,9 +21147,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (image != null) { - image.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -17678,15 +21165,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_argsStandardScheme getScheme() { - return new updateImageVersion_argsStandardScheme(); + private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsStandardScheme getScheme() { + return new writeImagePermissions_argsStandardScheme(); } } - private static class updateImageVersion_argsStandardScheme extends StandardScheme { + private static class writeImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17704,19 +21191,31 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID + case 2: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IMAGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.image = new ImageVersionWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + case 3: // PERMISSIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map162 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map162.size); + for (int _i163 = 0; _i163 < _map162.size; ++_i163) + { + String _key164; + ImagePermissions _val165; + _key164 = iprot.readString(); + _val165 = new ImagePermissions(); + _val165.read(iprot); + struct.permissions.put(_key164, _val165); + } + iprot.readMapEnd(); + } + struct.setPermissionsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17732,7 +21231,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17741,14 +21240,22 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - if (struct.image != null) { - oprot.writeFieldBegin(IMAGE_FIELD_DESC); - struct.image.write(oprot); + if (struct.permissions != null) { + oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); + for (Map.Entry _iter166 : struct.permissions.entrySet()) + { + oprot.writeString(_iter166.getKey()); + _iter166.getValue().write(oprot); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -17757,41 +21264,48 @@ public class SatelliteServer { } - private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_argsTupleScheme getScheme() { - return new updateImageVersion_argsTupleScheme(); + private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsTupleScheme getScheme() { + return new writeImagePermissions_argsTupleScheme(); } } - private static class updateImageVersion_argsTupleScheme extends TupleScheme { + private static class writeImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetImage()) { + if (struct.isSetPermissions()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } - if (struct.isSetImage()) { - struct.image.write(oprot); + if (struct.isSetPermissions()) { + { + oprot.writeI32(struct.permissions.size()); + for (Map.Entry _iter167 : struct.permissions.entrySet()) + { + oprot.writeString(_iter167.getKey()); + _iter167.getValue().write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -17799,38 +21313,52 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } if (incoming.get(2)) { - struct.image = new ImageVersionWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + { + org.apache.thrift.protocol.TMap _map168 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.permissions = new HashMap(2*_map168.size); + for (int _i169 = 0; _i169 < _map168.size; ++_i169) + { + String _key170; + ImagePermissions _val171; + _key170 = iprot.readString(); + _val171 = new ImagePermissions(); + _val171.read(iprot); + struct.permissions.put(_key170, _val171); + } + } + struct.setPermissionsIsSet(true); } } } } - public static class updateImageVersion_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("updateImageVersion_result"); + public static class writeImagePermissions_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("writeImagePermissions_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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); } - public boolean success; // required public TAuthorizationException authError; // required + public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), - AUTH_ERROR((short)1, "authError"); + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -17845,10 +21373,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -17889,116 +21419,154 @@ public class SatelliteServer { } // 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))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); } - public updateImageVersion_result() { + public writeImagePermissions_result() { } - public updateImageVersion_result( - boolean success, - TAuthorizationException authError) + public writeImagePermissions_result( + TAuthorizationException authError, + TNotFoundException notFound, + TInternalServerError serverError) { this(); - this.success = success; - setSuccessIsSet(true); this.authError = authError; + this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public updateImageVersion_result(updateImageVersion_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public writeImagePermissions_result(writeImagePermissions_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public updateImageVersion_result deepCopy() { - return new updateImageVersion_result(this); + public writeImagePermissions_result deepCopy() { + return new writeImagePermissions_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.authError = null; + this.notFound = null; + this.serverError = null; } - public boolean isSuccess() { - return this.success; + public TAuthorizationException getAuthError() { + return this.authError; } - public updateImageVersion_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); + public writeImagePermissions_result setAuthError(TAuthorizationException authError) { + this.authError = authError; return this; } - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + public void unsetAuthError() { + this.authError = 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); + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; } - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + public void setAuthErrorIsSet(boolean value) { + if (!value) { + this.authError = null; + } } - public TAuthorizationException getAuthError() { - return this.authError; + public TNotFoundException getNotFound() { + return this.notFound; } - public updateImageVersion_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public writeImagePermissions_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetNotFound() { + this.notFound = null; } - /** Returns true if field authError is set (has been assigned a value) and false otherwise */ - public boolean isSetAuthError() { - return this.authError != null; + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; } - public void setAuthErrorIsSet(boolean value) { + public void setNotFoundIsSet(boolean value) { if (!value) { - this.authError = null; + this.notFound = null; + } + } + + public TInternalServerError getServerError() { + return this.serverError; + } + + public writeImagePermissions_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case AUTH_ERROR: if (value == null) { - unsetSuccess(); + unsetAuthError(); } else { - setSuccess((Boolean)value); + setAuthError((TAuthorizationException)value); } break; - case AUTH_ERROR: + case NOT_FOUND: if (value == null) { - unsetAuthError(); + unsetNotFound(); } else { - setAuthError((TAuthorizationException)value); + setNotFound((TNotFoundException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); } break; @@ -18007,12 +21575,15 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); - case AUTH_ERROR: return getAuthError(); + case NOT_FOUND: + return getNotFound(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -18024,10 +21595,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -18036,24 +21609,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageVersion_result) - return this.equals((updateImageVersion_result)that); + if (that instanceof writeImagePermissions_result) + return this.equals((writeImagePermissions_result)that); return false; } - public boolean equals(updateImageVersion_result that) { + public boolean equals(writeImagePermissions_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -18063,6 +21627,24 @@ public class SatelliteServer { return false; } + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -18072,29 +21654,39 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_result other) { + public int compareTo(writeImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -18116,13 +21708,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_result("); + StringBuilder sb = new StringBuilder("writeImagePermissions_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -18130,6 +21718,22 @@ public class SatelliteServer { sb.append(this.authError); } first = false; + if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -18149,23 +21753,21 @@ public class SatelliteServer { 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 updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_resultStandardScheme getScheme() { - return new updateImageVersion_resultStandardScheme(); + private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultStandardScheme getScheme() { + return new writeImagePermissions_resultStandardScheme(); } } - private static class updateImageVersion_resultStandardScheme extends StandardScheme { + private static class writeImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18175,14 +21777,6 @@ public class SatelliteServer { 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; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -18192,6 +21786,24 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -18203,90 +21815,107 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_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(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); oprot.writeFieldEnd(); } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_resultTupleScheme getScheme() { - return new updateImageVersion_resultTupleScheme(); + private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultTupleScheme getScheme() { + return new writeImagePermissions_resultTupleScheme(); } } - private static class updateImageVersion_resultTupleScheme extends TupleScheme { + private static class writeImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + if (struct.isSetServerError()) { + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class deleteImageVersion_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("deleteImageVersion_args"); + public static class getImagePermissions_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("getImagePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required + public String imageBaseId; // 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_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -18303,8 +21932,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; default: return null; } @@ -18350,51 +21979,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); } - public deleteImageVersion_args() { + public getImagePermissions_args() { } - public deleteImageVersion_args( + public getImagePermissions_args( String userToken, - String imageVersionId) + String imageBaseId) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; + this.imageBaseId = imageBaseId; } /** * Performs a deep copy on other. */ - public deleteImageVersion_args(deleteImageVersion_args other) { + public getImagePermissions_args(getImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } } - public deleteImageVersion_args deepCopy() { - return new deleteImageVersion_args(this); + public getImagePermissions_args deepCopy() { + return new getImagePermissions_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; + this.imageBaseId = null; } public String getUserToken() { return this.userToken; } - public deleteImageVersion_args setUserToken(String userToken) { + public getImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -18414,27 +22043,27 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; + public String getImageBaseId() { + return this.imageBaseId; } - public deleteImageVersion_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; + public getImagePermissions_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetImageVersionId() { - this.imageVersionId = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setImageVersionIdIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.imageVersionId = null; + this.imageBaseId = null; } } @@ -18448,11 +22077,11 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: + case IMAGE_BASE_ID: if (value == null) { - unsetImageVersionId(); + unsetImageBaseId(); } else { - setImageVersionId((String)value); + setImageBaseId((String)value); } break; @@ -18464,8 +22093,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -18480,8 +22109,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); } throw new IllegalStateException(); } @@ -18490,12 +22119,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageVersion_args) - return this.equals((deleteImageVersion_args)that); + if (that instanceof getImagePermissions_args) + return this.equals((getImagePermissions_args)that); return false; } - public boolean equals(deleteImageVersion_args that) { + public boolean equals(getImagePermissions_args that) { if (that == null) return false; @@ -18508,12 +22137,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageVersionId = true && this.isSetImageVersionId(); - boolean that_present_imageVersionId = true && that.isSetImageVersionId(); - if (this_present_imageVersionId || that_present_imageVersionId) { - if (!(this_present_imageVersionId && that_present_imageVersionId)) + boolean this_present_imageBaseId = true && this.isSetImageBaseId(); + boolean that_present_imageBaseId = true && that.isSetImageBaseId(); + if (this_present_imageBaseId || that_present_imageBaseId) { + if (!(this_present_imageBaseId && that_present_imageBaseId)) return false; - if (!this.imageVersionId.equals(that.imageVersionId)) + if (!this.imageBaseId.equals(that.imageBaseId)) return false; } @@ -18526,7 +22155,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_args other) { + public int compareTo(getImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -18543,12 +22172,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } @@ -18570,7 +22199,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_args("); + StringBuilder sb = new StringBuilder("getImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -18581,11 +22210,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.imageBaseId); } first = false; sb.append(")"); @@ -18613,15 +22242,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsStandardScheme getScheme() { - return new deleteImageVersion_argsStandardScheme(); + private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_argsStandardScheme getScheme() { + return new getImagePermissions_argsStandardScheme(); } } - private static class deleteImageVersion_argsStandardScheme extends StandardScheme { + private static class getImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18639,10 +22268,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID + case 2: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -18658,7 +22287,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18667,9 +22296,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -18678,35 +22307,35 @@ public class SatelliteServer { } - private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsTupleScheme getScheme() { - return new deleteImageVersion_argsTupleScheme(); + private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_argsTupleScheme getScheme() { + return new getImagePermissions_argsTupleScheme(); } } - private static class deleteImageVersion_argsTupleScheme extends TupleScheme { + private static class getImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -18714,36 +22343,39 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } } } } - public static class deleteImageVersion_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("deleteImageVersion_result"); + public static class getImagePermissions_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("getImagePermissions_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.MAP, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); } - public boolean success; // required + public Map success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -18764,6 +22396,8 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -18804,90 +22438,121 @@ public class SatelliteServer { } // 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); } - public deleteImageVersion_result() { + public getImagePermissions_result() { } - public deleteImageVersion_result( - boolean success, + public getImagePermissions_result( + Map success, TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); this.success = success; - setSuccessIsSet(true); this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public deleteImageVersion_result(deleteImageVersion_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getImagePermissions_result(getImagePermissions_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success.size()); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + ImagePermissions other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + ImagePermissions __this__success_copy_value = new ImagePermissions(other_element_value); + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } + this.success = __this__success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public deleteImageVersion_result deepCopy() { - return new deleteImageVersion_result(this); + public getImagePermissions_result deepCopy() { + return new getImagePermissions_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.authError = null; this.notFound = null; + this.serverError = null; } - public boolean isSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public void putToSuccess(String key, ImagePermissions val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { return this.success; } - public deleteImageVersion_result setSuccess(boolean success) { + public getImagePermissions_result setSuccess(Map 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 TAuthorizationException getAuthError() { return this.authError; } - public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + public getImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -18911,7 +22576,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + public getImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -18931,13 +22596,37 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public getImagePermissions_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((Map)value); } break; @@ -18957,13 +22646,21 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case AUTH_ERROR: return getAuthError(); @@ -18971,6 +22668,9 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -18988,6 +22688,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -18996,21 +22698,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageVersion_result) - return this.equals((deleteImageVersion_result)that); + if (that instanceof getImagePermissions_result) + return this.equals((getImagePermissions_result)that); return false; } - public boolean equals(deleteImageVersion_result that) { + public boolean equals(getImagePermissions_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; } @@ -19032,6 +22734,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -19041,7 +22752,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_result other) { + public int compareTo(getImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19078,6 +22789,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -19095,11 +22816,15 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_result("); + StringBuilder sb = new StringBuilder("getImagePermissions_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; if (!first) sb.append(", "); sb.append("authError:"); @@ -19117,6 +22842,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -19136,23 +22869,21 @@ public class SatelliteServer { 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 deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultStandardScheme getScheme() { - return new deleteImageVersion_resultStandardScheme(); + private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_resultStandardScheme getScheme() { + return new getImagePermissions_resultStandardScheme(); } } - private static class deleteImageVersion_resultStandardScheme extends StandardScheme { + private static class getImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19163,8 +22894,21 @@ public class SatelliteServer { } 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.MAP) { + { + org.apache.thrift.protocol.TMap _map172 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map172.size); + for (int _i173 = 0; _i173 < _map172.size; ++_i173) + { + String _key174; + ImagePermissions _val175; + _key174 = iprot.readString(); + _val175 = new ImagePermissions(); + _val175.read(iprot); + struct.success.put(_key174, _val175); + } + iprot.readMapEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -19188,6 +22932,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19199,13 +22952,21 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_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.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Map.Entry _iter176 : struct.success.entrySet()) + { + oprot.writeString(_iter176.getKey()); + _iter176.getValue().write(oprot); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -19218,22 +22979,27 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultTupleScheme getScheme() { - return new deleteImageVersion_resultTupleScheme(); + private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_resultTupleScheme getScheme() { + return new getImagePermissions_resultTupleScheme(); } } - private static class deleteImageVersion_resultTupleScheme extends TupleScheme { + private static class getImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -19245,9 +23011,19 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter177 : struct.success.entrySet()) + { + oprot.writeString(_iter177.getKey()); + _iter177.getValue().write(oprot); + } + } } if (struct.isSetAuthError()) { struct.authError.write(oprot); @@ -19255,14 +23031,29 @@ public class SatelliteServer { if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TMap _map178 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map178.size); + for (int _i179 = 0; _i179 < _map178.size; ++_i179) + { + String _key180; + ImagePermissions _val181; + _key180 = iprot.readString(); + _val181 = new ImagePermissions(); + _val181.read(iprot); + struct.success.put(_key180, _val181); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -19275,33 +23066,38 @@ public class SatelliteServer { struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class writeImagePermissions_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("writeImagePermissions_args"); + public static class setImageOwner_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("setImageOwner_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField NEW_OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOwnerId", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required - public Map permissions; // required + public String newOwnerId; // 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_TOKEN((short)1, "userToken"), IMAGE_BASE_ID((short)2, "imageBaseId"), - PERMISSIONS((short)3, "permissions"); + NEW_OWNER_ID((short)3, "newOwnerId"); private static final Map byName = new HashMap(); @@ -19320,8 +23116,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; - case 3: // PERMISSIONS - return PERMISSIONS; + case 3: // NEW_OWNER_ID + return NEW_OWNER_ID; default: return null; } @@ -19369,71 +23165,57 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", 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 , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); + tmpMap.put(_Fields.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); } - public writeImagePermissions_args() { + public setImageOwner_args() { } - public writeImagePermissions_args( + public setImageOwner_args( String userToken, String imageBaseId, - Map permissions) + String newOwnerId) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; - this.permissions = permissions; + this.newOwnerId = newOwnerId; } /** * Performs a deep copy on other. */ - public writeImagePermissions_args(writeImagePermissions_args other) { + public setImageOwner_args(setImageOwner_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } - if (other.isSetPermissions()) { - Map __this__permissions = new HashMap(other.permissions.size()); - for (Map.Entry other_element : other.permissions.entrySet()) { - - String other_element_key = other_element.getKey(); - ImagePermissions other_element_value = other_element.getValue(); - - String __this__permissions_copy_key = other_element_key; - - ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); - - __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); - } - this.permissions = __this__permissions; + if (other.isSetNewOwnerId()) { + this.newOwnerId = other.newOwnerId; } } - public writeImagePermissions_args deepCopy() { - return new writeImagePermissions_args(this); + public setImageOwner_args deepCopy() { + return new setImageOwner_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; - this.permissions = null; + this.newOwnerId = null; } public String getUserToken() { return this.userToken; } - public writeImagePermissions_args setUserToken(String userToken) { + public setImageOwner_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -19457,7 +23239,7 @@ public class SatelliteServer { return this.imageBaseId; } - public writeImagePermissions_args setImageBaseId(String imageBaseId) { + public setImageOwner_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -19477,38 +23259,27 @@ public class SatelliteServer { } } - public int getPermissionsSize() { - return (this.permissions == null) ? 0 : this.permissions.size(); - } - - public void putToPermissions(String key, ImagePermissions val) { - if (this.permissions == null) { - this.permissions = new HashMap(); - } - this.permissions.put(key, val); - } - - public Map getPermissions() { - return this.permissions; + public String getNewOwnerId() { + return this.newOwnerId; } - public writeImagePermissions_args setPermissions(Map permissions) { - this.permissions = permissions; + public setImageOwner_args setNewOwnerId(String newOwnerId) { + this.newOwnerId = newOwnerId; return this; } - public void unsetPermissions() { - this.permissions = null; + public void unsetNewOwnerId() { + this.newOwnerId = null; } - /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ - public boolean isSetPermissions() { - return this.permissions != null; + /** Returns true if field newOwnerId is set (has been assigned a value) and false otherwise */ + public boolean isSetNewOwnerId() { + return this.newOwnerId != null; } - public void setPermissionsIsSet(boolean value) { + public void setNewOwnerIdIsSet(boolean value) { if (!value) { - this.permissions = null; + this.newOwnerId = null; } } @@ -19530,11 +23301,11 @@ public class SatelliteServer { } break; - case PERMISSIONS: + case NEW_OWNER_ID: if (value == null) { - unsetPermissions(); + unsetNewOwnerId(); } else { - setPermissions((Map)value); + setNewOwnerId((String)value); } break; @@ -19549,8 +23320,8 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); - case PERMISSIONS: - return getPermissions(); + case NEW_OWNER_ID: + return getNewOwnerId(); } throw new IllegalStateException(); @@ -19567,8 +23338,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); - case PERMISSIONS: - return isSetPermissions(); + case NEW_OWNER_ID: + return isSetNewOwnerId(); } throw new IllegalStateException(); } @@ -19577,12 +23348,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_args) - return this.equals((writeImagePermissions_args)that); + if (that instanceof setImageOwner_args) + return this.equals((setImageOwner_args)that); return false; } - public boolean equals(writeImagePermissions_args that) { + public boolean equals(setImageOwner_args that) { if (that == null) return false; @@ -19604,12 +23375,12 @@ public class SatelliteServer { return false; } - boolean this_present_permissions = true && this.isSetPermissions(); - boolean that_present_permissions = true && that.isSetPermissions(); - if (this_present_permissions || that_present_permissions) { - if (!(this_present_permissions && that_present_permissions)) + boolean this_present_newOwnerId = true && this.isSetNewOwnerId(); + boolean that_present_newOwnerId = true && that.isSetNewOwnerId(); + if (this_present_newOwnerId || that_present_newOwnerId) { + if (!(this_present_newOwnerId && that_present_newOwnerId)) return false; - if (!this.permissions.equals(that.permissions)) + if (!this.newOwnerId.equals(that.newOwnerId)) return false; } @@ -19622,7 +23393,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_args other) { + public int compareTo(setImageOwner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19649,12 +23420,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); if (lastComparison != 0) { return lastComparison; } - if (isSetPermissions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); + if (isSetNewOwnerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); if (lastComparison != 0) { return lastComparison; } @@ -19676,7 +23447,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_args("); + StringBuilder sb = new StringBuilder("setImageOwner_args("); boolean first = true; sb.append("userToken:"); @@ -19695,11 +23466,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("permissions:"); - if (this.permissions == null) { + sb.append("newOwnerId:"); + if (this.newOwnerId == null) { sb.append("null"); } else { - sb.append(this.permissions); + sb.append(this.newOwnerId); } first = false; sb.append(")"); @@ -19727,15 +23498,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsStandardScheme getScheme() { - return new writeImagePermissions_argsStandardScheme(); + private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { + public setImageOwner_argsStandardScheme getScheme() { + return new setImageOwner_argsStandardScheme(); } } - private static class writeImagePermissions_argsStandardScheme extends StandardScheme { + private static class setImageOwner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19761,23 +23532,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PERMISSIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map162 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map162.size); - for (int _i163 = 0; _i163 < _map162.size; ++_i163) - { - String _key164; - ImagePermissions _val165; - _key164 = iprot.readString(); - _val165 = new ImagePermissions(); - _val165.read(iprot); - struct.permissions.put(_key164, _val165); - } - iprot.readMapEnd(); - } - struct.setPermissionsIsSet(true); + case 3: // NEW_OWNER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19793,7 +23551,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19807,17 +23565,9 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - if (struct.permissions != null) { - oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter166 : struct.permissions.entrySet()) - { - oprot.writeString(_iter166.getKey()); - _iter166.getValue().write(oprot); - } - oprot.writeMapEnd(); - } + if (struct.newOwnerId != null) { + oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); + oprot.writeString(struct.newOwnerId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -19826,16 +23576,16 @@ public class SatelliteServer { } - private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsTupleScheme getScheme() { - return new writeImagePermissions_argsTupleScheme(); + private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { + public setImageOwner_argsTupleScheme getScheme() { + return new setImageOwner_argsTupleScheme(); } } - private static class writeImagePermissions_argsTupleScheme extends TupleScheme { + private static class setImageOwner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -19844,7 +23594,7 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetPermissions()) { + if (struct.isSetNewOwnerId()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -19854,20 +23604,13 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } - if (struct.isSetPermissions()) { - { - oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter167 : struct.permissions.entrySet()) - { - oprot.writeString(_iter167.getKey()); - _iter167.getValue().write(oprot); - } - } + if (struct.isSetNewOwnerId()) { + oprot.writeString(struct.newOwnerId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -19879,48 +23622,36 @@ public class SatelliteServer { struct.setImageBaseIdIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map168 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.permissions = new HashMap(2*_map168.size); - for (int _i169 = 0; _i169 < _map168.size; ++_i169) - { - String _key170; - ImagePermissions _val171; - _key170 = iprot.readString(); - _val171 = new ImagePermissions(); - _val171.read(iprot); - struct.permissions.put(_key170, _val171); - } - } - struct.setPermissionsIsSet(true); + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); } } } } - public static class writeImagePermissions_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("writeImagePermissions_result"); + public static class setImageOwner_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("setImageOwner_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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); } - public boolean success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -19935,12 +23666,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -19981,90 +23712,64 @@ public class SatelliteServer { } // 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))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); } - public writeImagePermissions_result() { + public setImageOwner_result() { } - public writeImagePermissions_result( - boolean success, + public setImageOwner_result( TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); - this.success = success; - setSuccessIsSet(true); this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public writeImagePermissions_result(writeImagePermissions_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public setImageOwner_result(setImageOwner_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public writeImagePermissions_result deepCopy() { - return new writeImagePermissions_result(this); + public setImageOwner_result deepCopy() { + return new setImageOwner_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.authError = null; this.notFound = null; - } - - public boolean isSuccess() { - return this.success; - } - - public writeImagePermissions_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - return this; - } - - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - /** 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); - } - - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + this.serverError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public writeImagePermissions_result setAuthError(TAuthorizationException authError) { + public setImageOwner_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -20088,7 +23793,7 @@ public class SatelliteServer { return this.notFound; } - public writeImagePermissions_result setNotFound(TNotFoundException notFound) { + public setImageOwner_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -20108,16 +23813,32 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public setImageOwner_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Boolean)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -20134,20 +23855,28 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); - case AUTH_ERROR: return getAuthError(); case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -20159,12 +23888,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -20173,24 +23902,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_result) - return this.equals((writeImagePermissions_result)that); + if (that instanceof setImageOwner_result) + return this.equals((setImageOwner_result)that); return false; } - public boolean equals(writeImagePermissions_result that) { + public boolean equals(setImageOwner_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -20209,6 +23929,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -20218,39 +23947,39 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_result other) { + public int compareTo(setImageOwner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -20272,13 +24001,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_result("); + StringBuilder sb = new StringBuilder("setImageOwner_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -20294,6 +24019,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -20313,23 +24046,21 @@ public class SatelliteServer { 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 writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultStandardScheme getScheme() { - return new writeImagePermissions_resultStandardScheme(); + private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { + public setImageOwner_resultStandardScheme getScheme() { + return new setImageOwner_resultStandardScheme(); } } - private static class writeImagePermissions_resultStandardScheme extends StandardScheme { + private static class setImageOwner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20338,15 +24069,7 @@ public class SatelliteServer { 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; + switch (schemeField.id) { case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -20365,6 +24088,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20376,15 +24108,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_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(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -20395,87 +24122,93 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultTupleScheme getScheme() { - return new writeImagePermissions_resultTupleScheme(); + private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { + public setImageOwner_resultTupleScheme getScheme() { + return new setImageOwner_resultTupleScheme(); } } - private static class writeImagePermissions_resultTupleScheme extends TupleScheme { + private static class setImageOwner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); - } if (struct.isSetAuthError()) { struct.authError.write(oprot); } if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class getImagePermissions_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("getImagePermissions_args"); + public static class createLecture_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("createLecture_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createLecture_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required + public LectureWrite lecture; // 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_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"); + LECTURE((short)2, "lecture"); private static final Map byName = new HashMap(); @@ -20492,8 +24225,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; + case 2: // LECTURE + return LECTURE; default: return null; } @@ -20539,51 +24272,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.LECTURE, new org.apache.thrift.meta_data.FieldMetaData("lecture", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createLecture_args.class, metaDataMap); } - public getImagePermissions_args() { + public createLecture_args() { } - public getImagePermissions_args( + public createLecture_args( String userToken, - String imageBaseId) + LectureWrite lecture) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; + this.lecture = lecture; } /** * Performs a deep copy on other. */ - public getImagePermissions_args(getImagePermissions_args other) { + public createLecture_args(createLecture_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetLecture()) { + this.lecture = new LectureWrite(other.lecture); } } - public getImagePermissions_args deepCopy() { - return new getImagePermissions_args(this); + public createLecture_args deepCopy() { + return new createLecture_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; + this.lecture = null; } public String getUserToken() { return this.userToken; } - public getImagePermissions_args setUserToken(String userToken) { + public createLecture_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -20603,27 +24336,27 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public LectureWrite getLecture() { + return this.lecture; } - public getImagePermissions_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public createLecture_args setLecture(LectureWrite lecture) { + this.lecture = lecture; return this; } - public void unsetImageBaseId() { - this.imageBaseId = null; + public void unsetLecture() { + this.lecture = null; } - /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageBaseId() { - return this.imageBaseId != null; + /** Returns true if field lecture is set (has been assigned a value) and false otherwise */ + public boolean isSetLecture() { + return this.lecture != null; } - public void setImageBaseIdIsSet(boolean value) { + public void setLectureIsSet(boolean value) { if (!value) { - this.imageBaseId = null; + this.lecture = null; } } @@ -20637,11 +24370,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: + case LECTURE: if (value == null) { - unsetImageBaseId(); + unsetLecture(); } else { - setImageBaseId((String)value); + setLecture((LectureWrite)value); } break; @@ -20653,8 +24386,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case LECTURE: + return getLecture(); } throw new IllegalStateException(); @@ -20669,8 +24402,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); + case LECTURE: + return isSetLecture(); } throw new IllegalStateException(); } @@ -20679,12 +24412,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImagePermissions_args) - return this.equals((getImagePermissions_args)that); + if (that instanceof createLecture_args) + return this.equals((createLecture_args)that); return false; } - public boolean equals(getImagePermissions_args that) { + public boolean equals(createLecture_args that) { if (that == null) return false; @@ -20697,12 +24430,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) + boolean this_present_lecture = true && this.isSetLecture(); + boolean that_present_lecture = true && that.isSetLecture(); + if (this_present_lecture || that_present_lecture) { + if (!(this_present_lecture && that_present_lecture)) return false; - if (!this.imageBaseId.equals(that.imageBaseId)) + if (!this.lecture.equals(that.lecture)) return false; } @@ -20715,7 +24448,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_args other) { + public int compareTo(createLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20732,12 +24465,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = Boolean.valueOf(isSetLecture()).compareTo(other.isSetLecture()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (isSetLecture()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecture, other.lecture); if (lastComparison != 0) { return lastComparison; } @@ -20759,7 +24492,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_args("); + StringBuilder sb = new StringBuilder("createLecture_args("); boolean first = true; sb.append("userToken:"); @@ -20770,11 +24503,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { + sb.append("lecture:"); + if (this.lecture == null) { sb.append("null"); } else { - sb.append(this.imageBaseId); + sb.append(this.lecture); } first = false; sb.append(")"); @@ -20784,6 +24517,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (lecture != null) { + lecture.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -20802,15 +24538,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_argsStandardScheme getScheme() { - return new getImagePermissions_argsStandardScheme(); + private static class createLecture_argsStandardSchemeFactory implements SchemeFactory { + public createLecture_argsStandardScheme getScheme() { + return new createLecture_argsStandardScheme(); } } - private static class getImagePermissions_argsStandardScheme extends StandardScheme { + private static class createLecture_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20828,10 +24564,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + case 2: // LECTURE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.lecture = new LectureWrite(); + struct.lecture.read(iprot); + struct.setLectureIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20847,7 +24584,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20856,9 +24593,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); + if (struct.lecture != null) { + oprot.writeFieldBegin(LECTURE_FIELD_DESC); + struct.lecture.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -20867,35 +24604,35 @@ public class SatelliteServer { } - private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_argsTupleScheme getScheme() { - return new getImagePermissions_argsTupleScheme(); + private static class createLecture_argsTupleSchemeFactory implements SchemeFactory { + public createLecture_argsTupleScheme getScheme() { + return new createLecture_argsTupleScheme(); } } - private static class getImagePermissions_argsTupleScheme extends TupleScheme { + private static class createLecture_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageBaseId()) { + if (struct.isSetLecture()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); + if (struct.isSetLecture()) { + struct.lecture.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -20903,36 +24640,37 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + struct.lecture = new LectureWrite(); + struct.lecture.read(iprot); + struct.setLectureIsSet(true); } } } } - public static class getImagePermissions_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("getImagePermissions_result"); + public static class createLecture_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("createLecture_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 org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createLecture_resultTupleSchemeFactory()); } - public Map success; // required + public String success; // required public TAuthorizationException authError; // required - public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -20951,8 +24689,8 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // NOT_FOUND - return NOT_FOUND; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -20997,85 +24735,60 @@ public class SatelliteServer { 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 , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createLecture_result.class, metaDataMap); } - public getImagePermissions_result() { + public createLecture_result() { } - public getImagePermissions_result( - Map success, + public createLecture_result( + String success, TAuthorizationException authError, - TNotFoundException notFound) + TInternalServerError serverError) { this(); this.success = success; this.authError = authError; - this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getImagePermissions_result(getImagePermissions_result other) { + public createLecture_result(createLecture_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); - for (Map.Entry other_element : other.success.entrySet()) { - - String other_element_key = other_element.getKey(); - ImagePermissions other_element_value = other_element.getValue(); - - String __this__success_copy_key = other_element_key; - - ImagePermissions __this__success_copy_value = new ImagePermissions(other_element_value); - - __this__success.put(__this__success_copy_key, __this__success_copy_value); - } - this.success = __this__success; + this.success = other.success; } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetNotFound()) { - this.notFound = new TNotFoundException(other.notFound); + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); } } - public getImagePermissions_result deepCopy() { - return new getImagePermissions_result(this); + public createLecture_result deepCopy() { + return new createLecture_result(this); } @Override public void clear() { this.success = null; this.authError = null; - this.notFound = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, ImagePermissions val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); + this.serverError = null; } - public Map getSuccess() { + public String getSuccess() { return this.success; } - public getImagePermissions_result setSuccess(Map success) { + public createLecture_result setSuccess(String success) { this.success = success; return this; } @@ -21099,7 +24812,7 @@ public class SatelliteServer { return this.authError; } - public getImagePermissions_result setAuthError(TAuthorizationException authError) { + public createLecture_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -21119,27 +24832,27 @@ public class SatelliteServer { } } - public TNotFoundException getNotFound() { - return this.notFound; + public TInternalServerError getServerError() { + return this.serverError; } - public getImagePermissions_result setNotFound(TNotFoundException notFound) { - this.notFound = notFound; + public createLecture_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; return this; } - public void unsetNotFound() { - this.notFound = null; + public void unsetServerError() { + this.serverError = null; } - /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ - public boolean isSetNotFound() { - return this.notFound != null; + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; } - public void setNotFoundIsSet(boolean value) { + public void setServerErrorIsSet(boolean value) { if (!value) { - this.notFound = null; + this.serverError = null; } } @@ -21149,7 +24862,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((Map)value); + setSuccess((String)value); } break; @@ -21161,11 +24874,11 @@ public class SatelliteServer { } break; - case NOT_FOUND: + case SERVER_ERROR: if (value == null) { - unsetNotFound(); + unsetServerError(); } else { - setNotFound((TNotFoundException)value); + setServerError((TInternalServerError)value); } break; @@ -21180,8 +24893,8 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); - case NOT_FOUND: - return getNotFound(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -21198,8 +24911,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -21208,12 +24921,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImagePermissions_result) - return this.equals((getImagePermissions_result)that); + if (that instanceof createLecture_result) + return this.equals((createLecture_result)that); return false; } - public boolean equals(getImagePermissions_result that) { + public boolean equals(createLecture_result that) { if (that == null) return false; @@ -21235,12 +24948,12 @@ public class SatelliteServer { return false; } - boolean this_present_notFound = true && this.isSetNotFound(); - boolean that_present_notFound = true && that.isSetNotFound(); - if (this_present_notFound || that_present_notFound) { - if (!(this_present_notFound && that_present_notFound)) + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) return false; - if (!this.notFound.equals(that.notFound)) + if (!this.serverError.equals(that.serverError)) return false; } @@ -21253,7 +24966,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_result other) { + public int compareTo(createLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21280,12 +24993,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -21307,7 +25020,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_result("); + StringBuilder sb = new StringBuilder("createLecture_result("); boolean first = true; sb.append("success:"); @@ -21326,11 +25039,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("notFound:"); - if (this.notFound == null) { + sb.append("serverError:"); + if (this.serverError == null) { sb.append("null"); } else { - sb.append(this.notFound); + sb.append(this.serverError); } first = false; sb.append(")"); @@ -21358,15 +25071,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_resultStandardScheme getScheme() { - return new getImagePermissions_resultStandardScheme(); + private static class createLecture_resultStandardSchemeFactory implements SchemeFactory { + public createLecture_resultStandardScheme getScheme() { + return new createLecture_resultStandardScheme(); } } - private static class getImagePermissions_resultStandardScheme extends StandardScheme { + private static class createLecture_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21377,21 +25090,8 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map172 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map172.size); - for (int _i173 = 0; _i173 < _map172.size; ++_i173) - { - String _key174; - ImagePermissions _val175; - _key174 = iprot.readString(); - _val175 = new ImagePermissions(); - _val175.read(iprot); - struct.success.put(_key174, _val175); - } - iprot.readMapEnd(); - } + 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); @@ -21406,11 +25106,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NOT_FOUND + case 2: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -21426,21 +25126,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createLecture_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.STRUCT, struct.success.size())); - for (Map.Entry _iter176 : struct.success.entrySet()) - { - oprot.writeString(_iter176.getKey()); - _iter176.getValue().write(oprot); - } - oprot.writeMapEnd(); - } + oprot.writeString(struct.success); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -21448,9 +25140,9 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.notFound != null) { - oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); - struct.notFound.write(oprot); + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -21459,16 +25151,16 @@ public class SatelliteServer { } - private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_resultTupleScheme getScheme() { - return new getImagePermissions_resultTupleScheme(); + private static class createLecture_resultTupleSchemeFactory implements SchemeFactory { + public createLecture_resultTupleScheme getScheme() { + return new createLecture_resultTupleScheme(); } } - private static class getImagePermissions_resultTupleScheme extends TupleScheme { + private static class createLecture_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -21477,46 +25169,27 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter177 : struct.success.entrySet()) - { - oprot.writeString(_iter177.getKey()); - _iter177.getValue().write(oprot); - } - } + oprot.writeString(struct.success); } if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetNotFound()) { - struct.notFound.write(oprot); + if (struct.isSetServerError()) { + struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map178 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map178.size); - for (int _i179 = 0; _i179 < _map178.size; ++_i179) - { - String _key180; - ImagePermissions _val181; - _key180 = iprot.readString(); - _val181 = new ImagePermissions(); - _val181.read(iprot); - struct.success.put(_key180, _val181); - } - } + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -21525,34 +25198,37 @@ public class SatelliteServer { struct.setAuthErrorIsSet(true); } if (incoming.get(2)) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } } } } - public static class createLecture_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("createLecture_args"); + public static class updateLecture_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("updateLecture_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateLecture_argsTupleSchemeFactory()); } public String userToken; // required + public String lectureId; // required public LectureWrite lecture; // 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_TOKEN((short)1, "userToken"), - LECTURE((short)2, "lecture"); + LECTURE_ID((short)2, "lectureId"), + LECTURE((short)3, "lecture"); private static final Map byName = new HashMap(); @@ -21569,7 +25245,9 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // LECTURE + case 2: // LECTURE_ID + return LECTURE_ID; + case 3: // LECTURE return LECTURE; default: return null; @@ -21616,43 +25294,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LECTURE, new org.apache.thrift.meta_data.FieldMetaData("lecture", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_args.class, metaDataMap); } - public createLecture_args() { + public updateLecture_args() { } - public createLecture_args( + public updateLecture_args( String userToken, + String lectureId, LectureWrite lecture) { this(); this.userToken = userToken; + this.lectureId = lectureId; this.lecture = lecture; } /** * Performs a deep copy on other. */ - public createLecture_args(createLecture_args other) { + public updateLecture_args(updateLecture_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } + if (other.isSetLectureId()) { + this.lectureId = other.lectureId; + } if (other.isSetLecture()) { this.lecture = new LectureWrite(other.lecture); } } - public createLecture_args deepCopy() { - return new createLecture_args(this); + public updateLecture_args deepCopy() { + return new updateLecture_args(this); } @Override public void clear() { this.userToken = null; + this.lectureId = null; this.lecture = null; } @@ -21660,7 +25346,7 @@ public class SatelliteServer { return this.userToken; } - public createLecture_args setUserToken(String userToken) { + public updateLecture_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -21680,11 +25366,35 @@ public class SatelliteServer { } } + public String getLectureId() { + return this.lectureId; + } + + public updateLecture_args setLectureId(String lectureId) { + this.lectureId = lectureId; + return this; + } + + public void unsetLectureId() { + this.lectureId = null; + } + + /** Returns true if field lectureId is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureId() { + return this.lectureId != null; + } + + public void setLectureIdIsSet(boolean value) { + if (!value) { + this.lectureId = null; + } + } + public LectureWrite getLecture() { return this.lecture; } - public createLecture_args setLecture(LectureWrite lecture) { + public updateLecture_args setLecture(LectureWrite lecture) { this.lecture = lecture; return this; } @@ -21714,6 +25424,14 @@ public class SatelliteServer { } break; + case LECTURE_ID: + if (value == null) { + unsetLectureId(); + } else { + setLectureId((String)value); + } + break; + case LECTURE: if (value == null) { unsetLecture(); @@ -21730,6 +25448,9 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case LECTURE_ID: + return getLectureId(); + case LECTURE: return getLecture(); @@ -21746,6 +25467,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case LECTURE_ID: + return isSetLectureId(); case LECTURE: return isSetLecture(); } @@ -21756,12 +25479,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createLecture_args) - return this.equals((createLecture_args)that); + if (that instanceof updateLecture_args) + return this.equals((updateLecture_args)that); return false; } - public boolean equals(createLecture_args that) { + public boolean equals(updateLecture_args that) { if (that == null) return false; @@ -21774,6 +25497,15 @@ public class SatelliteServer { return false; } + boolean this_present_lectureId = true && this.isSetLectureId(); + boolean that_present_lectureId = true && that.isSetLectureId(); + if (this_present_lectureId || that_present_lectureId) { + if (!(this_present_lectureId && that_present_lectureId)) + return false; + if (!this.lectureId.equals(that.lectureId)) + return false; + } + boolean this_present_lecture = true && this.isSetLecture(); boolean that_present_lecture = true && that.isSetLecture(); if (this_present_lecture || that_present_lecture) { @@ -21792,19 +25524,29 @@ public class SatelliteServer { } @Override - public int compareTo(createLecture_args other) { + public int compareTo(updateLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (isSetLectureId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureId, other.lectureId); if (lastComparison != 0) { return lastComparison; } @@ -21836,7 +25578,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createLecture_args("); + StringBuilder sb = new StringBuilder("updateLecture_args("); boolean first = true; sb.append("userToken:"); @@ -21847,6 +25589,14 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); + sb.append("lectureId:"); + if (this.lectureId == null) { + sb.append("null"); + } else { + sb.append(this.lectureId); + } + first = false; + if (!first) sb.append(", "); sb.append("lecture:"); if (this.lecture == null) { sb.append("null"); @@ -21882,15 +25632,15 @@ public class SatelliteServer { } } - private static class createLecture_argsStandardSchemeFactory implements SchemeFactory { - public createLecture_argsStandardScheme getScheme() { - return new createLecture_argsStandardScheme(); + private static class updateLecture_argsStandardSchemeFactory implements SchemeFactory { + public updateLecture_argsStandardScheme getScheme() { + return new updateLecture_argsStandardScheme(); } } - private static class createLecture_argsStandardScheme extends StandardScheme { + private static class updateLecture_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21908,7 +25658,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LECTURE + case 2: // LECTURE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureId = iprot.readString(); + struct.setLectureIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // LECTURE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.lecture = new LectureWrite(); struct.lecture.read(iprot); @@ -21928,7 +25686,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -21937,6 +25695,11 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } + if (struct.lectureId != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureId); + oprot.writeFieldEnd(); + } if (struct.lecture != null) { oprot.writeFieldBegin(LECTURE_FIELD_DESC); struct.lecture.write(oprot); @@ -21948,42 +25711,52 @@ public class SatelliteServer { } - private static class createLecture_argsTupleSchemeFactory implements SchemeFactory { - public createLecture_argsTupleScheme getScheme() { - return new createLecture_argsTupleScheme(); + private static class updateLecture_argsTupleSchemeFactory implements SchemeFactory { + public updateLecture_argsTupleScheme getScheme() { + return new updateLecture_argsTupleScheme(); } } - private static class createLecture_argsTupleScheme extends TupleScheme { + private static class updateLecture_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetLecture()) { + if (struct.isSetLectureId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetLecture()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } + if (struct.isSetLectureId()) { + oprot.writeString(struct.lectureId); + } if (struct.isSetLecture()) { struct.lecture.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } if (incoming.get(1)) { + struct.lectureId = iprot.readString(); + struct.setLectureIdIsSet(true); + } + if (incoming.get(2)) { struct.lecture = new LectureWrite(); struct.lecture.read(iprot); struct.setLectureIsSet(true); @@ -21993,25 +25766,28 @@ public class SatelliteServer { } - public static class createLecture_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("createLecture_result"); + public static class updateLecture_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("updateLecture_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateLecture_resultTupleSchemeFactory()); } - public String success; // required public TAuthorizationException authError; // required + public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), - AUTH_ERROR((short)1, "authError"); + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -22026,10 +25802,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -22073,111 +25851,151 @@ public class SatelliteServer { 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 , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_result.class, metaDataMap); } - public createLecture_result() { + public updateLecture_result() { } - public createLecture_result( - String success, - TAuthorizationException authError) + public updateLecture_result( + TAuthorizationException authError, + TNotFoundException notFound, + TInternalServerError serverError) { this(); - this.success = success; this.authError = authError; + this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public createLecture_result(createLecture_result other) { - if (other.isSetSuccess()) { - this.success = other.success; - } + public updateLecture_result(updateLecture_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public createLecture_result deepCopy() { - return new createLecture_result(this); + public updateLecture_result deepCopy() { + return new updateLecture_result(this); } @Override public void clear() { - this.success = null; this.authError = null; + this.notFound = null; + this.serverError = null; } - public String getSuccess() { - return this.success; + public TAuthorizationException getAuthError() { + return this.authError; } - public createLecture_result setSuccess(String success) { - this.success = success; + public updateLecture_result setAuthError(TAuthorizationException authError) { + this.authError = authError; return this; } - public void unsetSuccess() { - this.success = null; + public void unsetAuthError() { + this.authError = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; } - public void setSuccessIsSet(boolean value) { + public void setAuthErrorIsSet(boolean value) { if (!value) { - this.success = null; + this.authError = null; } } - public TAuthorizationException getAuthError() { - return this.authError; + public TNotFoundException getNotFound() { + return this.notFound; } - public createLecture_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public updateLecture_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetNotFound() { + this.notFound = null; } - /** Returns true if field authError is set (has been assigned a value) and false otherwise */ - public boolean isSetAuthError() { - return this.authError != null; + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; } - public void setAuthErrorIsSet(boolean value) { + public void setNotFoundIsSet(boolean value) { if (!value) { - this.authError = null; + this.notFound = null; + } + } + + public TInternalServerError getServerError() { + return this.serverError; + } + + public updateLecture_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case AUTH_ERROR: if (value == null) { - unsetSuccess(); + unsetAuthError(); } else { - setSuccess((String)value); + setAuthError((TAuthorizationException)value); } break; - case AUTH_ERROR: + case NOT_FOUND: if (value == null) { - unsetAuthError(); + unsetNotFound(); } else { - setAuthError((TAuthorizationException)value); + setNotFound((TNotFoundException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); } break; @@ -22186,12 +26004,15 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); + case NOT_FOUND: + return getNotFound(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -22203,10 +26024,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -22215,24 +26038,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createLecture_result) - return this.equals((createLecture_result)that); + if (that instanceof updateLecture_result) + return this.equals((updateLecture_result)that); return false; } - public boolean equals(createLecture_result that) { + public boolean equals(updateLecture_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -22242,6 +26056,24 @@ public class SatelliteServer { return false; } + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -22251,29 +26083,39 @@ public class SatelliteServer { } @Override - public int compareTo(createLecture_result other) { + public int compareTo(updateLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -22295,22 +26137,30 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createLecture_result("); + StringBuilder sb = new StringBuilder("updateLecture_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("authError:"); + if (this.authError == null) { sb.append("null"); } else { - sb.append(this.success); + sb.append(this.authError); } first = false; if (!first) sb.append(", "); - sb.append("authError:"); - if (this.authError == null) { + sb.append("notFound:"); + if (this.notFound == null) { sb.append("null"); } else { - sb.append(this.authError); + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); } first = false; sb.append(")"); @@ -22338,15 +26188,15 @@ public class SatelliteServer { } } - private static class createLecture_resultStandardSchemeFactory implements SchemeFactory { - public createLecture_resultStandardScheme getScheme() { - return new createLecture_resultStandardScheme(); + private static class updateLecture_resultStandardSchemeFactory implements SchemeFactory { + public updateLecture_resultStandardScheme getScheme() { + return new updateLecture_resultStandardScheme(); } } - private static class createLecture_resultStandardScheme extends StandardScheme { + private static class updateLecture_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22356,14 +26206,6 @@ public class SatelliteServer { 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; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -22373,6 +26215,24 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -22384,93 +26244,104 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecture_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeString(struct.success); - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); oprot.writeFieldEnd(); } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class createLecture_resultTupleSchemeFactory implements SchemeFactory { - public createLecture_resultTupleScheme getScheme() { - return new createLecture_resultTupleScheme(); + private static class updateLecture_resultTupleSchemeFactory implements SchemeFactory { + public updateLecture_resultTupleScheme getScheme() { + return new updateLecture_resultTupleScheme(); } } - private static class createLecture_resultTupleScheme extends TupleScheme { + private static class updateLecture_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - oprot.writeString(struct.success); + if (struct.isSetServerError()) { + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class updateLecture_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("updateLecture_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_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("lecture", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); } public String userToken; // required - public String lectureId; // required - public LectureWrite lecture; // 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_TOKEN((short)1, "userToken"), - LECTURE_ID((short)2, "lectureId"), - LECTURE((short)3, "lecture"); + USER_TOKEN((short)1, "userToken"); private static final Map byName = new HashMap(); @@ -22487,10 +26358,6 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // LECTURE_ID - return LECTURE_ID; - case 3: // LECTURE - return LECTURE; default: return null; } @@ -22536,59 +26403,43 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.LECTURE, new org.apache.thrift.meta_data.FieldMetaData("lecture", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); } - public updateLecture_args() { + public getLectureList_args() { } - public updateLecture_args( - String userToken, - String lectureId, - LectureWrite lecture) + public getLectureList_args( + String userToken) { this(); this.userToken = userToken; - this.lectureId = lectureId; - this.lecture = lecture; } /** * Performs a deep copy on other. */ - public updateLecture_args(updateLecture_args other) { + public getLectureList_args(getLectureList_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetLectureId()) { - this.lectureId = other.lectureId; - } - if (other.isSetLecture()) { - this.lecture = new LectureWrite(other.lecture); - } } - public updateLecture_args deepCopy() { - return new updateLecture_args(this); + public getLectureList_args deepCopy() { + return new getLectureList_args(this); } @Override public void clear() { this.userToken = null; - this.lectureId = null; - this.lecture = null; } public String getUserToken() { return this.userToken; } - public updateLecture_args setUserToken(String userToken) { + public getLectureList_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -22608,54 +26459,6 @@ public class SatelliteServer { } } - public String getLectureId() { - return this.lectureId; - } - - public updateLecture_args setLectureId(String lectureId) { - this.lectureId = lectureId; - return this; - } - - public void unsetLectureId() { - this.lectureId = null; - } - - /** Returns true if field lectureId is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureId() { - return this.lectureId != null; - } - - public void setLectureIdIsSet(boolean value) { - if (!value) { - this.lectureId = null; - } - } - - public LectureWrite getLecture() { - return this.lecture; - } - - public updateLecture_args setLecture(LectureWrite lecture) { - this.lecture = lecture; - return this; - } - - public void unsetLecture() { - this.lecture = null; - } - - /** Returns true if field lecture is set (has been assigned a value) and false otherwise */ - public boolean isSetLecture() { - return this.lecture != null; - } - - public void setLectureIsSet(boolean value) { - if (!value) { - this.lecture = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -22666,22 +26469,6 @@ public class SatelliteServer { } break; - case LECTURE_ID: - if (value == null) { - unsetLectureId(); - } else { - setLectureId((String)value); - } - break; - - case LECTURE: - if (value == null) { - unsetLecture(); - } else { - setLecture((LectureWrite)value); - } - break; - } } @@ -22690,12 +26477,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case LECTURE_ID: - return getLectureId(); - - case LECTURE: - return getLecture(); - } throw new IllegalStateException(); } @@ -22709,10 +26490,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case LECTURE_ID: - return isSetLectureId(); - case LECTURE: - return isSetLecture(); } throw new IllegalStateException(); } @@ -22721,12 +26498,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateLecture_args) - return this.equals((updateLecture_args)that); + if (that instanceof getLectureList_args) + return this.equals((getLectureList_args)that); return false; } - public boolean equals(updateLecture_args that) { + public boolean equals(getLectureList_args that) { if (that == null) return false; @@ -22735,25 +26512,7 @@ public class SatelliteServer { if (this_present_userToken || that_present_userToken) { if (!(this_present_userToken && that_present_userToken)) return false; - if (!this.userToken.equals(that.userToken)) - return false; - } - - boolean this_present_lectureId = true && this.isSetLectureId(); - boolean that_present_lectureId = true && that.isSetLectureId(); - if (this_present_lectureId || that_present_lectureId) { - if (!(this_present_lectureId && that_present_lectureId)) - return false; - if (!this.lectureId.equals(that.lectureId)) - return false; - } - - boolean this_present_lecture = true && this.isSetLecture(); - boolean that_present_lecture = true && that.isSetLecture(); - if (this_present_lecture || that_present_lecture) { - if (!(this_present_lecture && that_present_lecture)) - return false; - if (!this.lecture.equals(that.lecture)) + if (!this.userToken.equals(that.userToken)) return false; } @@ -22766,7 +26525,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateLecture_args other) { + public int compareTo(getLectureList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22783,26 +26542,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLectureId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureId, other.lectureId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLecture()).compareTo(other.isSetLecture()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLecture()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecture, other.lecture); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -22820,7 +26559,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateLecture_args("); + StringBuilder sb = new StringBuilder("getLectureList_args("); boolean first = true; sb.append("userToken:"); @@ -22830,22 +26569,6 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; - if (!first) sb.append(", "); - sb.append("lectureId:"); - if (this.lectureId == null) { - sb.append("null"); - } else { - sb.append(this.lectureId); - } - first = false; - if (!first) sb.append(", "); - sb.append("lecture:"); - if (this.lecture == null) { - sb.append("null"); - } else { - sb.append(this.lecture); - } - first = false; sb.append(")"); return sb.toString(); } @@ -22853,9 +26576,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (lecture != null) { - lecture.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -22874,15 +26594,15 @@ public class SatelliteServer { } } - private static class updateLecture_argsStandardSchemeFactory implements SchemeFactory { - public updateLecture_argsStandardScheme getScheme() { - return new updateLecture_argsStandardScheme(); + private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { + public getLectureList_argsStandardScheme getScheme() { + return new getLectureList_argsStandardScheme(); } } - private static class updateLecture_argsStandardScheme extends StandardScheme { + private static class getLectureList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_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) @@ -22900,23 +26620,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LECTURE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureId = iprot.readString(); - struct.setLectureIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // LECTURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.lecture = new LectureWrite(); - struct.lecture.read(iprot); - struct.setLectureIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -22928,7 +26631,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecture_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); @@ -22937,99 +26640,68 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.lectureId != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureId); - oprot.writeFieldEnd(); - } - if (struct.lecture != null) { - oprot.writeFieldBegin(LECTURE_FIELD_DESC); - struct.lecture.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class updateLecture_argsTupleSchemeFactory implements SchemeFactory { - public updateLecture_argsTupleScheme getScheme() { - return new updateLecture_argsTupleScheme(); + private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { + public getLectureList_argsTupleScheme getScheme() { + return new getLectureList_argsTupleScheme(); } } - private static class updateLecture_argsTupleScheme extends TupleScheme { + private static class getLectureList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateLecture_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.isSetUserToken()) { optionals.set(0); } - if (struct.isSetLectureId()) { - optionals.set(1); - } - if (struct.isSetLecture()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 1); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetLectureId()) { - oprot.writeString(struct.lectureId); - } - if (struct.isSetLecture()) { - struct.lecture.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateLecture_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(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } - if (incoming.get(1)) { - struct.lectureId = iprot.readString(); - struct.setLectureIdIsSet(true); - } - if (incoming.get(2)) { - struct.lecture = new LectureWrite(); - struct.lecture.read(iprot); - struct.setLectureIsSet(true); - } } } } - public static class updateLecture_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("updateLecture_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.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 org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_resultTupleSchemeFactory()); } - public boolean success; // required + public List success; // required public TAuthorizationException authError; // required - public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -23048,8 +26720,8 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // NOT_FOUND - return NOT_FOUND; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -23090,90 +26762,108 @@ public class SatelliteServer { } // 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, LectureSummary.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); } - public updateLecture_result() { + public getLectureList_result() { } - public updateLecture_result( - boolean success, + public getLectureList_result( + List success, TAuthorizationException authError, - TNotFoundException notFound) + TInternalServerError serverError) { this(); this.success = success; - setSuccessIsSet(true); this.authError = authError; - this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public updateLecture_result(updateLecture_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getLectureList_result(getLectureList_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (LectureSummary other_element : other.success) { + __this__success.add(new LectureSummary(other_element)); + } + this.success = __this__success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetNotFound()) { - this.notFound = new TNotFoundException(other.notFound); + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); } } - public updateLecture_result deepCopy() { - return new updateLecture_result(this); + public getLectureList_result deepCopy() { + return new getLectureList_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.authError = null; - this.notFound = null; + this.serverError = null; } - public boolean isSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(LectureSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public updateLecture_result setSuccess(boolean success) { + public getLectureList_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 TAuthorizationException getAuthError() { return this.authError; } - public updateLecture_result setAuthError(TAuthorizationException authError) { + public getLectureList_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -23193,27 +26883,27 @@ public class SatelliteServer { } } - public TNotFoundException getNotFound() { - return this.notFound; + public TInternalServerError getServerError() { + return this.serverError; } - public updateLecture_result setNotFound(TNotFoundException notFound) { - this.notFound = notFound; + public getLectureList_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; return this; } - public void unsetNotFound() { - this.notFound = null; + public void unsetServerError() { + this.serverError = null; } - /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ - public boolean isSetNotFound() { - return this.notFound != null; + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; } - public void setNotFoundIsSet(boolean value) { + public void setServerErrorIsSet(boolean value) { if (!value) { - this.notFound = null; + this.serverError = null; } } @@ -23223,7 +26913,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -23235,11 +26925,11 @@ public class SatelliteServer { } break; - case NOT_FOUND: + case SERVER_ERROR: if (value == null) { - unsetNotFound(); + unsetServerError(); } else { - setNotFound((TNotFoundException)value); + setServerError((TInternalServerError)value); } break; @@ -23249,13 +26939,13 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case AUTH_ERROR: return getAuthError(); - case NOT_FOUND: - return getNotFound(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -23272,8 +26962,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -23282,21 +26972,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateLecture_result) - return this.equals((updateLecture_result)that); + if (that instanceof getLectureList_result) + return this.equals((getLectureList_result)that); return false; } - public boolean equals(updateLecture_result that) { + public boolean equals(getLectureList_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; } @@ -23309,12 +26999,12 @@ public class SatelliteServer { return false; } - boolean this_present_notFound = true && this.isSetNotFound(); - boolean that_present_notFound = true && that.isSetNotFound(); - if (this_present_notFound || that_present_notFound) { - if (!(this_present_notFound && that_present_notFound)) + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) return false; - if (!this.notFound.equals(that.notFound)) + if (!this.serverError.equals(that.serverError)) return false; } @@ -23327,7 +27017,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateLecture_result other) { + public int compareTo(getLectureList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -23354,12 +27044,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -23381,11 +27071,15 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateLecture_result("); + StringBuilder sb = new StringBuilder("getLectureList_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; if (!first) sb.append(", "); sb.append("authError:"); @@ -23395,12 +27089,12 @@ public class SatelliteServer { sb.append(this.authError); } first = false; - if (!first) sb.append(", "); - sb.append("notFound:"); - if (this.notFound == null) { + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { sb.append("null"); } else { - sb.append(this.notFound); + sb.append(this.serverError); } first = false; sb.append(")"); @@ -23422,23 +27116,21 @@ public class SatelliteServer { 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 updateLecture_resultStandardSchemeFactory implements SchemeFactory { - public updateLecture_resultStandardScheme getScheme() { - return new updateLecture_resultStandardScheme(); + private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { + public getLectureList_resultStandardScheme getScheme() { + return new getLectureList_resultStandardScheme(); } } - private static class updateLecture_resultStandardScheme extends StandardScheme { + private static class getLectureList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateLecture_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) @@ -23449,8 +27141,19 @@ public class SatelliteServer { } 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 _list182 = iprot.readListBegin(); + struct.success = new ArrayList(_list182.size); + for (int _i183 = 0; _i183 < _list182.size; ++_i183) + { + LectureSummary _elem184; + _elem184 = new LectureSummary(); + _elem184.read(iprot); + struct.success.add(_elem184); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -23465,11 +27168,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NOT_FOUND + case 2: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -23485,13 +27188,20 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateLecture_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); - 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 (LectureSummary _iter185 : struct.success) + { + _iter185.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -23499,9 +27209,9 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.notFound != null) { - oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); - struct.notFound.write(oprot); + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -23510,16 +27220,16 @@ public class SatelliteServer { } - private static class updateLecture_resultTupleSchemeFactory implements SchemeFactory { - public updateLecture_resultTupleScheme getScheme() { - return new updateLecture_resultTupleScheme(); + private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { + public getLectureList_resultTupleScheme getScheme() { + return new getLectureList_resultTupleScheme(); } } - private static class updateLecture_resultTupleScheme extends TupleScheme { + private static class getLectureList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateLecture_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()) { @@ -23528,27 +27238,43 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (LectureSummary _iter186 : struct.success) + { + _iter186.write(oprot); + } + } } if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetNotFound()) { - struct.notFound.write(oprot); + if (struct.isSetServerError()) { + struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateLecture_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(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list187.size); + for (int _i188 = 0; _i188 < _list187.size; ++_i188) + { + LectureSummary _elem189; + _elem189 = new LectureSummary(); + _elem189.read(iprot); + struct.success.add(_elem189); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -23557,31 +27283,34 @@ public class SatelliteServer { struct.setAuthErrorIsSet(true); } if (incoming.get(2)) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } } } } - 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 getLectureDetails_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("getLectureDetails_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); 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 getLectureDetails_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureDetails_argsTupleSchemeFactory()); } public String userToken; // required + public String lectureId; // 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_TOKEN((short)1, "userToken"); + USER_TOKEN((short)1, "userToken"), + LECTURE_ID((short)2, "lectureId"); private static final Map byName = new HashMap(); @@ -23598,6 +27327,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; + case 2: // LECTURE_ID + return LECTURE_ID; default: return null; } @@ -23643,43 +27374,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureDetails_args.class, metaDataMap); } - public getLectureList_args() { + public getLectureDetails_args() { } - public getLectureList_args( - String userToken) + public getLectureDetails_args( + String userToken, + String lectureId) { this(); this.userToken = userToken; + this.lectureId = lectureId; } /** * Performs a deep copy on other. */ - public getLectureList_args(getLectureList_args other) { + public getLectureDetails_args(getLectureDetails_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } + if (other.isSetLectureId()) { + this.lectureId = other.lectureId; + } } - public getLectureList_args deepCopy() { - return new getLectureList_args(this); + public getLectureDetails_args deepCopy() { + return new getLectureDetails_args(this); } @Override public void clear() { this.userToken = null; + this.lectureId = null; } public String getUserToken() { return this.userToken; } - public getLectureList_args setUserToken(String userToken) { + public getLectureDetails_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -23699,6 +27438,30 @@ public class SatelliteServer { } } + public String getLectureId() { + return this.lectureId; + } + + public getLectureDetails_args setLectureId(String lectureId) { + this.lectureId = lectureId; + return this; + } + + public void unsetLectureId() { + this.lectureId = null; + } + + /** Returns true if field lectureId is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureId() { + return this.lectureId != null; + } + + public void setLectureIdIsSet(boolean value) { + if (!value) { + this.lectureId = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -23709,6 +27472,14 @@ public class SatelliteServer { } break; + case LECTURE_ID: + if (value == null) { + unsetLectureId(); + } else { + setLectureId((String)value); + } + break; + } } @@ -23717,6 +27488,9 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case LECTURE_ID: + return getLectureId(); + } throw new IllegalStateException(); } @@ -23730,6 +27504,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case LECTURE_ID: + return isSetLectureId(); } throw new IllegalStateException(); } @@ -23738,12 +27514,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_args) - return this.equals((getLectureList_args)that); + if (that instanceof getLectureDetails_args) + return this.equals((getLectureDetails_args)that); return false; } - public boolean equals(getLectureList_args that) { + public boolean equals(getLectureDetails_args that) { if (that == null) return false; @@ -23756,6 +27532,15 @@ public class SatelliteServer { return false; } + boolean this_present_lectureId = true && this.isSetLectureId(); + boolean that_present_lectureId = true && that.isSetLectureId(); + if (this_present_lectureId || that_present_lectureId) { + if (!(this_present_lectureId && that_present_lectureId)) + return false; + if (!this.lectureId.equals(that.lectureId)) + return false; + } + return true; } @@ -23765,7 +27550,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureList_args other) { + public int compareTo(getLectureDetails_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -23782,6 +27567,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLectureId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureId, other.lectureId); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -23799,7 +27594,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_args("); + StringBuilder sb = new StringBuilder("getLectureDetails_args("); boolean first = true; sb.append("userToken:"); @@ -23809,6 +27604,14 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; + if (!first) sb.append(", "); + sb.append("lectureId:"); + if (this.lectureId == null) { + sb.append("null"); + } else { + sb.append(this.lectureId); + } + first = false; sb.append(")"); return sb.toString(); } @@ -23834,15 +27637,15 @@ public class SatelliteServer { } } - private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { - public getLectureList_argsStandardScheme getScheme() { - return new getLectureList_argsStandardScheme(); + private static class getLectureDetails_argsStandardSchemeFactory implements SchemeFactory { + public getLectureDetails_argsStandardScheme getScheme() { + return new getLectureDetails_argsStandardScheme(); } } - private static class getLectureList_argsStandardScheme extends StandardScheme { + private static class getLectureDetails_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, getLectureDetails_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -23860,6 +27663,14 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // LECTURE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.lectureId = iprot.readString(); + struct.setLectureIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -23871,7 +27682,7 @@ public class SatelliteServer { 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, getLectureDetails_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -23880,65 +27691,86 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } + if (struct.lectureId != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureId); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { - public getLectureList_argsTupleScheme getScheme() { - return new getLectureList_argsTupleScheme(); + private static class getLectureDetails_argsTupleSchemeFactory implements SchemeFactory { + public getLectureDetails_argsTupleScheme getScheme() { + return new getLectureDetails_argsTupleScheme(); } } - private static class getLectureList_argsTupleScheme extends TupleScheme { + private static class getLectureDetails_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, getLectureDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetLectureId()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } + if (struct.isSetLectureId()) { + oprot.writeString(struct.lectureId); + } } @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, getLectureDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } + if (incoming.get(1)) { + struct.lectureId = iprot.readString(); + struct.setLectureIdIsSet(true); + } } } } - 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 getLectureDetails_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("getLectureDetails_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.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); 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 getLectureDetails_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureDetails_resultTupleSchemeFactory()); } - public List success; // required + public LectureRead success; // required public TAuthorizationException authError; // required + public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), - AUTH_ERROR((short)1, "authError"); + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -23957,6 +27789,10 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -24001,72 +27837,68 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureSummary.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureRead.class))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureDetails_result.class, metaDataMap); } - public getLectureList_result() { + public getLectureDetails_result() { } - public getLectureList_result( - List success, - TAuthorizationException authError) + public getLectureDetails_result( + LectureRead success, + TAuthorizationException authError, + TNotFoundException notFound, + TInternalServerError serverError) { this(); this.success = success; this.authError = authError; + this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getLectureList_result(getLectureList_result other) { + public getLectureDetails_result(getLectureDetails_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (LectureSummary other_element : other.success) { - __this__success.add(new LectureSummary(other_element)); - } - this.success = __this__success; + this.success = new LectureRead(other.success); } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public getLectureList_result deepCopy() { - return new getLectureList_result(this); + public getLectureDetails_result deepCopy() { + return new getLectureDetails_result(this); } @Override public void clear() { this.success = null; this.authError = null; + this.notFound = null; + this.serverError = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(LectureSummary elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public LectureRead getSuccess() { return this.success; } - public getLectureList_result setSuccess(List success) { + public getLectureDetails_result setSuccess(LectureRead success) { this.success = success; return this; } @@ -24090,7 +27922,7 @@ public class SatelliteServer { return this.authError; } - public getLectureList_result setAuthError(TAuthorizationException authError) { + public getLectureDetails_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -24110,13 +27942,61 @@ public class SatelliteServer { } } + public TNotFoundException getNotFound() { + return this.notFound; + } + + public getLectureDetails_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; + return this; + } + + public void unsetNotFound() { + this.notFound = null; + } + + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; + } + + public void setNotFoundIsSet(boolean value) { + if (!value) { + this.notFound = null; + } + } + + public TInternalServerError getServerError() { + return this.serverError; + } + + public getLectureDetails_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((LectureRead)value); } break; @@ -24128,6 +28008,22 @@ public class SatelliteServer { } break; + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } @@ -24139,6 +28035,12 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); + case NOT_FOUND: + return getNotFound(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -24154,6 +28056,10 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -24162,12 +28068,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureList_result) - return this.equals((getLectureList_result)that); + if (that instanceof getLectureDetails_result) + return this.equals((getLectureDetails_result)that); return false; } - public boolean equals(getLectureList_result that) { + public boolean equals(getLectureDetails_result that) { if (that == null) return false; @@ -24189,6 +28095,24 @@ public class SatelliteServer { return false; } + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -24198,7 +28122,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureList_result other) { + public int compareTo(getLectureDetails_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -24225,6 +28149,26 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -24242,7 +28186,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_result("); + StringBuilder sb = new StringBuilder("getLectureDetails_result("); boolean first = true; sb.append("success:"); @@ -24260,6 +28204,22 @@ public class SatelliteServer { sb.append(this.authError); } first = false; + if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -24267,6 +28227,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -24285,15 +28248,15 @@ public class SatelliteServer { } } - private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { - public getLectureList_resultStandardScheme getScheme() { - return new getLectureList_resultStandardScheme(); + private static class getLectureDetails_resultStandardSchemeFactory implements SchemeFactory { + public getLectureDetails_resultStandardScheme getScheme() { + return new getLectureDetails_resultStandardScheme(); } } - private static class getLectureList_resultStandardScheme extends StandardScheme { + private static class getLectureDetails_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, getLectureDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -24304,19 +28267,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list182 = iprot.readListBegin(); - struct.success = new ArrayList(_list182.size); - for (int _i183 = 0; _i183 < _list182.size; ++_i183) - { - LectureSummary _elem184; - _elem184 = new LectureSummary(); - _elem184.read(iprot); - struct.success.add(_elem184); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new LectureRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -24331,6 +28284,24 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -24342,20 +28313,13 @@ public class SatelliteServer { 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, getLectureDetails_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 (LectureSummary _iter185 : struct.success) - { - _iter185.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -24363,61 +28327,68 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { - public getLectureList_resultTupleScheme getScheme() { - return new getLectureList_resultTupleScheme(); + private static class getLectureDetails_resultTupleSchemeFactory implements SchemeFactory { + public getLectureDetails_resultTupleScheme getScheme() { + return new getLectureDetails_resultTupleScheme(); } } - private static class getLectureList_resultTupleScheme extends TupleScheme { + private static class getLectureDetails_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, getLectureDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetAuthError()) { - optionals.set(1); + if (struct.isSetAuthError()) { + optionals.set(1); + } + if (struct.isSetNotFound()) { + optionals.set(2); + } + if (struct.isSetServerError()) { + optionals.set(3); } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (LectureSummary _iter186 : struct.success) - { - _iter186.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @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, getLectureDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list187.size); - for (int _i188 = 0; _i188 < _list187.size; ++_i188) - { - LectureSummary _elem189; - _elem189 = new LectureSummary(); - _elem189.read(iprot); - struct.success.add(_elem189); - } - } + struct.success = new LectureRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -24425,30 +28396,40 @@ public class SatelliteServer { struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(2)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class getLectureDetails_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("getLectureDetails_args"); + public static class getLecturesByImageVersion_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("getLecturesByImageVersion_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureDetails_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureDetails_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLecturesByImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLecturesByImageVersion_argsTupleSchemeFactory()); } public String userToken; // required - public String lectureId; // required + public String imageVersionId; // 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_TOKEN((short)1, "userToken"), - LECTURE_ID((short)2, "lectureId"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -24465,8 +28446,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // LECTURE_ID - return LECTURE_ID; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -24512,51 +28493,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureDetails_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturesByImageVersion_args.class, metaDataMap); } - public getLectureDetails_args() { + public getLecturesByImageVersion_args() { } - public getLectureDetails_args( + public getLecturesByImageVersion_args( String userToken, - String lectureId) + String imageVersionId) { this(); this.userToken = userToken; - this.lectureId = lectureId; + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public getLectureDetails_args(getLectureDetails_args other) { + public getLecturesByImageVersion_args(getLecturesByImageVersion_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetLectureId()) { - this.lectureId = other.lectureId; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } } - public getLectureDetails_args deepCopy() { - return new getLectureDetails_args(this); + public getLecturesByImageVersion_args deepCopy() { + return new getLecturesByImageVersion_args(this); } @Override public void clear() { this.userToken = null; - this.lectureId = null; + this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public getLectureDetails_args setUserToken(String userToken) { + public getLecturesByImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -24576,27 +28557,27 @@ public class SatelliteServer { } } - public String getLectureId() { - return this.lectureId; + public String getImageVersionId() { + return this.imageVersionId; } - public getLectureDetails_args setLectureId(String lectureId) { - this.lectureId = lectureId; + public getLecturesByImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetLectureId() { - this.lectureId = null; + public void unsetImageVersionId() { + this.imageVersionId = null; } - /** Returns true if field lectureId is set (has been assigned a value) and false otherwise */ - public boolean isSetLectureId() { - return this.lectureId != null; + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setLectureIdIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.lectureId = null; + this.imageVersionId = null; } } @@ -24610,11 +28591,11 @@ public class SatelliteServer { } break; - case LECTURE_ID: + case IMAGE_VERSION_ID: if (value == null) { - unsetLectureId(); + unsetImageVersionId(); } else { - setLectureId((String)value); + setImageVersionId((String)value); } break; @@ -24626,8 +28607,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case LECTURE_ID: - return getLectureId(); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -24642,8 +28623,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case LECTURE_ID: - return isSetLectureId(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -24652,12 +28633,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureDetails_args) - return this.equals((getLectureDetails_args)that); + if (that instanceof getLecturesByImageVersion_args) + return this.equals((getLecturesByImageVersion_args)that); return false; } - public boolean equals(getLectureDetails_args that) { + public boolean equals(getLecturesByImageVersion_args that) { if (that == null) return false; @@ -24670,12 +28651,12 @@ public class SatelliteServer { return false; } - boolean this_present_lectureId = true && this.isSetLectureId(); - boolean that_present_lectureId = true && that.isSetLectureId(); - if (this_present_lectureId || that_present_lectureId) { - if (!(this_present_lectureId && that_present_lectureId)) + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) return false; - if (!this.lectureId.equals(that.lectureId)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -24688,7 +28669,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureDetails_args other) { + public int compareTo(getLecturesByImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -24705,12 +28686,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureId, other.lectureId); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -24732,7 +28713,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureDetails_args("); + StringBuilder sb = new StringBuilder("getLecturesByImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -24743,11 +28724,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("lectureId:"); - if (this.lectureId == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.lectureId); + sb.append(this.imageVersionId); } first = false; sb.append(")"); @@ -24775,15 +28756,15 @@ public class SatelliteServer { } } - private static class getLectureDetails_argsStandardSchemeFactory implements SchemeFactory { - public getLectureDetails_argsStandardScheme getScheme() { - return new getLectureDetails_argsStandardScheme(); + private static class getLecturesByImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public getLecturesByImageVersion_argsStandardScheme getScheme() { + return new getLecturesByImageVersion_argsStandardScheme(); } } - private static class getLectureDetails_argsStandardScheme extends StandardScheme { + private static class getLecturesByImageVersion_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureDetails_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -24801,10 +28782,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LECTURE_ID + case 2: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.lectureId = iprot.readString(); - struct.setLectureIdIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -24820,7 +28801,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureDetails_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -24829,9 +28810,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.lectureId != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureId); + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -24840,35 +28821,35 @@ public class SatelliteServer { } - private static class getLectureDetails_argsTupleSchemeFactory implements SchemeFactory { - public getLectureDetails_argsTupleScheme getScheme() { - return new getLectureDetails_argsTupleScheme(); + private static class getLecturesByImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public getLecturesByImageVersion_argsTupleScheme getScheme() { + return new getLecturesByImageVersion_argsTupleScheme(); } } - private static class getLectureDetails_argsTupleScheme extends TupleScheme { + private static class getLecturesByImageVersion_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetLectureId()) { + if (struct.isSetImageVersionId()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetLectureId()) { - oprot.writeString(struct.lectureId); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -24876,36 +28857,39 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.lectureId = iprot.readString(); - struct.setLectureIdIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } } } } - public static class getLectureDetails_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("getLectureDetails_result"); + public static class getLecturesByImageVersion_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("getLecturesByImageVersion_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField 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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLectureDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureDetails_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLecturesByImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLecturesByImageVersion_resultTupleSchemeFactory()); } - public LectureRead success; // required + public List success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -24926,6 +28910,8 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -24970,35 +28956,44 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureRead.class))); + 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, LectureSummary.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureDetails_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturesByImageVersion_result.class, metaDataMap); } - public getLectureDetails_result() { + public getLecturesByImageVersion_result() { } - public getLectureDetails_result( - LectureRead success, + public getLecturesByImageVersion_result( + List success, TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); this.success = success; this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getLectureDetails_result(getLectureDetails_result other) { + public getLecturesByImageVersion_result(getLecturesByImageVersion_result other) { if (other.isSetSuccess()) { - this.success = new LectureRead(other.success); + List __this__success = new ArrayList(other.success.size()); + for (LectureSummary other_element : other.success) { + __this__success.add(new LectureSummary(other_element)); + } + this.success = __this__success; } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); @@ -25006,10 +29001,13 @@ public class SatelliteServer { if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public getLectureDetails_result deepCopy() { - return new getLectureDetails_result(this); + public getLecturesByImageVersion_result deepCopy() { + return new getLecturesByImageVersion_result(this); } @Override @@ -25017,13 +29015,29 @@ public class SatelliteServer { this.success = null; this.authError = null; this.notFound = null; + this.serverError = null; } - public LectureRead getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(LectureSummary elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public getLectureDetails_result setSuccess(LectureRead success) { + public getLecturesByImageVersion_result setSuccess(List success) { this.success = success; return this; } @@ -25047,7 +29061,7 @@ public class SatelliteServer { return this.authError; } - public getLectureDetails_result setAuthError(TAuthorizationException authError) { + public getLecturesByImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -25071,7 +29085,7 @@ public class SatelliteServer { return this.notFound; } - public getLectureDetails_result setNotFound(TNotFoundException notFound) { + public getLecturesByImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -25091,13 +29105,37 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public getLecturesByImageVersion_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((LectureRead)value); + setSuccess((List)value); } break; @@ -25117,6 +29155,14 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } @@ -25131,6 +29177,9 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -25148,6 +29197,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -25156,12 +29207,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLectureDetails_result) - return this.equals((getLectureDetails_result)that); + if (that instanceof getLecturesByImageVersion_result) + return this.equals((getLecturesByImageVersion_result)that); return false; } - public boolean equals(getLectureDetails_result that) { + public boolean equals(getLecturesByImageVersion_result that) { if (that == null) return false; @@ -25192,6 +29243,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -25201,7 +29261,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureDetails_result other) { + public int compareTo(getLecturesByImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -25238,6 +29298,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -25255,7 +29325,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureDetails_result("); + StringBuilder sb = new StringBuilder("getLecturesByImageVersion_result("); boolean first = true; sb.append("success:"); @@ -25281,6 +29351,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -25288,9 +29366,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -25309,15 +29384,15 @@ public class SatelliteServer { } } - private static class getLectureDetails_resultStandardSchemeFactory implements SchemeFactory { - public getLectureDetails_resultStandardScheme getScheme() { - return new getLectureDetails_resultStandardScheme(); + private static class getLecturesByImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public getLecturesByImageVersion_resultStandardScheme getScheme() { + return new getLecturesByImageVersion_resultStandardScheme(); } } - private static class getLectureDetails_resultStandardScheme extends StandardScheme { + private static class getLecturesByImageVersion_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLectureDetails_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -25328,9 +29403,19 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new LectureRead(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); + struct.success = new ArrayList(_list190.size); + for (int _i191 = 0; _i191 < _list190.size; ++_i191) + { + LectureSummary _elem192; + _elem192 = new LectureSummary(); + _elem192.read(iprot); + struct.success.add(_elem192); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -25354,6 +29439,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -25365,13 +29459,20 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLectureDetails_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (LectureSummary _iter193 : struct.success) + { + _iter193.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -25384,22 +29485,27 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLectureDetails_resultTupleSchemeFactory implements SchemeFactory { - public getLectureDetails_resultTupleScheme getScheme() { - return new getLectureDetails_resultTupleScheme(); + private static class getLecturesByImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public getLecturesByImageVersion_resultTupleScheme getScheme() { + return new getLecturesByImageVersion_resultTupleScheme(); } } - private static class getLectureDetails_resultTupleScheme extends TupleScheme { + private static class getLecturesByImageVersion_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -25411,9 +29517,18 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (LectureSummary _iter194 : struct.success) + { + _iter194.write(oprot); + } + } } if (struct.isSetAuthError()) { struct.authError.write(oprot); @@ -25421,15 +29536,27 @@ public class SatelliteServer { if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLectureDetails_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new LectureRead(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list195.size); + for (int _i196 = 0; _i196 < _list195.size; ++_i196) + { + LectureSummary _elem197; + _elem197 = new LectureSummary(); + _elem197.read(iprot); + struct.success.add(_elem197); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -25442,30 +29569,35 @@ public class SatelliteServer { struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class getLecturesByImageVersion_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("getLecturesByImageVersion_args"); + public static class deleteLecture_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("deleteLecture_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLecturesByImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLecturesByImageVersion_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteLecture_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required + public String lectureId; // 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_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"); + LECTURE_ID((short)2, "lectureId"); private static final Map byName = new HashMap(); @@ -25482,8 +29614,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; + case 2: // LECTURE_ID + return LECTURE_ID; default: return null; } @@ -25529,51 +29661,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturesByImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_args.class, metaDataMap); } - public getLecturesByImageVersion_args() { + public deleteLecture_args() { } - public getLecturesByImageVersion_args( + public deleteLecture_args( String userToken, - String imageVersionId) + String lectureId) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; + this.lectureId = lectureId; } /** * Performs a deep copy on other. */ - public getLecturesByImageVersion_args(getLecturesByImageVersion_args other) { + public deleteLecture_args(deleteLecture_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; + if (other.isSetLectureId()) { + this.lectureId = other.lectureId; } } - public getLecturesByImageVersion_args deepCopy() { - return new getLecturesByImageVersion_args(this); + public deleteLecture_args deepCopy() { + return new deleteLecture_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; + this.lectureId = null; } public String getUserToken() { return this.userToken; } - public getLecturesByImageVersion_args setUserToken(String userToken) { + public deleteLecture_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -25593,27 +29725,27 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; + public String getLectureId() { + return this.lectureId; } - public getLecturesByImageVersion_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; + public deleteLecture_args setLectureId(String lectureId) { + this.lectureId = lectureId; return this; } - public void unsetImageVersionId() { - this.imageVersionId = null; + public void unsetLectureId() { + this.lectureId = null; } - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; + /** Returns true if field lectureId is set (has been assigned a value) and false otherwise */ + public boolean isSetLectureId() { + return this.lectureId != null; } - public void setImageVersionIdIsSet(boolean value) { + public void setLectureIdIsSet(boolean value) { if (!value) { - this.imageVersionId = null; + this.lectureId = null; } } @@ -25627,11 +29759,11 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: + case LECTURE_ID: if (value == null) { - unsetImageVersionId(); + unsetLectureId(); } else { - setImageVersionId((String)value); + setLectureId((String)value); } break; @@ -25643,8 +29775,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case LECTURE_ID: + return getLectureId(); } throw new IllegalStateException(); @@ -25659,8 +29791,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case LECTURE_ID: + return isSetLectureId(); } throw new IllegalStateException(); } @@ -25669,12 +29801,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLecturesByImageVersion_args) - return this.equals((getLecturesByImageVersion_args)that); + if (that instanceof deleteLecture_args) + return this.equals((deleteLecture_args)that); return false; } - public boolean equals(getLecturesByImageVersion_args that) { + public boolean equals(deleteLecture_args that) { if (that == null) return false; @@ -25687,12 +29819,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageVersionId = true && this.isSetImageVersionId(); - boolean that_present_imageVersionId = true && that.isSetImageVersionId(); - if (this_present_imageVersionId || that_present_imageVersionId) { - if (!(this_present_imageVersionId && that_present_imageVersionId)) + boolean this_present_lectureId = true && this.isSetLectureId(); + boolean that_present_lectureId = true && that.isSetLectureId(); + if (this_present_lectureId || that_present_lectureId) { + if (!(this_present_lectureId && that_present_lectureId)) return false; - if (!this.imageVersionId.equals(that.imageVersionId)) + if (!this.lectureId.equals(that.lectureId)) return false; } @@ -25705,7 +29837,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLecturesByImageVersion_args other) { + public int compareTo(deleteLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -25722,12 +29854,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (isSetLectureId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureId, other.lectureId); if (lastComparison != 0) { return lastComparison; } @@ -25749,7 +29881,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLecturesByImageVersion_args("); + StringBuilder sb = new StringBuilder("deleteLecture_args("); boolean first = true; sb.append("userToken:"); @@ -25760,11 +29892,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { + sb.append("lectureId:"); + if (this.lectureId == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.lectureId); } first = false; sb.append(")"); @@ -25792,15 +29924,15 @@ public class SatelliteServer { } } - private static class getLecturesByImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_argsStandardScheme getScheme() { - return new getLecturesByImageVersion_argsStandardScheme(); + private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory { + public deleteLecture_argsStandardScheme getScheme() { + return new deleteLecture_argsStandardScheme(); } } - private static class getLecturesByImageVersion_argsStandardScheme extends StandardScheme { + private static class deleteLecture_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -25818,10 +29950,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID + case 2: // LECTURE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.lectureId = iprot.readString(); + struct.setLectureIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -25837,7 +29969,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -25846,9 +29978,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); + if (struct.lectureId != null) { + oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); + oprot.writeString(struct.lectureId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -25857,35 +29989,35 @@ public class SatelliteServer { } - private static class getLecturesByImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_argsTupleScheme getScheme() { - return new getLecturesByImageVersion_argsTupleScheme(); + private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory { + public deleteLecture_argsTupleScheme getScheme() { + return new deleteLecture_argsTupleScheme(); } } - private static class getLecturesByImageVersion_argsTupleScheme extends TupleScheme { + private static class deleteLecture_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { + if (struct.isSetLectureId()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); + if (struct.isSetLectureId()) { + oprot.writeString(struct.lectureId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -25893,36 +30025,36 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.lectureId = iprot.readString(); + struct.setLectureIdIsSet(true); } } } } - public static class getLecturesByImageVersion_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("getLecturesByImageVersion_result"); + public static class deleteLecture_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("deleteLecture_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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLecturesByImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLecturesByImageVersion_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteLecture_resultTupleSchemeFactory()); } - public List success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -25937,12 +30069,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -25986,105 +30118,61 @@ public class SatelliteServer { 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LectureSummary.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturesByImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_result.class, metaDataMap); } - public getLecturesByImageVersion_result() { + public deleteLecture_result() { } - public getLecturesByImageVersion_result( - List success, + public deleteLecture_result( TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); - this.success = success; this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getLecturesByImageVersion_result(getLecturesByImageVersion_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (LectureSummary other_element : other.success) { - __this__success.add(new LectureSummary(other_element)); - } - this.success = __this__success; - } + public deleteLecture_result(deleteLecture_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public getLecturesByImageVersion_result deepCopy() { - return new getLecturesByImageVersion_result(this); + public deleteLecture_result deepCopy() { + return new deleteLecture_result(this); } @Override public void clear() { - this.success = null; this.authError = null; this.notFound = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(LectureSummary elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public getLecturesByImageVersion_result setSuccess(List 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; - } + this.serverError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public getLecturesByImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteLecture_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -26108,7 +30196,7 @@ public class SatelliteServer { return this.notFound; } - public getLecturesByImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteLecture_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -26128,16 +30216,32 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public deleteLecture_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -26154,20 +30258,28 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -26179,12 +30291,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -26193,24 +30305,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLecturesByImageVersion_result) - return this.equals((getLecturesByImageVersion_result)that); + if (that instanceof deleteLecture_result) + return this.equals((deleteLecture_result)that); return false; } - public boolean equals(getLecturesByImageVersion_result that) { + public boolean equals(deleteLecture_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -26229,6 +30332,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -26238,39 +30350,39 @@ public class SatelliteServer { } @Override - public int compareTo(getLecturesByImageVersion_result other) { + public int compareTo(deleteLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -26292,17 +30404,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLecturesByImageVersion_result("); + StringBuilder sb = new StringBuilder("deleteLecture_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -26318,6 +30422,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -26343,15 +30455,15 @@ public class SatelliteServer { } } - private static class getLecturesByImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_resultStandardScheme getScheme() { - return new getLecturesByImageVersion_resultStandardScheme(); + private static class deleteLecture_resultStandardSchemeFactory implements SchemeFactory { + public deleteLecture_resultStandardScheme getScheme() { + return new deleteLecture_resultStandardScheme(); } } - private static class getLecturesByImageVersion_resultStandardScheme extends StandardScheme { + private static class deleteLecture_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26361,25 +30473,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); - struct.success = new ArrayList(_list190.size); - for (int _i191 = 0; _i191 < _list190.size; ++_i191) - { - LectureSummary _elem192; - _elem192 = new LectureSummary(); - _elem192.read(iprot); - struct.success.add(_elem192); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -26398,6 +30491,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26409,22 +30511,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_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 (LectureSummary _iter193 : struct.success) - { - _iter193.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -26435,103 +30525,96 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLecturesByImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_resultTupleScheme getScheme() { - return new getLecturesByImageVersion_resultTupleScheme(); + private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory { + public deleteLecture_resultTupleScheme getScheme() { + return new deleteLecture_resultTupleScheme(); } } - private static class getLecturesByImageVersion_resultTupleScheme extends TupleScheme { + private static class deleteLecture_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (LectureSummary _iter194 : struct.success) - { - _iter194.write(oprot); - } - } - } if (struct.isSetAuthError()) { struct.authError.write(oprot); } if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLecturesByImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list195.size); - for (int _i196 = 0; _i196 < _list195.size; ++_i196) - { - LectureSummary _elem197; - _elem197 = new LectureSummary(); - _elem197.read(iprot); - struct.success.add(_elem197); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class deleteLecture_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("deleteLecture_args"); + public static class writeLecturePermissions_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("writeLecturePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeLecturePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLecturePermissions_argsTupleSchemeFactory()); } public String userToken; // required public String lectureId; // required + public Map permissions; // 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_TOKEN((short)1, "userToken"), - LECTURE_ID((short)2, "lectureId"); + LECTURE_ID((short)2, "lectureId"), + PERMISSIONS((short)3, "permissions"); private static final Map byName = new HashMap(); @@ -26550,6 +30633,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // LECTURE_ID return LECTURE_ID; + case 3: // PERMISSIONS + return PERMISSIONS; default: return null; } @@ -26597,49 +30682,71 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", 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 , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturePermissions_args.class, metaDataMap); } - public deleteLecture_args() { + public writeLecturePermissions_args() { } - public deleteLecture_args( + public writeLecturePermissions_args( String userToken, - String lectureId) + String lectureId, + Map permissions) { this(); this.userToken = userToken; this.lectureId = lectureId; + this.permissions = permissions; } /** * Performs a deep copy on other. */ - public deleteLecture_args(deleteLecture_args other) { + public writeLecturePermissions_args(writeLecturePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetLectureId()) { this.lectureId = other.lectureId; } + if (other.isSetPermissions()) { + Map __this__permissions = new HashMap(other.permissions.size()); + for (Map.Entry other_element : other.permissions.entrySet()) { + + String other_element_key = other_element.getKey(); + LecturePermissions other_element_value = other_element.getValue(); + + String __this__permissions_copy_key = other_element_key; + + LecturePermissions __this__permissions_copy_value = new LecturePermissions(other_element_value); + + __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); + } + this.permissions = __this__permissions; + } } - public deleteLecture_args deepCopy() { - return new deleteLecture_args(this); + public writeLecturePermissions_args deepCopy() { + return new writeLecturePermissions_args(this); } @Override public void clear() { this.userToken = null; this.lectureId = null; + this.permissions = null; } public String getUserToken() { return this.userToken; } - public deleteLecture_args setUserToken(String userToken) { + public writeLecturePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -26663,7 +30770,7 @@ public class SatelliteServer { return this.lectureId; } - public deleteLecture_args setLectureId(String lectureId) { + public writeLecturePermissions_args setLectureId(String lectureId) { this.lectureId = lectureId; return this; } @@ -26683,6 +30790,41 @@ public class SatelliteServer { } } + public int getPermissionsSize() { + return (this.permissions == null) ? 0 : this.permissions.size(); + } + + public void putToPermissions(String key, LecturePermissions val) { + if (this.permissions == null) { + this.permissions = new HashMap(); + } + this.permissions.put(key, val); + } + + public Map getPermissions() { + return this.permissions; + } + + public writeLecturePermissions_args setPermissions(Map permissions) { + this.permissions = permissions; + return this; + } + + public void unsetPermissions() { + this.permissions = null; + } + + /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ + public boolean isSetPermissions() { + return this.permissions != null; + } + + public void setPermissionsIsSet(boolean value) { + if (!value) { + this.permissions = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -26701,6 +30843,14 @@ public class SatelliteServer { } break; + case PERMISSIONS: + if (value == null) { + unsetPermissions(); + } else { + setPermissions((Map)value); + } + break; + } } @@ -26712,6 +30862,9 @@ public class SatelliteServer { case LECTURE_ID: return getLectureId(); + case PERMISSIONS: + return getPermissions(); + } throw new IllegalStateException(); } @@ -26727,6 +30880,8 @@ public class SatelliteServer { return isSetUserToken(); case LECTURE_ID: return isSetLectureId(); + case PERMISSIONS: + return isSetPermissions(); } throw new IllegalStateException(); } @@ -26735,12 +30890,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteLecture_args) - return this.equals((deleteLecture_args)that); + if (that instanceof writeLecturePermissions_args) + return this.equals((writeLecturePermissions_args)that); return false; } - public boolean equals(deleteLecture_args that) { + public boolean equals(writeLecturePermissions_args that) { if (that == null) return false; @@ -26762,6 +30917,15 @@ public class SatelliteServer { return false; } + boolean this_present_permissions = true && this.isSetPermissions(); + boolean that_present_permissions = true && that.isSetPermissions(); + if (this_present_permissions || that_present_permissions) { + if (!(this_present_permissions && that_present_permissions)) + return false; + if (!this.permissions.equals(that.permissions)) + return false; + } + return true; } @@ -26771,7 +30935,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteLecture_args other) { + public int compareTo(writeLecturePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -26798,6 +30962,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPermissions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -26815,7 +30989,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_args("); + StringBuilder sb = new StringBuilder("writeLecturePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -26833,6 +31007,14 @@ public class SatelliteServer { sb.append(this.lectureId); } first = false; + if (!first) sb.append(", "); + sb.append("permissions:"); + if (this.permissions == null) { + sb.append("null"); + } else { + sb.append(this.permissions); + } + first = false; sb.append(")"); return sb.toString(); } @@ -26858,15 +31040,15 @@ public class SatelliteServer { } } - private static class deleteLecture_argsStandardSchemeFactory implements SchemeFactory { - public deleteLecture_argsStandardScheme getScheme() { - return new deleteLecture_argsStandardScheme(); + private static class writeLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + public writeLecturePermissions_argsStandardScheme getScheme() { + return new writeLecturePermissions_argsStandardScheme(); } } - private static class deleteLecture_argsStandardScheme extends StandardScheme { + private static class writeLecturePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26892,6 +31074,27 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // PERMISSIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map198 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map198.size); + for (int _i199 = 0; _i199 < _map198.size; ++_i199) + { + String _key200; + LecturePermissions _val201; + _key200 = iprot.readString(); + _val201 = new LecturePermissions(); + _val201.read(iprot); + struct.permissions.put(_key200, _val201); + } + iprot.readMapEnd(); + } + struct.setPermissionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26903,7 +31106,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -26917,22 +31120,35 @@ public class SatelliteServer { oprot.writeString(struct.lectureId); oprot.writeFieldEnd(); } + if (struct.permissions != null) { + oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); + for (Map.Entry _iter202 : struct.permissions.entrySet()) + { + oprot.writeString(_iter202.getKey()); + _iter202.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteLecture_argsTupleSchemeFactory implements SchemeFactory { - public deleteLecture_argsTupleScheme getScheme() { - return new deleteLecture_argsTupleScheme(); + private static class writeLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + public writeLecturePermissions_argsTupleScheme getScheme() { + return new writeLecturePermissions_argsTupleScheme(); } } - private static class deleteLecture_argsTupleScheme extends TupleScheme { + private static class writeLecturePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -26941,19 +31157,32 @@ public class SatelliteServer { if (struct.isSetLectureId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetPermissions()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetLectureId()) { oprot.writeString(struct.lectureId); } + if (struct.isSetPermissions()) { + { + oprot.writeI32(struct.permissions.size()); + for (Map.Entry _iter203 : struct.permissions.entrySet()) + { + oprot.writeString(_iter203.getKey()); + _iter203.getValue().write(oprot); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -26962,33 +31191,49 @@ public class SatelliteServer { struct.lectureId = iprot.readString(); struct.setLectureIdIsSet(true); } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TMap _map204 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.permissions = new HashMap(2*_map204.size); + for (int _i205 = 0; _i205 < _map204.size; ++_i205) + { + String _key206; + LecturePermissions _val207; + _key206 = iprot.readString(); + _val207 = new LecturePermissions(); + _val207.read(iprot); + struct.permissions.put(_key206, _val207); + } + } + struct.setPermissionsIsSet(true); + } } } } - public static class deleteLecture_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("deleteLecture_result"); + public static class writeLecturePermissions_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("writeLecturePermissions_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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteLecture_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteLecture_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeLecturePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeLecturePermissions_resultTupleSchemeFactory()); } - public boolean success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -27003,12 +31248,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -27049,90 +31294,64 @@ public class SatelliteServer { } // 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))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturePermissions_result.class, metaDataMap); } - public deleteLecture_result() { + public writeLecturePermissions_result() { } - public deleteLecture_result( - boolean success, + public writeLecturePermissions_result( TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); - this.success = success; - setSuccessIsSet(true); this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public deleteLecture_result(deleteLecture_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public writeLecturePermissions_result(writeLecturePermissions_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public deleteLecture_result deepCopy() { - return new deleteLecture_result(this); + public writeLecturePermissions_result deepCopy() { + return new writeLecturePermissions_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; this.authError = null; this.notFound = null; - } - - public boolean isSuccess() { - return this.success; - } - - public deleteLecture_result setSuccess(boolean success) { - this.success = success; - setSuccessIsSet(true); - return this; - } - - public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); - } - - /** 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); - } - - public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + this.serverError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public deleteLecture_result setAuthError(TAuthorizationException authError) { + public writeLecturePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -27156,7 +31375,7 @@ public class SatelliteServer { return this.notFound; } - public deleteLecture_result setNotFound(TNotFoundException notFound) { + public writeLecturePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -27176,16 +31395,32 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public writeLecturePermissions_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Boolean)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -27202,20 +31437,28 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); - case AUTH_ERROR: return getAuthError(); case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -27227,12 +31470,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -27241,24 +31484,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteLecture_result) - return this.equals((deleteLecture_result)that); + if (that instanceof writeLecturePermissions_result) + return this.equals((writeLecturePermissions_result)that); return false; } - public boolean equals(deleteLecture_result that) { + public boolean equals(writeLecturePermissions_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -27277,6 +31511,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -27286,39 +31529,39 @@ public class SatelliteServer { } @Override - public int compareTo(deleteLecture_result other) { + public int compareTo(writeLecturePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -27340,13 +31583,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteLecture_result("); + StringBuilder sb = new StringBuilder("writeLecturePermissions_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -27362,6 +31601,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -27381,23 +31628,21 @@ public class SatelliteServer { 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 deleteLecture_resultStandardSchemeFactory implements SchemeFactory { - public deleteLecture_resultStandardScheme getScheme() { - return new deleteLecture_resultStandardScheme(); + private static class writeLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + public writeLecturePermissions_resultStandardScheme getScheme() { + return new writeLecturePermissions_resultStandardScheme(); } } - private static class deleteLecture_resultStandardScheme extends StandardScheme { + private static class writeLecturePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27407,14 +31652,6 @@ public class SatelliteServer { 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; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -27433,6 +31670,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27444,15 +31690,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturePermissions_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(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -27463,90 +31704,93 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteLecture_resultTupleSchemeFactory implements SchemeFactory { - public deleteLecture_resultTupleScheme getScheme() { - return new deleteLecture_resultTupleScheme(); + private static class writeLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + public writeLecturePermissions_resultTupleScheme getScheme() { + return new writeLecturePermissions_resultTupleScheme(); } } - private static class deleteLecture_resultTupleScheme extends TupleScheme { + private static class writeLecturePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); - } if (struct.isSetAuthError()) { struct.authError.write(oprot); } if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteLecture_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class writeLecturePermissions_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("writeLecturePermissions_args"); + public static class getLecturePermissions_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("getLecturePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLecturePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLecturePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLecturePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLecturePermissions_argsTupleSchemeFactory()); } public String userToken; // required public String lectureId; // required - public Map permissions; // 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_TOKEN((short)1, "userToken"), - LECTURE_ID((short)2, "lectureId"), - PERMISSIONS((short)3, "permissions"); + LECTURE_ID((short)2, "lectureId"); private static final Map byName = new HashMap(); @@ -27565,8 +31809,6 @@ public class SatelliteServer { return USER_TOKEN; case 2: // LECTURE_ID return LECTURE_ID; - case 3: // PERMISSIONS - return PERMISSIONS; default: return null; } @@ -27614,71 +31856,49 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", 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 , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturePermissions_args.class, metaDataMap); } - public writeLecturePermissions_args() { + public getLecturePermissions_args() { } - public writeLecturePermissions_args( + public getLecturePermissions_args( String userToken, - String lectureId, - Map permissions) + String lectureId) { this(); this.userToken = userToken; this.lectureId = lectureId; - this.permissions = permissions; } /** * Performs a deep copy on other. */ - public writeLecturePermissions_args(writeLecturePermissions_args other) { + public getLecturePermissions_args(getLecturePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetLectureId()) { this.lectureId = other.lectureId; } - if (other.isSetPermissions()) { - Map __this__permissions = new HashMap(other.permissions.size()); - for (Map.Entry other_element : other.permissions.entrySet()) { - - String other_element_key = other_element.getKey(); - LecturePermissions other_element_value = other_element.getValue(); - - String __this__permissions_copy_key = other_element_key; - - LecturePermissions __this__permissions_copy_value = new LecturePermissions(other_element_value); - - __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); - } - this.permissions = __this__permissions; - } } - public writeLecturePermissions_args deepCopy() { - return new writeLecturePermissions_args(this); + public getLecturePermissions_args deepCopy() { + return new getLecturePermissions_args(this); } @Override public void clear() { this.userToken = null; this.lectureId = null; - this.permissions = null; } public String getUserToken() { return this.userToken; } - public writeLecturePermissions_args setUserToken(String userToken) { + public getLecturePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -27702,7 +31922,7 @@ public class SatelliteServer { return this.lectureId; } - public writeLecturePermissions_args setLectureId(String lectureId) { + public getLecturePermissions_args setLectureId(String lectureId) { this.lectureId = lectureId; return this; } @@ -27722,41 +31942,6 @@ public class SatelliteServer { } } - public int getPermissionsSize() { - return (this.permissions == null) ? 0 : this.permissions.size(); - } - - public void putToPermissions(String key, LecturePermissions val) { - if (this.permissions == null) { - this.permissions = new HashMap(); - } - this.permissions.put(key, val); - } - - public Map getPermissions() { - return this.permissions; - } - - public writeLecturePermissions_args setPermissions(Map permissions) { - this.permissions = permissions; - return this; - } - - public void unsetPermissions() { - this.permissions = null; - } - - /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ - public boolean isSetPermissions() { - return this.permissions != null; - } - - public void setPermissionsIsSet(boolean value) { - if (!value) { - this.permissions = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -27775,14 +31960,6 @@ public class SatelliteServer { } break; - case PERMISSIONS: - if (value == null) { - unsetPermissions(); - } else { - setPermissions((Map)value); - } - break; - } } @@ -27794,9 +31971,6 @@ public class SatelliteServer { case LECTURE_ID: return getLectureId(); - case PERMISSIONS: - return getPermissions(); - } throw new IllegalStateException(); } @@ -27812,8 +31986,6 @@ public class SatelliteServer { return isSetUserToken(); case LECTURE_ID: return isSetLectureId(); - case PERMISSIONS: - return isSetPermissions(); } throw new IllegalStateException(); } @@ -27822,12 +31994,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLecturePermissions_args) - return this.equals((writeLecturePermissions_args)that); + if (that instanceof getLecturePermissions_args) + return this.equals((getLecturePermissions_args)that); return false; } - public boolean equals(writeLecturePermissions_args that) { + public boolean equals(getLecturePermissions_args that) { if (that == null) return false; @@ -27849,15 +32021,6 @@ public class SatelliteServer { return false; } - boolean this_present_permissions = true && this.isSetPermissions(); - boolean that_present_permissions = true && that.isSetPermissions(); - if (this_present_permissions || that_present_permissions) { - if (!(this_present_permissions && that_present_permissions)) - return false; - if (!this.permissions.equals(that.permissions)) - return false; - } - return true; } @@ -27867,7 +32030,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeLecturePermissions_args other) { + public int compareTo(getLecturePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -27894,16 +32057,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPermissions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -27921,7 +32074,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLecturePermissions_args("); + StringBuilder sb = new StringBuilder("getLecturePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -27939,14 +32092,6 @@ public class SatelliteServer { sb.append(this.lectureId); } first = false; - if (!first) sb.append(", "); - sb.append("permissions:"); - if (this.permissions == null) { - sb.append("null"); - } else { - sb.append(this.permissions); - } - first = false; sb.append(")"); return sb.toString(); } @@ -27972,15 +32117,15 @@ public class SatelliteServer { } } - private static class writeLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { - public writeLecturePermissions_argsStandardScheme getScheme() { - return new writeLecturePermissions_argsStandardScheme(); + private static class getLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { + public getLecturePermissions_argsStandardScheme getScheme() { + return new getLecturePermissions_argsStandardScheme(); } } - private static class writeLecturePermissions_argsStandardScheme extends StandardScheme { + private static class getLecturePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28006,27 +32151,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PERMISSIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map198 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map198.size); - for (int _i199 = 0; _i199 < _map198.size; ++_i199) - { - String _key200; - LecturePermissions _val201; - _key200 = iprot.readString(); - _val201 = new LecturePermissions(); - _val201.read(iprot); - struct.permissions.put(_key200, _val201); - } - iprot.readMapEnd(); - } - struct.setPermissionsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -28038,7 +32162,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28052,35 +32176,22 @@ public class SatelliteServer { oprot.writeString(struct.lectureId); oprot.writeFieldEnd(); } - if (struct.permissions != null) { - oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter202 : struct.permissions.entrySet()) - { - oprot.writeString(_iter202.getKey()); - _iter202.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { - public writeLecturePermissions_argsTupleScheme getScheme() { - return new writeLecturePermissions_argsTupleScheme(); + private static class getLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { + public getLecturePermissions_argsTupleScheme getScheme() { + return new getLecturePermissions_argsTupleScheme(); } } - private static class writeLecturePermissions_argsTupleScheme extends TupleScheme { + private static class getLecturePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -28089,32 +32200,19 @@ public class SatelliteServer { if (struct.isSetLectureId()) { optionals.set(1); } - if (struct.isSetPermissions()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetLectureId()) { oprot.writeString(struct.lectureId); } - if (struct.isSetPermissions()) { - { - oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter203 : struct.permissions.entrySet()) - { - oprot.writeString(_iter203.getKey()); - _iter203.getValue().write(oprot); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -28123,49 +32221,36 @@ public class SatelliteServer { struct.lectureId = iprot.readString(); struct.setLectureIdIsSet(true); } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map204 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.permissions = new HashMap(2*_map204.size); - for (int _i205 = 0; _i205 < _map204.size; ++_i205) - { - String _key206; - LecturePermissions _val207; - _key206 = iprot.readString(); - _val207 = new LecturePermissions(); - _val207.read(iprot); - struct.permissions.put(_key206, _val207); - } - } - struct.setPermissionsIsSet(true); - } } } } - public static class writeLecturePermissions_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("writeLecturePermissions_result"); + public static class getLecturePermissions_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("getLecturePermissions_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.MAP, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeLecturePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeLecturePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLecturePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLecturePermissions_resultTupleSchemeFactory()); } - public boolean success; // required + public Map success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -28186,6 +32271,8 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -28226,90 +32313,121 @@ public class SatelliteServer { } // 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeLecturePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturePermissions_result.class, metaDataMap); } - public writeLecturePermissions_result() { + public getLecturePermissions_result() { } - public writeLecturePermissions_result( - boolean success, + public getLecturePermissions_result( + Map success, TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); this.success = success; - setSuccessIsSet(true); this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public writeLecturePermissions_result(writeLecturePermissions_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public getLecturePermissions_result(getLecturePermissions_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success.size()); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + LecturePermissions other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + LecturePermissions __this__success_copy_value = new LecturePermissions(other_element_value); + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } + this.success = __this__success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public writeLecturePermissions_result deepCopy() { - return new writeLecturePermissions_result(this); + public getLecturePermissions_result deepCopy() { + return new getLecturePermissions_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.authError = null; this.notFound = null; + this.serverError = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public boolean isSuccess() { + public void putToSuccess(String key, LecturePermissions val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { return this.success; } - public writeLecturePermissions_result setSuccess(boolean success) { + public getLecturePermissions_result setSuccess(Map 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 TAuthorizationException getAuthError() { return this.authError; } - public writeLecturePermissions_result setAuthError(TAuthorizationException authError) { + public getLecturePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -28333,7 +32451,7 @@ public class SatelliteServer { return this.notFound; } - public writeLecturePermissions_result setNotFound(TNotFoundException notFound) { + public getLecturePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -28353,13 +32471,37 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public getLecturePermissions_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((Map)value); } break; @@ -28379,13 +32521,21 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case AUTH_ERROR: return getAuthError(); @@ -28393,6 +32543,9 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -28410,6 +32563,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -28418,21 +32573,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeLecturePermissions_result) - return this.equals((writeLecturePermissions_result)that); + if (that instanceof getLecturePermissions_result) + return this.equals((getLecturePermissions_result)that); return false; } - public boolean equals(writeLecturePermissions_result that) { + public boolean equals(getLecturePermissions_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; } @@ -28454,6 +32609,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -28463,7 +32627,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeLecturePermissions_result other) { + public int compareTo(getLecturePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28500,6 +32664,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -28517,11 +32691,15 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeLecturePermissions_result("); + StringBuilder sb = new StringBuilder("getLecturePermissions_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; if (!first) sb.append(", "); sb.append("authError:"); @@ -28539,6 +32717,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -28558,23 +32744,21 @@ public class SatelliteServer { 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 writeLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { - public writeLecturePermissions_resultStandardScheme getScheme() { - return new writeLecturePermissions_resultStandardScheme(); + private static class getLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { + public getLecturePermissions_resultStandardScheme getScheme() { + return new getLecturePermissions_resultStandardScheme(); } } - private static class writeLecturePermissions_resultStandardScheme extends StandardScheme { + private static class getLecturePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28585,8 +32769,21 @@ public class SatelliteServer { } 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.MAP) { + { + org.apache.thrift.protocol.TMap _map208 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map208.size); + for (int _i209 = 0; _i209 < _map208.size; ++_i209) + { + String _key210; + LecturePermissions _val211; + _key210 = iprot.readString(); + _val211 = new LecturePermissions(); + _val211.read(iprot); + struct.success.put(_key210, _val211); + } + iprot.readMapEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -28610,6 +32807,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -28621,13 +32827,21 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturePermissions_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.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Map.Entry _iter212 : struct.success.entrySet()) + { + oprot.writeString(_iter212.getKey()); + _iter212.getValue().write(oprot); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -28640,22 +32854,27 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { - public writeLecturePermissions_resultTupleScheme getScheme() { - return new writeLecturePermissions_resultTupleScheme(); + private static class getLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { + public getLecturePermissions_resultTupleScheme getScheme() { + return new getLecturePermissions_resultTupleScheme(); } } - private static class writeLecturePermissions_resultTupleScheme extends TupleScheme { + private static class getLecturePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -28667,9 +32886,19 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter213 : struct.success.entrySet()) + { + oprot.writeString(_iter213.getKey()); + _iter213.getValue().write(oprot); + } + } } if (struct.isSetAuthError()) { struct.authError.write(oprot); @@ -28677,14 +32906,29 @@ public class SatelliteServer { if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map214.size); + for (int _i215 = 0; _i215 < _map214.size; ++_i215) + { + String _key216; + LecturePermissions _val217; + _key216 = iprot.readString(); + _val217 = new LecturePermissions(); + _val217.read(iprot); + struct.success.put(_key216, _val217); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -28697,30 +32941,38 @@ public class SatelliteServer { struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(3)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class getLecturePermissions_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("getLecturePermissions_args"); + public static class setLectureOwner_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("setLectureOwner_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOwnerId", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLecturePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLecturePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setLectureOwner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setLectureOwner_argsTupleSchemeFactory()); } public String userToken; // required public String lectureId; // required + public String newOwnerId; // 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_TOKEN((short)1, "userToken"), - LECTURE_ID((short)2, "lectureId"); + LECTURE_ID((short)2, "lectureId"), + NEW_OWNER_ID((short)3, "newOwnerId"); private static final Map byName = new HashMap(); @@ -28739,6 +32991,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // LECTURE_ID return LECTURE_ID; + case 3: // NEW_OWNER_ID + return NEW_OWNER_ID; default: return null; } @@ -28786,49 +33040,57 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLectureOwner_args.class, metaDataMap); } - public getLecturePermissions_args() { + public setLectureOwner_args() { } - public getLecturePermissions_args( + public setLectureOwner_args( String userToken, - String lectureId) + String lectureId, + String newOwnerId) { this(); this.userToken = userToken; this.lectureId = lectureId; + this.newOwnerId = newOwnerId; } /** * Performs a deep copy on other. */ - public getLecturePermissions_args(getLecturePermissions_args other) { + public setLectureOwner_args(setLectureOwner_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetLectureId()) { this.lectureId = other.lectureId; } + if (other.isSetNewOwnerId()) { + this.newOwnerId = other.newOwnerId; + } } - public getLecturePermissions_args deepCopy() { - return new getLecturePermissions_args(this); + public setLectureOwner_args deepCopy() { + return new setLectureOwner_args(this); } @Override public void clear() { this.userToken = null; this.lectureId = null; + this.newOwnerId = null; } public String getUserToken() { return this.userToken; } - public getLecturePermissions_args setUserToken(String userToken) { + public setLectureOwner_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -28852,7 +33114,7 @@ public class SatelliteServer { return this.lectureId; } - public getLecturePermissions_args setLectureId(String lectureId) { + public setLectureOwner_args setLectureId(String lectureId) { this.lectureId = lectureId; return this; } @@ -28872,6 +33134,30 @@ public class SatelliteServer { } } + public String getNewOwnerId() { + return this.newOwnerId; + } + + public setLectureOwner_args setNewOwnerId(String newOwnerId) { + this.newOwnerId = newOwnerId; + return this; + } + + public void unsetNewOwnerId() { + this.newOwnerId = null; + } + + /** Returns true if field newOwnerId is set (has been assigned a value) and false otherwise */ + public boolean isSetNewOwnerId() { + return this.newOwnerId != null; + } + + public void setNewOwnerIdIsSet(boolean value) { + if (!value) { + this.newOwnerId = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -28890,6 +33176,14 @@ public class SatelliteServer { } break; + case NEW_OWNER_ID: + if (value == null) { + unsetNewOwnerId(); + } else { + setNewOwnerId((String)value); + } + break; + } } @@ -28901,6 +33195,9 @@ public class SatelliteServer { case LECTURE_ID: return getLectureId(); + case NEW_OWNER_ID: + return getNewOwnerId(); + } throw new IllegalStateException(); } @@ -28916,6 +33213,8 @@ public class SatelliteServer { return isSetUserToken(); case LECTURE_ID: return isSetLectureId(); + case NEW_OWNER_ID: + return isSetNewOwnerId(); } throw new IllegalStateException(); } @@ -28924,12 +33223,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLecturePermissions_args) - return this.equals((getLecturePermissions_args)that); + if (that instanceof setLectureOwner_args) + return this.equals((setLectureOwner_args)that); return false; } - public boolean equals(getLecturePermissions_args that) { + public boolean equals(setLectureOwner_args that) { if (that == null) return false; @@ -28951,6 +33250,15 @@ public class SatelliteServer { return false; } + boolean this_present_newOwnerId = true && this.isSetNewOwnerId(); + boolean that_present_newOwnerId = true && that.isSetNewOwnerId(); + if (this_present_newOwnerId || that_present_newOwnerId) { + if (!(this_present_newOwnerId && that_present_newOwnerId)) + return false; + if (!this.newOwnerId.equals(that.newOwnerId)) + return false; + } + return true; } @@ -28960,7 +33268,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLecturePermissions_args other) { + public int compareTo(setLectureOwner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28987,6 +33295,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNewOwnerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -29004,7 +33322,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLecturePermissions_args("); + StringBuilder sb = new StringBuilder("setLectureOwner_args("); boolean first = true; sb.append("userToken:"); @@ -29022,6 +33340,14 @@ public class SatelliteServer { sb.append(this.lectureId); } first = false; + if (!first) sb.append(", "); + sb.append("newOwnerId:"); + if (this.newOwnerId == null) { + sb.append("null"); + } else { + sb.append(this.newOwnerId); + } + first = false; sb.append(")"); return sb.toString(); } @@ -29047,15 +33373,15 @@ public class SatelliteServer { } } - private static class getLecturePermissions_argsStandardSchemeFactory implements SchemeFactory { - public getLecturePermissions_argsStandardScheme getScheme() { - return new getLecturePermissions_argsStandardScheme(); + private static class setLectureOwner_argsStandardSchemeFactory implements SchemeFactory { + public setLectureOwner_argsStandardScheme getScheme() { + return new setLectureOwner_argsStandardScheme(); } } - private static class getLecturePermissions_argsStandardScheme extends StandardScheme { + private static class setLectureOwner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setLectureOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29081,6 +33407,14 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // NEW_OWNER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -29092,7 +33426,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setLectureOwner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29106,22 +33440,27 @@ public class SatelliteServer { oprot.writeString(struct.lectureId); oprot.writeFieldEnd(); } + if (struct.newOwnerId != null) { + oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); + oprot.writeString(struct.newOwnerId); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - - private static class getLecturePermissions_argsTupleSchemeFactory implements SchemeFactory { - public getLecturePermissions_argsTupleScheme getScheme() { - return new getLecturePermissions_argsTupleScheme(); + + private static class setLectureOwner_argsTupleSchemeFactory implements SchemeFactory { + public setLectureOwner_argsTupleScheme getScheme() { + return new setLectureOwner_argsTupleScheme(); } } - private static class getLecturePermissions_argsTupleScheme extends TupleScheme { + private static class setLectureOwner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -29130,19 +33469,25 @@ public class SatelliteServer { if (struct.isSetLectureId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetNewOwnerId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetLectureId()) { oprot.writeString(struct.lectureId); } + if (struct.isSetNewOwnerId()) { + oprot.writeString(struct.newOwnerId); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -29151,33 +33496,37 @@ public class SatelliteServer { struct.lectureId = iprot.readString(); struct.setLectureIdIsSet(true); } + if (incoming.get(2)) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); + } } } } - public static class getLecturePermissions_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("getLecturePermissions_result"); + public static class setLectureOwner_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("setLectureOwner_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 org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getLecturePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLecturePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setLectureOwner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setLectureOwner_resultTupleSchemeFactory()); } - public Map success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required + public TInternalServerError serverError; // 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"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -29192,12 +33541,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -29241,110 +33590,61 @@ public class SatelliteServer { 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 , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLecturePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLectureOwner_result.class, metaDataMap); } - public getLecturePermissions_result() { + public setLectureOwner_result() { } - public getLecturePermissions_result( - Map success, + public setLectureOwner_result( TAuthorizationException authError, - TNotFoundException notFound) + TNotFoundException notFound, + TInternalServerError serverError) { this(); - this.success = success; this.authError = authError; this.notFound = notFound; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getLecturePermissions_result(getLecturePermissions_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); - for (Map.Entry other_element : other.success.entrySet()) { - - String other_element_key = other_element.getKey(); - LecturePermissions other_element_value = other_element.getValue(); - - String __this__success_copy_key = other_element_key; - - LecturePermissions __this__success_copy_value = new LecturePermissions(other_element_value); - - __this__success.put(__this__success_copy_key, __this__success_copy_value); - } - this.success = __this__success; - } + public setLectureOwner_result(setLectureOwner_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public getLecturePermissions_result deepCopy() { - return new getLecturePermissions_result(this); + public setLectureOwner_result deepCopy() { + return new setLectureOwner_result(this); } @Override public void clear() { - this.success = null; this.authError = null; this.notFound = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, LecturePermissions val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); - } - - public Map getSuccess() { - return this.success; - } - - public getLecturePermissions_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; - } + this.serverError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public getLecturePermissions_result setAuthError(TAuthorizationException authError) { + public setLectureOwner_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -29368,7 +33668,7 @@ public class SatelliteServer { return this.notFound; } - public getLecturePermissions_result setNotFound(TNotFoundException notFound) { + public setLectureOwner_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -29388,16 +33688,32 @@ public class SatelliteServer { } } + public TInternalServerError getServerError() { + return this.serverError; + } + + public setLectureOwner_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Map)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -29414,20 +33730,28 @@ public class SatelliteServer { } break; + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); case NOT_FOUND: return getNotFound(); + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -29439,12 +33763,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -29453,24 +33777,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getLecturePermissions_result) - return this.equals((getLecturePermissions_result)that); + if (that instanceof setLectureOwner_result) + return this.equals((setLectureOwner_result)that); return false; } - public boolean equals(getLecturePermissions_result that) { + public boolean equals(setLectureOwner_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -29489,6 +33804,15 @@ public class SatelliteServer { return false; } + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -29498,39 +33822,39 @@ public class SatelliteServer { } @Override - public int compareTo(getLecturePermissions_result other) { + public int compareTo(setLectureOwner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -29552,17 +33876,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLecturePermissions_result("); + StringBuilder sb = new StringBuilder("setLectureOwner_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -29578,6 +33894,14 @@ public class SatelliteServer { sb.append(this.notFound); } first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -29603,15 +33927,15 @@ public class SatelliteServer { } } - private static class getLecturePermissions_resultStandardSchemeFactory implements SchemeFactory { - public getLecturePermissions_resultStandardScheme getScheme() { - return new getLecturePermissions_resultStandardScheme(); + private static class setLectureOwner_resultStandardSchemeFactory implements SchemeFactory { + public setLectureOwner_resultStandardScheme getScheme() { + return new setLectureOwner_resultStandardScheme(); } } - private static class getLecturePermissions_resultStandardScheme extends StandardScheme { + private static class setLectureOwner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setLectureOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29621,27 +33945,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map208 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map208.size); - for (int _i209 = 0; _i209 < _map208.size; ++_i209) - { - String _key210; - LecturePermissions _val211; - _key210 = iprot.readString(); - _val211 = new LecturePermissions(); - _val211.read(iprot); - struct.success.put(_key210, _val211); - } - iprot.readMapEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -29660,6 +33963,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -29671,23 +33983,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setLectureOwner_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.STRUCT, struct.success.size())); - for (Map.Entry _iter212 : struct.success.entrySet()) - { - oprot.writeString(_iter212.getKey()); - _iter212.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -29698,82 +33997,69 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLecturePermissions_resultTupleSchemeFactory implements SchemeFactory { - public getLecturePermissions_resultTupleScheme getScheme() { - return new getLecturePermissions_resultTupleScheme(); + private static class setLectureOwner_resultTupleSchemeFactory implements SchemeFactory { + public setLectureOwner_resultTupleScheme getScheme() { + return new setLectureOwner_resultTupleScheme(); } } - private static class getLecturePermissions_resultTupleScheme extends TupleScheme { + private static class setLectureOwner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter213 : struct.success.entrySet()) - { - oprot.writeString(_iter213.getKey()); - _iter213.getValue().write(oprot); - } - } - } if (struct.isSetAuthError()) { struct.authError.write(oprot); } if (struct.isSetNotFound()) { struct.notFound.write(oprot); } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getLecturePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setLectureOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map214.size); - for (int _i215 = 0; _i215 < _map214.size; ++_i215) - { - String _key216; - LecturePermissions _val217; - _key216 = iprot.readString(); - _val217 = new LecturePermissions(); - _val217.read(iprot); - struct.success.put(_key216, _val217); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } -- cgit v1.2.3-55-g7522