From dd3affd5ce50ae8469b9a76a3f48d1fdf911706f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 3 Jul 2015 16:43:24 +0200 Subject: API UPSDTE --- .../openslx/bwlp/thrift/iface/ImageDataError.java | 5 +- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 244 +- .../openslx/bwlp/thrift/iface/LectureSummary.java | 104 +- .../openslx/bwlp/thrift/iface/MasterServer.java | 212 +- .../openslx/bwlp/thrift/iface/SatelliteServer.java | 11969 +++++++++---------- .../org/openslx/bwlp/thrift/iface/ShareMode.java | 5 +- 6 files changed, 6165 insertions(+), 6374 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageDataError.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageDataError.java index 4567fe7..c0ce32f 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageDataError.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageDataError.java @@ -13,7 +13,8 @@ import org.apache.thrift.TEnum; public enum ImageDataError implements org.apache.thrift.TEnum { INVALID_DATA(0), - UNKNOWN_IMAGE(1); + UNKNOWN_IMAGE(1), + INVALID_SHARE_MODE(2); private final int value; @@ -38,6 +39,8 @@ public enum ImageDataError implements org.apache.thrift.TEnum { return INVALID_DATA; case 1: return UNKNOWN_IMAGE; + case 2: + return INVALID_SHARE_MODE; default: return null; } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java index 8f65fc9..6c2bbb1 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java @@ -45,6 +45,8 @@ public class LectureRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -72,6 +74,8 @@ public class LectureRead implements org.apache.thrift.TBase byName = new HashMap(); @@ -139,6 +145,10 @@ public class LectureRead implements org.apache.thrift.TBase metaDataMap; static { @@ -232,6 +244,10 @@ public class LectureRead implements org.apache.thrift.TBase(_list97.size); @@ -2362,7 +2550,7 @@ public class LectureRead implements org.apache.thrift.TBase(_list100.size); @@ -2375,7 +2563,7 @@ public class LectureRead implements org.apache.thrift.TBase(_list103.size); @@ -2389,20 +2577,20 @@ public class LectureRead implements org.apache.thrift.TBase(_list218.size); - for (int _i219 = 0; _i219 < _list218.size; ++_i219) + org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); + struct.success = new ArrayList(_list210.size); + for (int _i211 = 0; _i211 < _list210.size; ++_i211) { - UserInfo _elem220; - _elem220 = new UserInfo(); - _elem220.read(iprot); - struct.success.add(_elem220); + UserInfo _elem212; + _elem212 = new UserInfo(); + _elem212.read(iprot); + struct.success.add(_elem212); } iprot.readListEnd(); } @@ -5831,9 +5831,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (UserInfo _iter221 : struct.success) + for (UserInfo _iter213 : struct.success) { - _iter221.write(oprot); + _iter213.write(oprot); } oprot.writeListEnd(); } @@ -5872,9 +5872,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter222 : struct.success) + for (UserInfo _iter214 : struct.success) { - _iter222.write(oprot); + _iter214.write(oprot); } } } @@ -5889,14 +5889,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list223.size); - for (int _i224 = 0; _i224 < _list223.size; ++_i224) + org.apache.thrift.protocol.TList _list215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list215.size); + for (int _i216 = 0; _i216 < _list215.size; ++_i216) { - UserInfo _elem225; - _elem225 = new UserInfo(); - _elem225.read(iprot); - struct.success.add(_elem225); + UserInfo _elem217; + _elem217 = new UserInfo(); + _elem217.read(iprot); + struct.success.add(_elem217); } } struct.setSuccessIsSet(true); @@ -6749,14 +6749,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); - struct.success = new ArrayList(_list226.size); - for (int _i227 = 0; _i227 < _list226.size; ++_i227) + org.apache.thrift.protocol.TList _list218 = iprot.readListBegin(); + struct.success = new ArrayList(_list218.size); + for (int _i219 = 0; _i219 < _list218.size; ++_i219) { - ImagePublishData _elem228; - _elem228 = new ImagePublishData(); - _elem228.read(iprot); - struct.success.add(_elem228); + ImagePublishData _elem220; + _elem220 = new ImagePublishData(); + _elem220.read(iprot); + struct.success.add(_elem220); } iprot.readListEnd(); } @@ -6793,9 +6793,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ImagePublishData _iter229 : struct.success) + for (ImagePublishData _iter221 : struct.success) { - _iter229.write(oprot); + _iter221.write(oprot); } oprot.writeListEnd(); } @@ -6834,9 +6834,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ImagePublishData _iter230 : struct.success) + for (ImagePublishData _iter222 : struct.success) { - _iter230.write(oprot); + _iter222.write(oprot); } } } @@ -6851,14 +6851,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list231.size); - for (int _i232 = 0; _i232 < _list231.size; ++_i232) + org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list223.size); + for (int _i224 = 0; _i224 < _list223.size; ++_i224) { - ImagePublishData _elem233; - _elem233 = new ImagePublishData(); - _elem233.read(iprot); - struct.success.add(_elem233); + ImagePublishData _elem225; + _elem225 = new ImagePublishData(); + _elem225.read(iprot); + struct.success.add(_elem225); } } struct.setSuccessIsSet(true); @@ -10623,13 +10623,13 @@ public class MasterServer { case 3: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list234.size); - for (int _i235 = 0; _i235 < _list234.size; ++_i235) + org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list226.size); + for (int _i227 = 0; _i227 < _list226.size; ++_i227) { - ByteBuffer _elem236; - _elem236 = iprot.readBinary(); - struct.blockHashes.add(_elem236); + ByteBuffer _elem228; + _elem228 = iprot.readBinary(); + struct.blockHashes.add(_elem228); } iprot.readListEnd(); } @@ -10667,9 +10667,9 @@ public class MasterServer { oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter237 : struct.blockHashes) + for (ByteBuffer _iter229 : struct.blockHashes) { - oprot.writeBinary(_iter237); + oprot.writeBinary(_iter229); } oprot.writeListEnd(); } @@ -10712,9 +10712,9 @@ public class MasterServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter238 : struct.blockHashes) + for (ByteBuffer _iter230 : struct.blockHashes) { - oprot.writeBinary(_iter238); + oprot.writeBinary(_iter230); } } } @@ -10735,13 +10735,13 @@ public class MasterServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list239.size); - for (int _i240 = 0; _i240 < _list239.size; ++_i240) + org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list231.size); + for (int _i232 = 0; _i232 < _list231.size; ++_i232) { - ByteBuffer _elem241; - _elem241 = iprot.readBinary(); - struct.blockHashes.add(_elem241); + ByteBuffer _elem233; + _elem233 = iprot.readBinary(); + struct.blockHashes.add(_elem233); } } struct.setBlockHashesIsSet(true); @@ -14804,14 +14804,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list242 = iprot.readListBegin(); - struct.success = new ArrayList(_list242.size); - for (int _i243 = 0; _i243 < _list242.size; ++_i243) + org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); + struct.success = new ArrayList(_list234.size); + for (int _i235 = 0; _i235 < _list234.size; ++_i235) { - Organization _elem244; - _elem244 = new Organization(); - _elem244.read(iprot); - struct.success.add(_elem244); + Organization _elem236; + _elem236 = new Organization(); + _elem236.read(iprot); + struct.success.add(_elem236); } iprot.readListEnd(); } @@ -14839,9 +14839,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Organization _iter245 : struct.success) + for (Organization _iter237 : struct.success) { - _iter245.write(oprot); + _iter237.write(oprot); } oprot.writeListEnd(); } @@ -14872,9 +14872,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter246 : struct.success) + for (Organization _iter238 : struct.success) { - _iter246.write(oprot); + _iter238.write(oprot); } } } @@ -14886,14 +14886,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list247.size); - for (int _i248 = 0; _i248 < _list247.size; ++_i248) + org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list239.size); + for (int _i240 = 0; _i240 < _list239.size; ++_i240) { - Organization _elem249; - _elem249 = new Organization(); - _elem249.read(iprot); - struct.success.add(_elem249); + Organization _elem241; + _elem241 = new Organization(); + _elem241.read(iprot); + struct.success.add(_elem241); } } struct.setSuccessIsSet(true); @@ -15458,14 +15458,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list250 = iprot.readListBegin(); - struct.success = new ArrayList(_list250.size); - for (int _i251 = 0; _i251 < _list250.size; ++_i251) + org.apache.thrift.protocol.TList _list242 = iprot.readListBegin(); + struct.success = new ArrayList(_list242.size); + for (int _i243 = 0; _i243 < _list242.size; ++_i243) { - OperatingSystem _elem252; - _elem252 = new OperatingSystem(); - _elem252.read(iprot); - struct.success.add(_elem252); + OperatingSystem _elem244; + _elem244 = new OperatingSystem(); + _elem244.read(iprot); + struct.success.add(_elem244); } iprot.readListEnd(); } @@ -15493,9 +15493,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (OperatingSystem _iter253 : struct.success) + for (OperatingSystem _iter245 : struct.success) { - _iter253.write(oprot); + _iter245.write(oprot); } oprot.writeListEnd(); } @@ -15526,9 +15526,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter254 : struct.success) + for (OperatingSystem _iter246 : struct.success) { - _iter254.write(oprot); + _iter246.write(oprot); } } } @@ -15540,14 +15540,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list255.size); - for (int _i256 = 0; _i256 < _list255.size; ++_i256) + org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list247.size); + for (int _i248 = 0; _i248 < _list247.size; ++_i248) { - OperatingSystem _elem257; - _elem257 = new OperatingSystem(); - _elem257.read(iprot); - struct.success.add(_elem257); + OperatingSystem _elem249; + _elem249 = new OperatingSystem(); + _elem249.read(iprot); + struct.success.add(_elem249); } } struct.setSuccessIsSet(true); @@ -16112,14 +16112,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list258 = iprot.readListBegin(); - struct.success = new ArrayList(_list258.size); - for (int _i259 = 0; _i259 < _list258.size; ++_i259) + org.apache.thrift.protocol.TList _list250 = iprot.readListBegin(); + struct.success = new ArrayList(_list250.size); + for (int _i251 = 0; _i251 < _list250.size; ++_i251) { - Virtualizer _elem260; - _elem260 = new Virtualizer(); - _elem260.read(iprot); - struct.success.add(_elem260); + Virtualizer _elem252; + _elem252 = new Virtualizer(); + _elem252.read(iprot); + struct.success.add(_elem252); } iprot.readListEnd(); } @@ -16147,9 +16147,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Virtualizer _iter261 : struct.success) + for (Virtualizer _iter253 : struct.success) { - _iter261.write(oprot); + _iter253.write(oprot); } oprot.writeListEnd(); } @@ -16180,9 +16180,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter262 : struct.success) + for (Virtualizer _iter254 : struct.success) { - _iter262.write(oprot); + _iter254.write(oprot); } } } @@ -16194,14 +16194,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list263.size); - for (int _i264 = 0; _i264 < _list263.size; ++_i264) + org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list255.size); + for (int _i256 = 0; _i256 < _list255.size; ++_i256) { - Virtualizer _elem265; - _elem265 = new Virtualizer(); - _elem265.read(iprot); - struct.success.add(_elem265); + Virtualizer _elem257; + _elem257 = new Virtualizer(); + _elem257.read(iprot); + struct.success.add(_elem257); } } struct.setSuccessIsSet(true); 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 ba52f7d..4c6196f 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -38,6 +38,8 @@ public class SatelliteServer { public long getVersion() throws org.apache.thrift.TException; + public int getPageSize() throws org.apache.thrift.TException; + public TransferInformation requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes) throws TTransferRejectedException, TAuthorizationException, org.apache.thrift.TException; public void cancelUpload(String uploadToken) throws org.apache.thrift.TException; @@ -60,7 +62,7 @@ public class SatelliteServer { public List getAllOrganizations() throws org.apache.thrift.TException; - public List getImageList(String userToken, List tagSearch) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; + public List getImageList(String userToken, List tagSearch, int page) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; public ImageDetailsRead getImageDetails(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; @@ -82,12 +84,10 @@ public class SatelliteServer { public void updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public List getLectureList(String userToken) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; + public List getLectureList(String userToken, int page) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException; public LectureRead getLectureDetails(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public List getLecturesByImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; - public void deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; public void writeLecturePermissions(String userToken, String lectureId, Map permissions) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; @@ -102,6 +102,8 @@ public class SatelliteServer { public void getVersion(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getPageSize(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void cancelUpload(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -124,7 +126,7 @@ public class SatelliteServer { public void getAllOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImageList(String userToken, List tagSearch, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageList(String userToken, List tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getImageDetails(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -146,12 +148,10 @@ public class SatelliteServer { public void updateLecture(String userToken, String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLectureList(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getLectureList(String userToken, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getLectureDetails(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getLecturesByImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void deleteLecture(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void writeLecturePermissions(String userToken, String lectureId, Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -204,6 +204,28 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVersion failed: unknown result"); } + public int getPageSize() throws org.apache.thrift.TException + { + send_getPageSize(); + return recv_getPageSize(); + } + + public void send_getPageSize() throws org.apache.thrift.TException + { + getPageSize_args args = new getPageSize_args(); + sendBase("getPageSize", args); + } + + public int recv_getPageSize() throws org.apache.thrift.TException + { + getPageSize_result result = new getPageSize_result(); + receiveBase(result, "getPageSize"); + if (result.isSetSuccess()) { + return result.success; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPageSize failed: unknown result"); + } + public TransferInformation requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes) throws TTransferRejectedException, TAuthorizationException, org.apache.thrift.TException { send_requestImageVersionUpload(userToken, imageBaseId, fileSize, blockHashes); @@ -468,17 +490,18 @@ 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, TInternalServerError, org.apache.thrift.TException + public List getImageList(String userToken, List tagSearch, int page) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { - send_getImageList(userToken, tagSearch); + send_getImageList(userToken, tagSearch, page); return recv_getImageList(); } - public void send_getImageList(String userToken, List tagSearch) throws org.apache.thrift.TException + public void send_getImageList(String userToken, List tagSearch, int page) throws org.apache.thrift.TException { getImageList_args args = new getImageList_args(); args.setUserToken(userToken); args.setTagSearch(tagSearch); + args.setPage(page); sendBase("getImageList", args); } @@ -818,16 +841,17 @@ public class SatelliteServer { return; } - public List getLectureList(String userToken) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException + public List getLectureList(String userToken, int page) throws TAuthorizationException, TInternalServerError, org.apache.thrift.TException { - send_getLectureList(userToken); + send_getLectureList(userToken, page); return recv_getLectureList(); } - public void send_getLectureList(String userToken) throws org.apache.thrift.TException + public void send_getLectureList(String userToken, int page) throws org.apache.thrift.TException { getLectureList_args args = new getLectureList_args(); args.setUserToken(userToken); + args.setPage(page); sendBase("getLectureList", args); } @@ -880,39 +904,6 @@ public class SatelliteServer { 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, TInternalServerError, org.apache.thrift.TException - { - send_getLecturesByImageVersion(userToken, imageVersionId); - return recv_getLecturesByImageVersion(); - } - - public void send_getLecturesByImageVersion(String userToken, String imageVersionId) throws org.apache.thrift.TException - { - getLecturesByImageVersion_args args = new getLecturesByImageVersion_args(); - args.setUserToken(userToken); - args.setImageVersionId(imageVersionId); - sendBase("getLecturesByImageVersion", args); - } - - public List recv_getLecturesByImageVersion() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException - { - getLecturesByImageVersion_result result = new getLecturesByImageVersion_result(); - receiveBase(result, "getLecturesByImageVersion"); - if (result.isSetSuccess()) { - return result.success; - } - if (result.authError != null) { - throw result.authError; - } - 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 void deleteLecture(String userToken, String lectureId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_deleteLecture(userToken, lectureId); @@ -1085,6 +1076,35 @@ public class SatelliteServer { } } + public void getPageSize(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getPageSize_call method_call = new getPageSize_call(resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getPageSize_call extends org.apache.thrift.async.TAsyncMethodCall { + public getPageSize_call(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); + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPageSize", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getPageSize_args args = new getPageSize_args(); + args.write(prot); + prot.writeMessageEnd(); + } + + public int getResult() throws org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_getPageSize(); + } + } + public void requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); requestImageVersionUpload_call method_call = new requestImageVersionUpload_call(userToken, imageBaseId, fileSize, blockHashes, resultHandler, this, ___protocolFactory, ___transport); @@ -1443,9 +1463,9 @@ public class SatelliteServer { } } - public void getImageList(String userToken, List tagSearch, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageList(String userToken, List tagSearch, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImageList_call method_call = new getImageList_call(userToken, tagSearch, resultHandler, this, ___protocolFactory, ___transport); + getImageList_call method_call = new getImageList_call(userToken, tagSearch, page, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } @@ -1453,10 +1473,12 @@ public class SatelliteServer { public static class getImageList_call extends org.apache.thrift.async.TAsyncMethodCall { private String userToken; private List tagSearch; - public getImageList_call(String userToken, List tagSearch, 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 { + private int page; + public getImageList_call(String userToken, List tagSearch, int page, 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.tagSearch = tagSearch; + this.page = page; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { @@ -1464,6 +1486,7 @@ public class SatelliteServer { getImageList_args args = new getImageList_args(); args.setUserToken(userToken); args.setTagSearch(tagSearch); + args.setPage(page); args.write(prot); prot.writeMessageEnd(); } @@ -1843,24 +1866,27 @@ public class SatelliteServer { } } - public void getLectureList(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getLectureList(String userToken, int page, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getLectureList_call method_call = new getLectureList_call(userToken, resultHandler, this, ___protocolFactory, ___transport); + getLectureList_call method_call = new getLectureList_call(userToken, page, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getLectureList_call extends org.apache.thrift.async.TAsyncMethodCall { private String userToken; - public getLectureList_call(String userToken, 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 { + private int page; + public getLectureList_call(String userToken, int page, 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.page = page; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLectureList", org.apache.thrift.protocol.TMessageType.CALL, 0)); getLectureList_args args = new getLectureList_args(); args.setUserToken(userToken); + args.setPage(page); args.write(prot); prot.writeMessageEnd(); } @@ -1910,41 +1936,6 @@ public class SatelliteServer { } } - public void getLecturesByImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getLecturesByImageVersion_call method_call = new getLecturesByImageVersion_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getLecturesByImageVersion_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - public getLecturesByImageVersion_call(String userToken, String imageVersionId, 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.imageVersionId = imageVersionId; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLecturesByImageVersion", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getLecturesByImageVersion_args args = new getLecturesByImageVersion_args(); - args.setUserToken(userToken); - args.setImageVersionId(imageVersionId); - args.write(prot); - prot.writeMessageEnd(); - } - - 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!"); - } - 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_getLecturesByImageVersion(); - } - } - public void deleteLecture(String userToken, String lectureId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); deleteLecture_call method_call = new deleteLecture_call(userToken, lectureId, resultHandler, this, ___protocolFactory, ___transport); @@ -2105,6 +2096,7 @@ public class SatelliteServer { private static Map> getProcessMap(Map> processMap) { processMap.put("getVersion", new getVersion()); + processMap.put("getPageSize", new getPageSize()); processMap.put("requestImageVersionUpload", new requestImageVersionUpload()); processMap.put("cancelUpload", new cancelUpload()); processMap.put("queryUploadStatus", new queryUploadStatus()); @@ -2129,7 +2121,6 @@ public class SatelliteServer { processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureDetails", new getLectureDetails()); - processMap.put("getLecturesByImageVersion", new getLecturesByImageVersion()); processMap.put("deleteLecture", new deleteLecture()); processMap.put("writeLecturePermissions", new writeLecturePermissions()); processMap.put("getLecturePermissions", new getLecturePermissions()); @@ -2158,6 +2149,27 @@ public class SatelliteServer { } } + public static class getPageSize extends org.apache.thrift.ProcessFunction { + public getPageSize() { + super("getPageSize"); + } + + public getPageSize_args getEmptyArgsInstance() { + return new getPageSize_args(); + } + + protected boolean isOneway() { + return false; + } + + public getPageSize_result getResult(I iface, getPageSize_args args) throws org.apache.thrift.TException { + getPageSize_result result = new getPageSize_result(); + result.success = iface.getPageSize(); + result.setSuccessIsSet(true); + return result; + } + } + public static class requestImageVersionUpload extends org.apache.thrift.ProcessFunction { public requestImageVersionUpload() { super("requestImageVersionUpload"); @@ -2415,7 +2427,7 @@ public class SatelliteServer { public getImageList_result getResult(I iface, getImageList_args args) throws org.apache.thrift.TException { getImageList_result result = new getImageList_result(); try { - result.success = iface.getImageList(args.userToken, args.tagSearch); + result.success = iface.getImageList(args.userToken, args.tagSearch, args.page); } catch (TAuthorizationException authError) { result.authError = authError; } catch (TInternalServerError serverError) { @@ -2723,7 +2735,7 @@ public class SatelliteServer { public getLectureList_result getResult(I iface, getLectureList_args args) throws org.apache.thrift.TException { getLectureList_result result = new getLectureList_result(); try { - result.success = iface.getLectureList(args.userToken); + result.success = iface.getLectureList(args.userToken, args.page); } catch (TAuthorizationException authError) { result.authError = authError; } catch (TInternalServerError serverError) { @@ -2761,34 +2773,6 @@ public class SatelliteServer { } } - public static class getLecturesByImageVersion extends org.apache.thrift.ProcessFunction { - public getLecturesByImageVersion() { - super("getLecturesByImageVersion"); - } - - public getLecturesByImageVersion_args getEmptyArgsInstance() { - return new getLecturesByImageVersion_args(); - } - - protected boolean isOneway() { - return false; - } - - public getLecturesByImageVersion_result getResult(I iface, getLecturesByImageVersion_args args) throws org.apache.thrift.TException { - getLecturesByImageVersion_result result = new getLecturesByImageVersion_result(); - try { - result.success = iface.getLecturesByImageVersion(args.userToken, args.imageVersionId); - } catch (TAuthorizationException authError) { - result.authError = authError; - } catch (TNotFoundException notFound) { - result.notFound = notFound; - } catch (TInternalServerError serverError) { - result.serverError = serverError; - } - return result; - } - } - public static class deleteLecture extends org.apache.thrift.ProcessFunction { public deleteLecture() { super("deleteLecture"); @@ -2915,6 +2899,7 @@ public class SatelliteServer { private static Map> getProcessMap(Map> processMap) { processMap.put("getVersion", new getVersion()); + processMap.put("getPageSize", new getPageSize()); processMap.put("requestImageVersionUpload", new requestImageVersionUpload()); processMap.put("cancelUpload", new cancelUpload()); processMap.put("queryUploadStatus", new queryUploadStatus()); @@ -2939,7 +2924,6 @@ public class SatelliteServer { processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); processMap.put("getLectureDetails", new getLectureDetails()); - processMap.put("getLecturesByImageVersion", new getLecturesByImageVersion()); processMap.put("deleteLecture", new deleteLecture()); processMap.put("writeLecturePermissions", new writeLecturePermissions()); processMap.put("getLecturePermissions", new getLecturePermissions()); @@ -2999,6 +2983,58 @@ public class SatelliteServer { } } + public static class getPageSize extends org.apache.thrift.AsyncProcessFunction { + public getPageSize() { + super("getPageSize"); + } + + public getPageSize_args getEmptyArgsInstance() { + return new getPageSize_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + getPageSize_result result = new getPageSize_result(); + result.success = o; + result.setSuccessIsSet(true); + 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; + getPageSize_result result = new getPageSize_result(); + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getPageSize_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getPageSize(resultHandler); + } + } + public static class requestImageVersionUpload extends org.apache.thrift.AsyncProcessFunction { public requestImageVersionUpload() { super("requestImageVersionUpload"); @@ -3650,7 +3686,7 @@ public class SatelliteServer { } public void start(I iface, getImageList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImageList(args.userToken, args.tagSearch,resultHandler); + iface.getImageList(args.userToken, args.tagSearch, args.page,resultHandler); } } @@ -4381,7 +4417,7 @@ public class SatelliteServer { } public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureList(args.userToken,resultHandler); + iface.getLectureList(args.userToken, args.page,resultHandler); } } @@ -4452,73 +4488,6 @@ public class SatelliteServer { } } - public static class getLecturesByImageVersion extends org.apache.thrift.AsyncProcessFunction> { - public getLecturesByImageVersion() { - super("getLecturesByImageVersion"); - } - - public getLecturesByImageVersion_args getEmptyArgsInstance() { - return new getLecturesByImageVersion_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getLecturesByImageVersion_result result = new getLecturesByImageVersion_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getLecturesByImageVersion_result result = new getLecturesByImageVersion_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, getLecturesByImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLecturesByImageVersion(args.userToken, args.imageVersionId,resultHandler); - } - } - public static class deleteLecture extends org.apache.thrift.AsyncProcessFunction { public deleteLecture() { super("deleteLecture"); @@ -5386,31 +5355,20 @@ public class SatelliteServer { } - public static class requestImageVersionUpload_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("requestImageVersionUpload_args"); + public static class getPageSize_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("getPageSize_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 FILE_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("fileSize", org.apache.thrift.protocol.TType.I64, (short)3); - private static final org.apache.thrift.protocol.TField BLOCK_HASHES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockHashes", org.apache.thrift.protocol.TType.LIST, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new requestImageVersionUpload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestImageVersionUpload_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPageSize_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPageSize_argsTupleSchemeFactory()); } - public String userToken; // required - public String imageBaseId; // required - public long fileSize; // required - public List blockHashes; // 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"), - FILE_SIZE((short)3, "fileSize"), - BLOCK_HASHES((short)4, "blockHashes"); +; private static final Map byName = new HashMap(); @@ -5425,14 +5383,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_TOKEN - return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; - case 3: // FILE_SIZE - return FILE_SIZE; - case 4: // BLOCK_HASHES - return BLOCK_HASHES; default: return null; } @@ -5471,235 +5421,37 @@ public class SatelliteServer { return _fieldName; } } - - // isset id assignments - private static final int __FILESIZE_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.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.FILE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("fileSize", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.BLOCK_HASHES, new org.apache.thrift.meta_data.FieldMetaData("blockHashes", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageVersionUpload_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPageSize_args.class, metaDataMap); } - public requestImageVersionUpload_args() { - } - - public requestImageVersionUpload_args( - String userToken, - String imageBaseId, - long fileSize, - List blockHashes) - { - this(); - this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.fileSize = fileSize; - setFileSizeIsSet(true); - this.blockHashes = blockHashes; + public getPageSize_args() { } /** * Performs a deep copy on other. */ - public requestImageVersionUpload_args(requestImageVersionUpload_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetUserToken()) { - this.userToken = other.userToken; - } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; - } - this.fileSize = other.fileSize; - if (other.isSetBlockHashes()) { - List __this__blockHashes = new ArrayList(other.blockHashes); - this.blockHashes = __this__blockHashes; - } + public getPageSize_args(getPageSize_args other) { } - public requestImageVersionUpload_args deepCopy() { - return new requestImageVersionUpload_args(this); + public getPageSize_args deepCopy() { + return new getPageSize_args(this); } @Override public void clear() { - this.userToken = null; - this.imageBaseId = null; - setFileSizeIsSet(false); - this.fileSize = 0; - this.blockHashes = null; - } - - public String getUserToken() { - return this.userToken; - } - - public requestImageVersionUpload_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 getImageBaseId() { - return this.imageBaseId; - } - - public requestImageVersionUpload_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; - return this; - } - - public void unsetImageBaseId() { - this.imageBaseId = 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 setImageBaseIdIsSet(boolean value) { - if (!value) { - this.imageBaseId = null; - } - } - - public long getFileSize() { - return this.fileSize; - } - - public requestImageVersionUpload_args setFileSize(long fileSize) { - this.fileSize = fileSize; - setFileSizeIsSet(true); - return this; - } - - public void unsetFileSize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } - - /** Returns true if field fileSize is set (has been assigned a value) and false otherwise */ - public boolean isSetFileSize() { - return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); - } - - public void setFileSizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); - } - - public int getBlockHashesSize() { - return (this.blockHashes == null) ? 0 : this.blockHashes.size(); - } - - public java.util.Iterator getBlockHashesIterator() { - return (this.blockHashes == null) ? null : this.blockHashes.iterator(); - } - - public void addToBlockHashes(ByteBuffer elem) { - if (this.blockHashes == null) { - this.blockHashes = new ArrayList(); - } - this.blockHashes.add(elem); - } - - public List getBlockHashes() { - return this.blockHashes; - } - - public requestImageVersionUpload_args setBlockHashes(List blockHashes) { - this.blockHashes = blockHashes; - return this; - } - - public void unsetBlockHashes() { - this.blockHashes = null; - } - - /** Returns true if field blockHashes is set (has been assigned a value) and false otherwise */ - public boolean isSetBlockHashes() { - return this.blockHashes != null; - } - - public void setBlockHashesIsSet(boolean value) { - if (!value) { - this.blockHashes = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_TOKEN: - if (value == null) { - unsetUserToken(); - } else { - setUserToken((String)value); - } - break; - - case IMAGE_BASE_ID: - if (value == null) { - unsetImageBaseId(); - } else { - setImageBaseId((String)value); - } - break; - - case FILE_SIZE: - if (value == null) { - unsetFileSize(); - } else { - setFileSize((Long)value); - } - break; - - case BLOCK_HASHES: - if (value == null) { - unsetBlockHashes(); - } else { - setBlockHashes((List)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case USER_TOKEN: - return getUserToken(); - - case IMAGE_BASE_ID: - return getImageBaseId(); - - case FILE_SIZE: - return Long.valueOf(getFileSize()); - - case BLOCK_HASHES: - return getBlockHashes(); - } throw new IllegalStateException(); } @@ -5711,14 +5463,6 @@ public class SatelliteServer { } switch (field) { - case USER_TOKEN: - return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); - case FILE_SIZE: - return isSetFileSize(); - case BLOCK_HASHES: - return isSetBlockHashes(); } throw new IllegalStateException(); } @@ -5727,51 +5471,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof requestImageVersionUpload_args) - return this.equals((requestImageVersionUpload_args)that); + if (that instanceof getPageSize_args) + return this.equals((getPageSize_args)that); return false; } - public boolean equals(requestImageVersionUpload_args that) { + public boolean equals(getPageSize_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_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.imageBaseId.equals(that.imageBaseId)) - return false; - } - - boolean this_present_fileSize = true; - boolean that_present_fileSize = true; - if (this_present_fileSize || that_present_fileSize) { - if (!(this_present_fileSize && that_present_fileSize)) - return false; - if (this.fileSize != that.fileSize) - return false; - } - - boolean this_present_blockHashes = true && this.isSetBlockHashes(); - boolean that_present_blockHashes = true && that.isSetBlockHashes(); - if (this_present_blockHashes || that_present_blockHashes) { - if (!(this_present_blockHashes && that_present_blockHashes)) - return false; - if (!this.blockHashes.equals(that.blockHashes)) - return false; - } - return true; } @@ -5781,100 +5489,33 @@ public class SatelliteServer { } @Override - public int compareTo(requestImageVersionUpload_args other) { + public int compareTo(getPageSize_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(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFileSize()).compareTo(other.isSetFileSize()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFileSize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileSize, other.fileSize); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetBlockHashes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockHashes, other.blockHashes); - 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("requestImageVersionUpload_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("imageBaseId:"); - if (this.imageBaseId == null) { - sb.append("null"); - } else { - sb.append(this.imageBaseId); - } - first = false; - if (!first) sb.append(", "); - sb.append("fileSize:"); - sb.append(this.fileSize); - first = false; - if (!first) sb.append(", "); - sb.append("blockHashes:"); - if (this.blockHashes == null) { - sb.append("null"); - } else { - sb.append(this.blockHashes); + return getClass().getName().compareTo(other.getClass().getName()); } - first = false; + + int lastComparison = 0; + + 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("getPageSize_args("); + boolean first = true; + sb.append(")"); return sb.toString(); } @@ -5894,23 +5535,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 requestImageVersionUpload_argsStandardSchemeFactory implements SchemeFactory { - public requestImageVersionUpload_argsStandardScheme getScheme() { - return new requestImageVersionUpload_argsStandardScheme(); + private static class getPageSize_argsStandardSchemeFactory implements SchemeFactory { + public getPageSize_argsStandardScheme getScheme() { + return new getPageSize_argsStandardScheme(); } } - private static class requestImageVersionUpload_argsStandardScheme extends StandardScheme { + private static class getPageSize_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPageSize_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -5920,48 +5559,6 @@ public class SatelliteServer { 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_BASE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // FILE_SIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.fileSize = iprot.readI64(); - struct.setFileSizeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // BLOCK_HASHES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list106.size); - for (int _i107 = 0; _i107 < _list106.size; ++_i107) - { - ByteBuffer _elem108; - _elem108 = iprot.readBinary(); - struct.blockHashes.add(_elem108); - } - iprot.readListEnd(); - } - struct.setBlockHashesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -5973,142 +5570,53 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPageSize_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.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(FILE_SIZE_FIELD_DESC); - oprot.writeI64(struct.fileSize); - oprot.writeFieldEnd(); - if (struct.blockHashes != null) { - oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter109 : struct.blockHashes) - { - oprot.writeBinary(_iter109); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class requestImageVersionUpload_argsTupleSchemeFactory implements SchemeFactory { - public requestImageVersionUpload_argsTupleScheme getScheme() { - return new requestImageVersionUpload_argsTupleScheme(); + private static class getPageSize_argsTupleSchemeFactory implements SchemeFactory { + public getPageSize_argsTupleScheme getScheme() { + return new getPageSize_argsTupleScheme(); } } - private static class requestImageVersionUpload_argsTupleScheme extends TupleScheme { + private static class getPageSize_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPageSize_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUserToken()) { - optionals.set(0); - } - if (struct.isSetImageBaseId()) { - optionals.set(1); - } - if (struct.isSetFileSize()) { - optionals.set(2); - } - if (struct.isSetBlockHashes()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetUserToken()) { - oprot.writeString(struct.userToken); - } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); - } - if (struct.isSetFileSize()) { - oprot.writeI64(struct.fileSize); - } - if (struct.isSetBlockHashes()) { - { - oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter110 : struct.blockHashes) - { - oprot.writeBinary(_iter110); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPageSize_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - struct.userToken = iprot.readString(); - struct.setUserTokenIsSet(true); - } - if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } - if (incoming.get(2)) { - struct.fileSize = iprot.readI64(); - struct.setFileSizeIsSet(true); - } - if (incoming.get(3)) { - { - org.apache.thrift.protocol.TList _list111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list111.size); - for (int _i112 = 0; _i112 < _list111.size; ++_i112) - { - ByteBuffer _elem113; - _elem113 = iprot.readBinary(); - struct.blockHashes.add(_elem113); - } - } - struct.setBlockHashesIsSet(true); - } } } } - public static class requestImageVersionUpload_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("requestImageVersionUpload_result"); + public static class getPageSize_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("getPageSize_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 REJECTION_FIELD_DESC = new org.apache.thrift.protocol.TField("rejection", org.apache.thrift.protocol.TType.STRUCT, (short)1); - 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)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new requestImageVersionUpload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestImageVersionUpload_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getPageSize_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getPageSize_resultTupleSchemeFactory()); } - public TransferInformation success; // required - public TTransferRejectedException rejection; // required - public TAuthorizationException authError; // required + public int success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - REJECTION((short)1, "rejection"), - AUTH_ERROR((short)2, "authError"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -6125,10 +5633,6 @@ public class SatelliteServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // REJECTION - return REJECTION; - case 2: // AUTH_ERROR - return AUTH_ERROR; default: return null; } @@ -6169,129 +5673,67 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferInformation.class))); - tmpMap.put(_Fields.REJECTION, new org.apache.thrift.meta_data.FieldMetaData("rejection", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - 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))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageVersionUpload_result.class, metaDataMap); - } - - public requestImageVersionUpload_result() { - } - - public requestImageVersionUpload_result( - TransferInformation success, - TTransferRejectedException rejection, - TAuthorizationException authError) - { - this(); - this.success = success; - this.rejection = rejection; - this.authError = authError; - } - - /** - * Performs a deep copy on other. - */ - public requestImageVersionUpload_result(requestImageVersionUpload_result other) { - if (other.isSetSuccess()) { - this.success = new TransferInformation(other.success); - } - if (other.isSetRejection()) { - this.rejection = new TTransferRejectedException(other.rejection); - } - if (other.isSetAuthError()) { - this.authError = new TAuthorizationException(other.authError); - } - } - - public requestImageVersionUpload_result deepCopy() { - return new requestImageVersionUpload_result(this); - } - - @Override - public void clear() { - this.success = null; - this.rejection = null; - this.authError = null; - } - - public TransferInformation getSuccess() { - return this.success; - } - - public requestImageVersionUpload_result setSuccess(TransferInformation 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; - } + 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.I32))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPageSize_result.class, metaDataMap); } - public TTransferRejectedException getRejection() { - return this.rejection; + public getPageSize_result() { } - public requestImageVersionUpload_result setRejection(TTransferRejectedException rejection) { - this.rejection = rejection; - return this; + public getPageSize_result( + int success) + { + this(); + this.success = success; + setSuccessIsSet(true); } - public void unsetRejection() { - this.rejection = null; + /** + * Performs a deep copy on other. + */ + public getPageSize_result(getPageSize_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - /** Returns true if field rejection is set (has been assigned a value) and false otherwise */ - public boolean isSetRejection() { - return this.rejection != null; + public getPageSize_result deepCopy() { + return new getPageSize_result(this); } - public void setRejectionIsSet(boolean value) { - if (!value) { - this.rejection = null; - } + @Override + public void clear() { + setSuccessIsSet(false); + this.success = 0; } - public TAuthorizationException getAuthError() { - return this.authError; + public int getSuccess() { + return this.success; } - public requestImageVersionUpload_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public getPageSize_result setSuccess(int success) { + this.success = success; + setSuccessIsSet(true); return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__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; + /** 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 setAuthErrorIsSet(boolean value) { - if (!value) { - this.authError = null; - } + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -6300,23 +5742,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((TransferInformation)value); - } - break; - - case REJECTION: - if (value == null) { - unsetRejection(); - } else { - setRejection((TTransferRejectedException)value); - } - break; - - case AUTH_ERROR: - if (value == null) { - unsetAuthError(); - } else { - setAuthError((TAuthorizationException)value); + setSuccess((Integer)value); } break; @@ -6326,13 +5752,7 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); - - case REJECTION: - return getRejection(); - - case AUTH_ERROR: - return getAuthError(); + return Integer.valueOf(getSuccess()); } throw new IllegalStateException(); @@ -6347,10 +5767,6 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); - case REJECTION: - return isSetRejection(); - case AUTH_ERROR: - return isSetAuthError(); } throw new IllegalStateException(); } @@ -6359,39 +5775,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof requestImageVersionUpload_result) - return this.equals((requestImageVersionUpload_result)that); + if (that instanceof getPageSize_result) + return this.equals((getPageSize_result)that); return false; } - public boolean equals(requestImageVersionUpload_result that) { + public boolean equals(getPageSize_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) - return false; - } - - boolean this_present_rejection = true && this.isSetRejection(); - boolean that_present_rejection = true && that.isSetRejection(); - if (this_present_rejection || that_present_rejection) { - if (!(this_present_rejection && that_present_rejection)) - return false; - if (!this.rejection.equals(that.rejection)) - 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)) + if (this.success != that.success) return false; } @@ -6404,7 +5802,7 @@ public class SatelliteServer { } @Override - public int compareTo(requestImageVersionUpload_result other) { + public int compareTo(getPageSize_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -6421,26 +5819,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRejection()).compareTo(other.isSetRejection()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRejection()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rejection, other.rejection); - if (lastComparison != 0) { - return lastComparison; - } - } - 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; - } - } return 0; } @@ -6458,31 +5836,11 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("requestImageVersionUpload_result("); + StringBuilder sb = new StringBuilder("getPageSize_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("rejection:"); - if (this.rejection == null) { - sb.append("null"); - } else { - sb.append(this.rejection); - } - first = false; - if (!first) sb.append(", "); - sb.append("authError:"); - if (this.authError == null) { - sb.append("null"); - } else { - sb.append(this.authError); - } + sb.append(this.success); first = false; sb.append(")"); return sb.toString(); @@ -6491,9 +5849,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 { @@ -6506,21 +5861,23 @@ 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 requestImageVersionUpload_resultStandardSchemeFactory implements SchemeFactory { - public requestImageVersionUpload_resultStandardScheme getScheme() { - return new requestImageVersionUpload_resultStandardScheme(); + private static class getPageSize_resultStandardSchemeFactory implements SchemeFactory { + public getPageSize_resultStandardScheme getScheme() { + return new getPageSize_resultStandardScheme(); } } - private static class requestImageVersionUpload_resultStandardScheme extends StandardScheme { + private static class getPageSize_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getPageSize_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -6531,32 +5888,13 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TransferInformation(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // REJECTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.rejection = new TTransferRejectedException(); - struct.rejection.read(iprot); - struct.setRejectionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // 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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6568,23 +5906,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getPageSize_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.rejection != null) { - oprot.writeFieldBegin(REJECTION_FIELD_DESC); - struct.rejection.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.authError != null) { - oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); - struct.authError.write(oprot); + oprot.writeI32(struct.success); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -6593,79 +5921,65 @@ public class SatelliteServer { } - private static class requestImageVersionUpload_resultTupleSchemeFactory implements SchemeFactory { - public requestImageVersionUpload_resultTupleScheme getScheme() { - return new requestImageVersionUpload_resultTupleScheme(); + private static class getPageSize_resultTupleSchemeFactory implements SchemeFactory { + public getPageSize_resultTupleScheme getScheme() { + return new getPageSize_resultTupleScheme(); } } - private static class requestImageVersionUpload_resultTupleScheme extends TupleScheme { + private static class getPageSize_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getPageSize_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetRejection()) { - optionals.set(1); - } - if (struct.isSetAuthError()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetRejection()) { - struct.rejection.write(oprot); - } - if (struct.isSetAuthError()) { - struct.authError.write(oprot); + oprot.writeI32(struct.success); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getPageSize_result 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.success = new TransferInformation(); - struct.success.read(iprot); + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.rejection = new TTransferRejectedException(); - struct.rejection.read(iprot); - struct.setRejectionIsSet(true); - } - if (incoming.get(2)) { - struct.authError = new TAuthorizationException(); - struct.authError.read(iprot); - struct.setAuthErrorIsSet(true); - } } } } - public static class cancelUpload_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("cancelUpload_args"); + public static class requestImageVersionUpload_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("requestImageVersionUpload_args"); - private static final org.apache.thrift.protocol.TField UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)1); + 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 FILE_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("fileSize", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField BLOCK_HASHES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockHashes", org.apache.thrift.protocol.TType.LIST, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new cancelUpload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelUpload_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestImageVersionUpload_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestImageVersionUpload_argsTupleSchemeFactory()); } - public String uploadToken; // required + public String userToken; // required + public String imageBaseId; // required + public long fileSize; // required + public List blockHashes; // 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 { - UPLOAD_TOKEN((short)1, "uploadToken"); + USER_TOKEN((short)1, "userToken"), + IMAGE_BASE_ID((short)2, "imageBaseId"), + FILE_SIZE((short)3, "fileSize"), + BLOCK_HASHES((short)4, "blockHashes"); private static final Map byName = new HashMap(); @@ -6680,8 +5994,14 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // UPLOAD_TOKEN - return UPLOAD_TOKEN; + case 1: // USER_TOKEN + return USER_TOKEN; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; + case 3: // FILE_SIZE + return FILE_SIZE; + case 4: // BLOCK_HASHES + return BLOCK_HASHES; default: return null; } @@ -6722,74 +6042,213 @@ public class SatelliteServer { } // isset id assignments + private static final int __FILESIZE_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.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.FILE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("fileSize", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.BLOCK_HASHES, new org.apache.thrift.meta_data.FieldMetaData("blockHashes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelUpload_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageVersionUpload_args.class, metaDataMap); } - public cancelUpload_args() { + public requestImageVersionUpload_args() { } - public cancelUpload_args( - String uploadToken) + public requestImageVersionUpload_args( + String userToken, + String imageBaseId, + long fileSize, + List blockHashes) { this(); - this.uploadToken = uploadToken; + this.userToken = userToken; + this.imageBaseId = imageBaseId; + this.fileSize = fileSize; + setFileSizeIsSet(true); + this.blockHashes = blockHashes; } /** * Performs a deep copy on other. */ - public cancelUpload_args(cancelUpload_args other) { - if (other.isSetUploadToken()) { - this.uploadToken = other.uploadToken; + public requestImageVersionUpload_args(requestImageVersionUpload_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; + } + this.fileSize = other.fileSize; + if (other.isSetBlockHashes()) { + List __this__blockHashes = new ArrayList(other.blockHashes); + this.blockHashes = __this__blockHashes; } } - public cancelUpload_args deepCopy() { - return new cancelUpload_args(this); + public requestImageVersionUpload_args deepCopy() { + return new requestImageVersionUpload_args(this); } @Override public void clear() { - this.uploadToken = null; + this.userToken = null; + this.imageBaseId = null; + setFileSizeIsSet(false); + this.fileSize = 0; + this.blockHashes = null; } - public String getUploadToken() { - return this.uploadToken; + public String getUserToken() { + return this.userToken; } - public cancelUpload_args setUploadToken(String uploadToken) { - this.uploadToken = uploadToken; + public requestImageVersionUpload_args setUserToken(String userToken) { + this.userToken = userToken; return this; } - public void unsetUploadToken() { - this.uploadToken = null; + public void unsetUserToken() { + this.userToken = null; } - /** Returns true if field uploadToken is set (has been assigned a value) and false otherwise */ - public boolean isSetUploadToken() { - return this.uploadToken != 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 setUploadTokenIsSet(boolean value) { + public void setUserTokenIsSet(boolean value) { if (!value) { - this.uploadToken = null; + this.userToken = null; + } + } + + public String getImageBaseId() { + return this.imageBaseId; + } + + public requestImageVersionUpload_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; + return this; + } + + public void unsetImageBaseId() { + this.imageBaseId = 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 setImageBaseIdIsSet(boolean value) { + if (!value) { + this.imageBaseId = null; + } + } + + public long getFileSize() { + return this.fileSize; + } + + public requestImageVersionUpload_args setFileSize(long fileSize) { + this.fileSize = fileSize; + setFileSizeIsSet(true); + return this; + } + + public void unsetFileSize() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } + + /** Returns true if field fileSize is set (has been assigned a value) and false otherwise */ + public boolean isSetFileSize() { + return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID); + } + + public void setFileSizeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + } + + public int getBlockHashesSize() { + return (this.blockHashes == null) ? 0 : this.blockHashes.size(); + } + + public java.util.Iterator getBlockHashesIterator() { + return (this.blockHashes == null) ? null : this.blockHashes.iterator(); + } + + public void addToBlockHashes(ByteBuffer elem) { + if (this.blockHashes == null) { + this.blockHashes = new ArrayList(); + } + this.blockHashes.add(elem); + } + + public List getBlockHashes() { + return this.blockHashes; + } + + public requestImageVersionUpload_args setBlockHashes(List blockHashes) { + this.blockHashes = blockHashes; + return this; + } + + public void unsetBlockHashes() { + this.blockHashes = null; + } + + /** Returns true if field blockHashes is set (has been assigned a value) and false otherwise */ + public boolean isSetBlockHashes() { + return this.blockHashes != null; + } + + public void setBlockHashesIsSet(boolean value) { + if (!value) { + this.blockHashes = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case UPLOAD_TOKEN: + case USER_TOKEN: if (value == null) { - unsetUploadToken(); + unsetUserToken(); } else { - setUploadToken((String)value); + setUserToken((String)value); + } + break; + + case IMAGE_BASE_ID: + if (value == null) { + unsetImageBaseId(); + } else { + setImageBaseId((String)value); + } + break; + + case FILE_SIZE: + if (value == null) { + unsetFileSize(); + } else { + setFileSize((Long)value); + } + break; + + case BLOCK_HASHES: + if (value == null) { + unsetBlockHashes(); + } else { + setBlockHashes((List)value); } break; @@ -6798,8 +6257,17 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case UPLOAD_TOKEN: - return getUploadToken(); + case USER_TOKEN: + return getUserToken(); + + case IMAGE_BASE_ID: + return getImageBaseId(); + + case FILE_SIZE: + return Long.valueOf(getFileSize()); + + case BLOCK_HASHES: + return getBlockHashes(); } throw new IllegalStateException(); @@ -6812,31 +6280,64 @@ public class SatelliteServer { } switch (field) { - case UPLOAD_TOKEN: - return isSetUploadToken(); + case USER_TOKEN: + return isSetUserToken(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); + case FILE_SIZE: + return isSetFileSize(); + case BLOCK_HASHES: + return isSetBlockHashes(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof requestImageVersionUpload_args) + return this.equals((requestImageVersionUpload_args)that); + return false; + } + + public boolean equals(requestImageVersionUpload_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_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.imageBaseId.equals(that.imageBaseId)) + return false; } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof cancelUpload_args) - return this.equals((cancelUpload_args)that); - return false; - } - public boolean equals(cancelUpload_args that) { - if (that == null) - return false; + boolean this_present_fileSize = true; + boolean that_present_fileSize = true; + if (this_present_fileSize || that_present_fileSize) { + if (!(this_present_fileSize && that_present_fileSize)) + return false; + if (this.fileSize != that.fileSize) + return false; + } - boolean this_present_uploadToken = true && this.isSetUploadToken(); - boolean that_present_uploadToken = true && that.isSetUploadToken(); - if (this_present_uploadToken || that_present_uploadToken) { - if (!(this_present_uploadToken && that_present_uploadToken)) + boolean this_present_blockHashes = true && this.isSetBlockHashes(); + boolean that_present_blockHashes = true && that.isSetBlockHashes(); + if (this_present_blockHashes || that_present_blockHashes) { + if (!(this_present_blockHashes && that_present_blockHashes)) return false; - if (!this.uploadToken.equals(that.uploadToken)) + if (!this.blockHashes.equals(that.blockHashes)) return false; } @@ -6849,19 +6350,49 @@ public class SatelliteServer { } @Override - public int compareTo(cancelUpload_args other) { + public int compareTo(requestImageVersionUpload_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken()); + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUploadToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uploadToken, other.uploadToken); + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFileSize()).compareTo(other.isSetFileSize()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFileSize()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileSize, other.fileSize); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBlockHashes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockHashes, other.blockHashes); if (lastComparison != 0) { return lastComparison; } @@ -6883,14 +6414,34 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("cancelUpload_args("); + StringBuilder sb = new StringBuilder("requestImageVersionUpload_args("); boolean first = true; - sb.append("uploadToken:"); - if (this.uploadToken == null) { + sb.append("userToken:"); + if (this.userToken == null) { sb.append("null"); } else { - sb.append(this.uploadToken); + sb.append(this.userToken); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { + sb.append("null"); + } else { + sb.append(this.imageBaseId); + } + first = false; + if (!first) sb.append(", "); + sb.append("fileSize:"); + sb.append(this.fileSize); + first = false; + if (!first) sb.append(", "); + sb.append("blockHashes:"); + if (this.blockHashes == null) { + sb.append("null"); + } else { + sb.append(this.blockHashes); } first = false; sb.append(")"); @@ -6912,21 +6463,23 @@ 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 cancelUpload_argsStandardSchemeFactory implements SchemeFactory { - public cancelUpload_argsStandardScheme getScheme() { - return new cancelUpload_argsStandardScheme(); + private static class requestImageVersionUpload_argsStandardSchemeFactory implements SchemeFactory { + public requestImageVersionUpload_argsStandardScheme getScheme() { + return new requestImageVersionUpload_argsStandardScheme(); } } - private static class cancelUpload_argsStandardScheme extends StandardScheme { + private static class requestImageVersionUpload_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -6936,10 +6489,44 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // UPLOAD_TOKEN + case 1: // USER_TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.uploadToken = iprot.readString(); - struct.setUploadTokenIsSet(true); + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } else { + 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); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // FILE_SIZE + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.fileSize = iprot.readI64(); + struct.setFileSizeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // BLOCK_HASHES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list106.size); + for (int _i107 = 0; _i107 < _list106.size; ++_i107) + { + ByteBuffer _elem108; + _elem108 = iprot.readBinary(); + struct.blockHashes.add(_elem108); + } + iprot.readListEnd(); + } + struct.setBlockHashesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -6955,13 +6542,33 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, cancelUpload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.uploadToken != null) { - oprot.writeFieldBegin(UPLOAD_TOKEN_FIELD_DESC); - oprot.writeString(struct.uploadToken); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); + oprot.writeFieldEnd(); + } + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(FILE_SIZE_FIELD_DESC); + oprot.writeI64(struct.fileSize); + oprot.writeFieldEnd(); + if (struct.blockHashes != null) { + oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); + for (ByteBuffer _iter109 : struct.blockHashes) + { + oprot.writeBinary(_iter109); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -6970,54 +6577,107 @@ public class SatelliteServer { } - private static class cancelUpload_argsTupleSchemeFactory implements SchemeFactory { - public cancelUpload_argsTupleScheme getScheme() { - return new cancelUpload_argsTupleScheme(); + private static class requestImageVersionUpload_argsTupleSchemeFactory implements SchemeFactory { + public requestImageVersionUpload_argsTupleScheme getScheme() { + return new requestImageVersionUpload_argsTupleScheme(); } } - private static class cancelUpload_argsTupleScheme extends TupleScheme { + private static class requestImageVersionUpload_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUploadToken()) { + if (struct.isSetUserToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetUploadToken()) { - oprot.writeString(struct.uploadToken); + if (struct.isSetImageBaseId()) { + optionals.set(1); + } + if (struct.isSetFileSize()) { + optionals.set(2); + } + if (struct.isSetBlockHashes()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); + } + if (struct.isSetFileSize()) { + oprot.writeI64(struct.fileSize); + } + if (struct.isSetBlockHashes()) { + { + oprot.writeI32(struct.blockHashes.size()); + for (ByteBuffer _iter110 : struct.blockHashes) + { + oprot.writeBinary(_iter110); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.uploadToken = iprot.readString(); - struct.setUploadTokenIsSet(true); + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } + if (incoming.get(2)) { + struct.fileSize = iprot.readI64(); + struct.setFileSizeIsSet(true); + } + if (incoming.get(3)) { + { + org.apache.thrift.protocol.TList _list111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list111.size); + for (int _i112 = 0; _i112 < _list111.size; ++_i112) + { + ByteBuffer _elem113; + _elem113 = iprot.readBinary(); + struct.blockHashes.add(_elem113); + } + } + struct.setBlockHashesIsSet(true); } } } } - public static class cancelUpload_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("cancelUpload_result"); + public static class requestImageVersionUpload_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("requestImageVersionUpload_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 REJECTION_FIELD_DESC = new org.apache.thrift.protocol.TField("rejection", org.apache.thrift.protocol.TType.STRUCT, (short)1); + 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)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new cancelUpload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelUpload_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestImageVersionUpload_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestImageVersionUpload_resultTupleSchemeFactory()); } + public TransferInformation success; // required + public TTransferRejectedException rejection; // required + public TAuthorizationException authError; // 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"), + REJECTION((short)1, "rejection"), + AUTH_ERROR((short)2, "authError"); private static final Map byName = new HashMap(); @@ -7032,6 +6692,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // REJECTION + return REJECTION; + case 2: // AUTH_ERROR + return AUTH_ERROR; default: return null; } @@ -7070,37 +6736,173 @@ public class SatelliteServer { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferInformation.class))); + tmpMap.put(_Fields.REJECTION, new org.apache.thrift.meta_data.FieldMetaData("rejection", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelUpload_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageVersionUpload_result.class, metaDataMap); } - public cancelUpload_result() { + public requestImageVersionUpload_result() { + } + + public requestImageVersionUpload_result( + TransferInformation success, + TTransferRejectedException rejection, + TAuthorizationException authError) + { + this(); + this.success = success; + this.rejection = rejection; + this.authError = authError; } /** * Performs a deep copy on other. */ - public cancelUpload_result(cancelUpload_result other) { + public requestImageVersionUpload_result(requestImageVersionUpload_result other) { + if (other.isSetSuccess()) { + this.success = new TransferInformation(other.success); + } + if (other.isSetRejection()) { + this.rejection = new TTransferRejectedException(other.rejection); + } + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } } - public cancelUpload_result deepCopy() { - return new cancelUpload_result(this); + public requestImageVersionUpload_result deepCopy() { + return new requestImageVersionUpload_result(this); } @Override public void clear() { + this.success = null; + this.rejection = null; + this.authError = null; + } + + public TransferInformation getSuccess() { + return this.success; + } + + public requestImageVersionUpload_result setSuccess(TransferInformation success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public TTransferRejectedException getRejection() { + return this.rejection; + } + + public requestImageVersionUpload_result setRejection(TTransferRejectedException rejection) { + this.rejection = rejection; + return this; + } + + public void unsetRejection() { + this.rejection = null; + } + + /** Returns true if field rejection is set (has been assigned a value) and false otherwise */ + public boolean isSetRejection() { + return this.rejection != null; + } + + public void setRejectionIsSet(boolean value) { + if (!value) { + this.rejection = null; + } + } + + public TAuthorizationException getAuthError() { + return this.authError; + } + + public requestImageVersionUpload_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 void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((TransferInformation)value); + } + break; + + case REJECTION: + if (value == null) { + unsetRejection(); + } else { + setRejection((TTransferRejectedException)value); + } + break; + + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + + case REJECTION: + return getRejection(); + + case AUTH_ERROR: + return getAuthError(); + } throw new IllegalStateException(); } @@ -7112,6 +6914,12 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); + case REJECTION: + return isSetRejection(); + case AUTH_ERROR: + return isSetAuthError(); } throw new IllegalStateException(); } @@ -7120,15 +6928,42 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof cancelUpload_result) - return this.equals((cancelUpload_result)that); + if (that instanceof requestImageVersionUpload_result) + return this.equals((requestImageVersionUpload_result)that); return false; } - public boolean equals(cancelUpload_result that) { + public boolean equals(requestImageVersionUpload_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_rejection = true && this.isSetRejection(); + boolean that_present_rejection = true && that.isSetRejection(); + if (this_present_rejection || that_present_rejection) { + if (!(this_present_rejection && that_present_rejection)) + return false; + if (!this.rejection.equals(that.rejection)) + 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; + } + return true; } @@ -7138,13 +6973,43 @@ public class SatelliteServer { } @Override - public int compareTo(cancelUpload_result other) { + public int compareTo(requestImageVersionUpload_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetRejection()).compareTo(other.isSetRejection()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRejection()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rejection, other.rejection); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; + } + } return 0; } @@ -7162,9 +7027,32 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("cancelUpload_result("); + StringBuilder sb = new StringBuilder("requestImageVersionUpload_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("rejection:"); + if (this.rejection == null) { + sb.append("null"); + } else { + sb.append(this.rejection); + } + first = false; + if (!first) sb.append(", "); + sb.append("authError:"); + if (this.authError == null) { + sb.append("null"); + } else { + sb.append(this.authError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -7172,6 +7060,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 { @@ -7190,15 +7081,15 @@ public class SatelliteServer { } } - private static class cancelUpload_resultStandardSchemeFactory implements SchemeFactory { - public cancelUpload_resultStandardScheme getScheme() { - return new cancelUpload_resultStandardScheme(); + private static class requestImageVersionUpload_resultStandardSchemeFactory implements SchemeFactory { + public requestImageVersionUpload_resultStandardScheme getScheme() { + return new requestImageVersionUpload_resultStandardScheme(); } } - private static class cancelUpload_resultStandardScheme extends StandardScheme { + private static class requestImageVersionUpload_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7208,6 +7099,33 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TransferInformation(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // REJECTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.rejection = new TTransferRejectedException(); + struct.rejection.read(iprot); + struct.setRejectionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // 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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -7219,46 +7137,97 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, cancelUpload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageVersionUpload_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.writeFieldEnd(); + } + if (struct.rejection != null) { + oprot.writeFieldBegin(REJECTION_FIELD_DESC); + struct.rejection.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class cancelUpload_resultTupleSchemeFactory implements SchemeFactory { - public cancelUpload_resultTupleScheme getScheme() { - return new cancelUpload_resultTupleScheme(); + private static class requestImageVersionUpload_resultTupleSchemeFactory implements SchemeFactory { + public requestImageVersionUpload_resultTupleScheme getScheme() { + return new requestImageVersionUpload_resultTupleScheme(); } } - private static class cancelUpload_resultTupleScheme extends TupleScheme { + private static class requestImageVersionUpload_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetRejection()) { + optionals.set(1); + } + if (struct.isSetAuthError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetRejection()) { + struct.rejection.write(oprot); + } + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestImageVersionUpload_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new TransferInformation(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.rejection = new TTransferRejectedException(); + struct.rejection.read(iprot); + struct.setRejectionIsSet(true); + } + if (incoming.get(2)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } } } } - public static class queryUploadStatus_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("queryUploadStatus_args"); + public static class cancelUpload_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("cancelUpload_args"); private static final org.apache.thrift.protocol.TField UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new queryUploadStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new queryUploadStatus_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new cancelUpload_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cancelUpload_argsTupleSchemeFactory()); } public String uploadToken; // required @@ -7328,13 +7297,13 @@ public class SatelliteServer { tmpMap.put(_Fields.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelUpload_args.class, metaDataMap); } - public queryUploadStatus_args() { + public cancelUpload_args() { } - public queryUploadStatus_args( + public cancelUpload_args( String uploadToken) { this(); @@ -7344,14 +7313,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public queryUploadStatus_args(queryUploadStatus_args other) { + public cancelUpload_args(cancelUpload_args other) { if (other.isSetUploadToken()) { this.uploadToken = other.uploadToken; } } - public queryUploadStatus_args deepCopy() { - return new queryUploadStatus_args(this); + public cancelUpload_args deepCopy() { + return new cancelUpload_args(this); } @Override @@ -7363,7 +7332,7 @@ public class SatelliteServer { return this.uploadToken; } - public queryUploadStatus_args setUploadToken(String uploadToken) { + public cancelUpload_args setUploadToken(String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -7422,12 +7391,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof queryUploadStatus_args) - return this.equals((queryUploadStatus_args)that); + if (that instanceof cancelUpload_args) + return this.equals((cancelUpload_args)that); return false; } - public boolean equals(queryUploadStatus_args that) { + public boolean equals(cancelUpload_args that) { if (that == null) return false; @@ -7449,7 +7418,7 @@ public class SatelliteServer { } @Override - public int compareTo(queryUploadStatus_args other) { + public int compareTo(cancelUpload_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -7483,7 +7452,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("queryUploadStatus_args("); + StringBuilder sb = new StringBuilder("cancelUpload_args("); boolean first = true; sb.append("uploadToken:"); @@ -7518,15 +7487,15 @@ public class SatelliteServer { } } - private static class queryUploadStatus_argsStandardSchemeFactory implements SchemeFactory { - public queryUploadStatus_argsStandardScheme getScheme() { - return new queryUploadStatus_argsStandardScheme(); + private static class cancelUpload_argsStandardSchemeFactory implements SchemeFactory { + public cancelUpload_argsStandardScheme getScheme() { + return new cancelUpload_argsStandardScheme(); } } - private static class queryUploadStatus_argsStandardScheme extends StandardScheme { + private static class cancelUpload_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7555,7 +7524,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, cancelUpload_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -7570,16 +7539,16 @@ public class SatelliteServer { } - private static class queryUploadStatus_argsTupleSchemeFactory implements SchemeFactory { - public queryUploadStatus_argsTupleScheme getScheme() { - return new queryUploadStatus_argsTupleScheme(); + private static class cancelUpload_argsTupleSchemeFactory implements SchemeFactory { + public cancelUpload_argsTupleScheme getScheme() { + return new cancelUpload_argsTupleScheme(); } } - private static class queryUploadStatus_argsTupleScheme extends TupleScheme { + private static class cancelUpload_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpload_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUploadToken()) { @@ -7592,7 +7561,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpload_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -7604,25 +7573,20 @@ public class SatelliteServer { } - public static class queryUploadStatus_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("queryUploadStatus_result"); + public static class cancelUpload_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("cancelUpload_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 EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new queryUploadStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new queryUploadStatus_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new cancelUpload_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cancelUpload_resultTupleSchemeFactory()); } - public UploadStatus success; // required - public TInvalidTokenException ex1; // 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"), - EX1((short)1, "ex1"); +; private static final Map byName = new HashMap(); @@ -7637,10 +7601,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // EX1 - return EX1; default: return null; } @@ -7679,130 +7639,37 @@ public class SatelliteServer { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UploadStatus.class))); - tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", 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(queryUploadStatus_result.class, metaDataMap); - } - - public queryUploadStatus_result() { - } - - public queryUploadStatus_result( - UploadStatus success, - TInvalidTokenException ex1) - { - this(); - this.success = success; - this.ex1 = ex1; - } - - /** - * Performs a deep copy on other. - */ - public queryUploadStatus_result(queryUploadStatus_result other) { - if (other.isSetSuccess()) { - this.success = new UploadStatus(other.success); - } - if (other.isSetEx1()) { - this.ex1 = new TInvalidTokenException(other.ex1); - } - } - - public queryUploadStatus_result deepCopy() { - return new queryUploadStatus_result(this); - } - - @Override - public void clear() { - this.success = null; - this.ex1 = null; - } - - public UploadStatus getSuccess() { - return this.success; - } - - public queryUploadStatus_result setSuccess(UploadStatus success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - - public TInvalidTokenException getEx1() { - return this.ex1; + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelUpload_result.class, metaDataMap); } - public queryUploadStatus_result setEx1(TInvalidTokenException ex1) { - this.ex1 = ex1; - return this; + public cancelUpload_result() { } - public void unsetEx1() { - this.ex1 = null; + /** + * Performs a deep copy on other. + */ + public cancelUpload_result(cancelUpload_result other) { } - /** Returns true if field ex1 is set (has been assigned a value) and false otherwise */ - public boolean isSetEx1() { - return this.ex1 != null; + public cancelUpload_result deepCopy() { + return new cancelUpload_result(this); } - public void setEx1IsSet(boolean value) { - if (!value) { - this.ex1 = null; - } + @Override + public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((UploadStatus)value); - } - break; - - case EX1: - if (value == null) { - unsetEx1(); - } else { - setEx1((TInvalidTokenException)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - - case EX1: - return getEx1(); - } throw new IllegalStateException(); } @@ -7814,10 +7681,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case EX1: - return isSetEx1(); } throw new IllegalStateException(); } @@ -7826,33 +7689,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof queryUploadStatus_result) - return this.equals((queryUploadStatus_result)that); + if (that instanceof cancelUpload_result) + return this.equals((cancelUpload_result)that); return false; } - public boolean equals(queryUploadStatus_result that) { + public boolean equals(cancelUpload_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_ex1 = true && this.isSetEx1(); - boolean that_present_ex1 = true && that.isSetEx1(); - if (this_present_ex1 || that_present_ex1) { - if (!(this_present_ex1 && that_present_ex1)) - return false; - if (!this.ex1.equals(that.ex1)) - return false; - } - return true; } @@ -7862,33 +7707,13 @@ public class SatelliteServer { } @Override - public int compareTo(queryUploadStatus_result other) { + public int compareTo(cancelUpload_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEx1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex1, other.ex1); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -7906,24 +7731,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("queryUploadStatus_result("); + StringBuilder sb = new StringBuilder("cancelUpload_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("ex1:"); - if (this.ex1 == null) { - sb.append("null"); - } else { - sb.append(this.ex1); - } - first = false; sb.append(")"); return sb.toString(); } @@ -7931,9 +7741,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 { @@ -7952,15 +7759,15 @@ public class SatelliteServer { } } - private static class queryUploadStatus_resultStandardSchemeFactory implements SchemeFactory { - public queryUploadStatus_resultStandardScheme getScheme() { - return new queryUploadStatus_resultStandardScheme(); + private static class cancelUpload_resultStandardSchemeFactory implements SchemeFactory { + public cancelUpload_resultStandardScheme getScheme() { + return new cancelUpload_resultStandardScheme(); } } - private static class queryUploadStatus_resultStandardScheme extends StandardScheme { + private static class cancelUpload_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, cancelUpload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -7970,24 +7777,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new UploadStatus(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // EX1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ex1 = new TInvalidTokenException(); - struct.ex1.read(iprot); - struct.setEx1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -7999,91 +7788,53 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, cancelUpload_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.writeFieldEnd(); - } - if (struct.ex1 != null) { - oprot.writeFieldBegin(EX1_FIELD_DESC); - struct.ex1.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class queryUploadStatus_resultTupleSchemeFactory implements SchemeFactory { - public queryUploadStatus_resultTupleScheme getScheme() { - return new queryUploadStatus_resultTupleScheme(); + private static class cancelUpload_resultTupleSchemeFactory implements SchemeFactory { + public cancelUpload_resultTupleScheme getScheme() { + return new cancelUpload_resultTupleScheme(); } } - private static class queryUploadStatus_resultTupleScheme extends TupleScheme { + private static class cancelUpload_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, cancelUpload_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetEx1()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetEx1()) { - struct.ex1.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, cancelUpload_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.success = new UploadStatus(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.ex1 = new TInvalidTokenException(); - struct.ex1.read(iprot); - struct.setEx1IsSet(true); - } } } } - public static class requestDownload_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("requestDownload_args"); + public static class queryUploadStatus_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("queryUploadStatus_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 UPLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new requestDownload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestDownload_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new queryUploadStatus_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new queryUploadStatus_argsTupleSchemeFactory()); } - public String userToken; // required - public String imageVersionId; // required + public String uploadToken; // 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"); + UPLOAD_TOKEN((short)1, "uploadToken"); private static final Map byName = new HashMap(); @@ -8098,10 +7849,8 @@ public class SatelliteServer { */ 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 1: // UPLOAD_TOKEN + return UPLOAD_TOKEN; default: return null; } @@ -8145,111 +7894,71 @@ 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.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(requestDownload_args.class, metaDataMap); - } - - public requestDownload_args() { - } - - public requestDownload_args( - String userToken, - String imageVersionId) - { - this(); - this.userToken = userToken; - this.imageVersionId = imageVersionId; - } - - /** - * Performs a deep copy on other. - */ - public requestDownload_args(requestDownload_args other) { - if (other.isSetUserToken()) { - this.userToken = other.userToken; - } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; - } - } - - public requestDownload_args deepCopy() { - return new requestDownload_args(this); - } - - @Override - public void clear() { - this.userToken = null; - this.imageVersionId = null; + tmpMap.put(_Fields.UPLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("uploadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_args.class, metaDataMap); } - public String getUserToken() { - return this.userToken; + public queryUploadStatus_args() { } - public requestDownload_args setUserToken(String userToken) { - this.userToken = userToken; - return this; + public queryUploadStatus_args( + String uploadToken) + { + this(); + this.uploadToken = uploadToken; } - public void unsetUserToken() { - this.userToken = null; + /** + * Performs a deep copy on other. + */ + public queryUploadStatus_args(queryUploadStatus_args other) { + if (other.isSetUploadToken()) { + this.uploadToken = other.uploadToken; + } } - /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ - public boolean isSetUserToken() { - return this.userToken != null; + public queryUploadStatus_args deepCopy() { + return new queryUploadStatus_args(this); } - public void setUserTokenIsSet(boolean value) { - if (!value) { - this.userToken = null; - } + @Override + public void clear() { + this.uploadToken = null; } - public String getImageVersionId() { - return this.imageVersionId; + public String getUploadToken() { + return this.uploadToken; } - public requestDownload_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; + public queryUploadStatus_args setUploadToken(String uploadToken) { + this.uploadToken = uploadToken; return this; } - public void unsetImageVersionId() { - this.imageVersionId = null; + public void unsetUploadToken() { + this.uploadToken = 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 uploadToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUploadToken() { + return this.uploadToken != null; } - public void setImageVersionIdIsSet(boolean value) { + public void setUploadTokenIsSet(boolean value) { if (!value) { - this.imageVersionId = null; + this.uploadToken = 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: + case UPLOAD_TOKEN: if (value == null) { - unsetImageVersionId(); + unsetUploadToken(); } else { - setImageVersionId((String)value); + setUploadToken((String)value); } break; @@ -8258,11 +7967,8 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case USER_TOKEN: - return getUserToken(); - - case IMAGE_VERSION_ID: - return getImageVersionId(); + case UPLOAD_TOKEN: + return getUploadToken(); } throw new IllegalStateException(); @@ -8275,10 +7981,8 @@ public class SatelliteServer { } switch (field) { - case USER_TOKEN: - return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case UPLOAD_TOKEN: + return isSetUploadToken(); } throw new IllegalStateException(); } @@ -8287,30 +7991,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof requestDownload_args) - return this.equals((requestDownload_args)that); + if (that instanceof queryUploadStatus_args) + return this.equals((queryUploadStatus_args)that); return false; } - public boolean equals(requestDownload_args that) { + public boolean equals(queryUploadStatus_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)) + boolean this_present_uploadToken = true && this.isSetUploadToken(); + boolean that_present_uploadToken = true && that.isSetUploadToken(); + if (this_present_uploadToken || that_present_uploadToken) { + if (!(this_present_uploadToken && that_present_uploadToken)) return false; - if (!this.imageVersionId.equals(that.imageVersionId)) + if (!this.uploadToken.equals(that.uploadToken)) return false; } @@ -8323,29 +8018,19 @@ public class SatelliteServer { } @Override - public int compareTo(requestDownload_args other) { + public int compareTo(queryUploadStatus_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()); + lastComparison = Boolean.valueOf(isSetUploadToken()).compareTo(other.isSetUploadToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (isSetUploadToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uploadToken, other.uploadToken); if (lastComparison != 0) { return lastComparison; } @@ -8367,22 +8052,14 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("requestDownload_args("); + StringBuilder sb = new StringBuilder("queryUploadStatus_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("uploadToken:"); + if (this.uploadToken == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.uploadToken); } first = false; sb.append(")"); @@ -8410,15 +8087,15 @@ public class SatelliteServer { } } - private static class requestDownload_argsStandardSchemeFactory implements SchemeFactory { - public requestDownload_argsStandardScheme getScheme() { - return new requestDownload_argsStandardScheme(); + private static class queryUploadStatus_argsStandardSchemeFactory implements SchemeFactory { + public queryUploadStatus_argsStandardScheme getScheme() { + return new queryUploadStatus_argsStandardScheme(); } } - private static class requestDownload_argsStandardScheme extends StandardScheme { + private static class queryUploadStatus_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8428,18 +8105,10 @@ public class SatelliteServer { 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 + case 1: // UPLOAD_TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.uploadToken = iprot.readString(); + struct.setUploadTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -8455,18 +8124,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, requestDownload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_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); + if (struct.uploadToken != null) { + oprot.writeFieldBegin(UPLOAD_TOKEN_FIELD_DESC); + oprot.writeString(struct.uploadToken); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8475,69 +8139,59 @@ public class SatelliteServer { } - private static class requestDownload_argsTupleSchemeFactory implements SchemeFactory { - public requestDownload_argsTupleScheme getScheme() { - return new requestDownload_argsTupleScheme(); + private static class queryUploadStatus_argsTupleSchemeFactory implements SchemeFactory { + public queryUploadStatus_argsTupleScheme getScheme() { + return new queryUploadStatus_argsTupleScheme(); } } - private static class requestDownload_argsTupleScheme extends TupleScheme { + private static class queryUploadStatus_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, requestDownload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserToken()) { + if (struct.isSetUploadToken()) { 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); + oprot.writeBitSet(optionals, 1); + if (struct.isSetUploadToken()) { + oprot.writeString(struct.uploadToken); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, requestDownload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.userToken = iprot.readString(); - struct.setUserTokenIsSet(true); - } - if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.uploadToken = iprot.readString(); + struct.setUploadTokenIsSet(true); } } } } - public static class requestDownload_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("requestDownload_result"); + public static class queryUploadStatus_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("queryUploadStatus_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 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 EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new requestDownload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new requestDownload_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new queryUploadStatus_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new queryUploadStatus_resultTupleSchemeFactory()); } - public TransferInformation success; // required - public TAuthorizationException authError; // required + public UploadStatus success; // required + public TInvalidTokenException ex1; // 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"); + EX1((short)1, "ex1"); private static final Map byName = new HashMap(); @@ -8554,8 +8208,8 @@ public class SatelliteServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // AUTH_ERROR - return AUTH_ERROR; + case 1: // EX1 + return EX1; default: return null; } @@ -8600,52 +8254,52 @@ 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, TransferInformation.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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UploadStatus.class))); + tmpMap.put(_Fields.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", 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(requestDownload_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_result.class, metaDataMap); } - public requestDownload_result() { + public queryUploadStatus_result() { } - public requestDownload_result( - TransferInformation success, - TAuthorizationException authError) + public queryUploadStatus_result( + UploadStatus success, + TInvalidTokenException ex1) { this(); this.success = success; - this.authError = authError; + this.ex1 = ex1; } /** * Performs a deep copy on other. */ - public requestDownload_result(requestDownload_result other) { + public queryUploadStatus_result(queryUploadStatus_result other) { if (other.isSetSuccess()) { - this.success = new TransferInformation(other.success); + this.success = new UploadStatus(other.success); } - if (other.isSetAuthError()) { - this.authError = new TAuthorizationException(other.authError); + if (other.isSetEx1()) { + this.ex1 = new TInvalidTokenException(other.ex1); } } - public requestDownload_result deepCopy() { - return new requestDownload_result(this); + public queryUploadStatus_result deepCopy() { + return new queryUploadStatus_result(this); } @Override public void clear() { this.success = null; - this.authError = null; + this.ex1 = null; } - public TransferInformation getSuccess() { + public UploadStatus getSuccess() { return this.success; } - public requestDownload_result setSuccess(TransferInformation success) { + public queryUploadStatus_result setSuccess(UploadStatus success) { this.success = success; return this; } @@ -8665,27 +8319,27 @@ public class SatelliteServer { } } - public TAuthorizationException getAuthError() { - return this.authError; + public TInvalidTokenException getEx1() { + return this.ex1; } - public requestDownload_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public queryUploadStatus_result setEx1(TInvalidTokenException ex1) { + this.ex1 = ex1; return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetEx1() { + this.ex1 = 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 ex1 is set (has been assigned a value) and false otherwise */ + public boolean isSetEx1() { + return this.ex1 != null; } - public void setAuthErrorIsSet(boolean value) { + public void setEx1IsSet(boolean value) { if (!value) { - this.authError = null; + this.ex1 = null; } } @@ -8695,15 +8349,15 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((TransferInformation)value); + setSuccess((UploadStatus)value); } break; - case AUTH_ERROR: + case EX1: if (value == null) { - unsetAuthError(); + unsetEx1(); } else { - setAuthError((TAuthorizationException)value); + setEx1((TInvalidTokenException)value); } break; @@ -8715,8 +8369,8 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); - case AUTH_ERROR: - return getAuthError(); + case EX1: + return getEx1(); } throw new IllegalStateException(); @@ -8731,8 +8385,8 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); - case AUTH_ERROR: - return isSetAuthError(); + case EX1: + return isSetEx1(); } throw new IllegalStateException(); } @@ -8741,12 +8395,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof requestDownload_result) - return this.equals((requestDownload_result)that); + if (that instanceof queryUploadStatus_result) + return this.equals((queryUploadStatus_result)that); return false; } - public boolean equals(requestDownload_result that) { + public boolean equals(queryUploadStatus_result that) { if (that == null) return false; @@ -8759,12 +8413,12 @@ public class SatelliteServer { 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)) + boolean this_present_ex1 = true && this.isSetEx1(); + boolean that_present_ex1 = true && that.isSetEx1(); + if (this_present_ex1 || that_present_ex1) { + if (!(this_present_ex1 && that_present_ex1)) return false; - if (!this.authError.equals(that.authError)) + if (!this.ex1.equals(that.ex1)) return false; } @@ -8777,7 +8431,7 @@ public class SatelliteServer { } @Override - public int compareTo(requestDownload_result other) { + public int compareTo(queryUploadStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -8794,12 +8448,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetEx1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex1, other.ex1); if (lastComparison != 0) { return lastComparison; } @@ -8821,7 +8475,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("requestDownload_result("); + StringBuilder sb = new StringBuilder("queryUploadStatus_result("); boolean first = true; sb.append("success:"); @@ -8832,11 +8486,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("authError:"); - if (this.authError == null) { + sb.append("ex1:"); + if (this.ex1 == null) { sb.append("null"); } else { - sb.append(this.authError); + sb.append(this.ex1); } first = false; sb.append(")"); @@ -8867,15 +8521,15 @@ public class SatelliteServer { } } - private static class requestDownload_resultStandardSchemeFactory implements SchemeFactory { - public requestDownload_resultStandardScheme getScheme() { - return new requestDownload_resultStandardScheme(); + private static class queryUploadStatus_resultStandardSchemeFactory implements SchemeFactory { + public queryUploadStatus_resultStandardScheme getScheme() { + return new queryUploadStatus_resultStandardScheme(); } } - private static class requestDownload_resultStandardScheme extends StandardScheme { + private static class queryUploadStatus_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, queryUploadStatus_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8887,18 +8541,18 @@ public class SatelliteServer { switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TransferInformation(); + struct.success = new UploadStatus(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // AUTH_ERROR + case 1: // EX1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.authError = new TAuthorizationException(); - struct.authError.read(iprot); - struct.setAuthErrorIsSet(true); + struct.ex1 = new TInvalidTokenException(); + struct.ex1.read(iprot); + struct.setEx1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -8914,7 +8568,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, requestDownload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, queryUploadStatus_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8923,9 +8577,9 @@ public class SatelliteServer { struct.success.write(oprot); oprot.writeFieldEnd(); } - if (struct.authError != null) { - oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); - struct.authError.write(oprot); + if (struct.ex1 != null) { + oprot.writeFieldBegin(EX1_FIELD_DESC); + struct.ex1.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -8934,68 +8588,71 @@ public class SatelliteServer { } - private static class requestDownload_resultTupleSchemeFactory implements SchemeFactory { - public requestDownload_resultTupleScheme getScheme() { - return new requestDownload_resultTupleScheme(); + private static class queryUploadStatus_resultTupleSchemeFactory implements SchemeFactory { + public queryUploadStatus_resultTupleScheme getScheme() { + return new queryUploadStatus_resultTupleScheme(); } } - private static class requestDownload_resultTupleScheme extends TupleScheme { + private static class queryUploadStatus_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, requestDownload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetEx1()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } - if (struct.isSetAuthError()) { - struct.authError.write(oprot); + if (struct.isSetEx1()) { + struct.ex1.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, requestDownload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, queryUploadStatus_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new TransferInformation(); + struct.success = new UploadStatus(); struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.authError = new TAuthorizationException(); - struct.authError.read(iprot); - struct.setAuthErrorIsSet(true); + struct.ex1 = new TInvalidTokenException(); + struct.ex1.read(iprot); + struct.setEx1IsSet(true); } } } } - public static class cancelDownload_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("cancelDownload_args"); + public static class requestDownload_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("requestDownload_args"); - private static final org.apache.thrift.protocol.TField DOWNLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("downloadToken", org.apache.thrift.protocol.TType.STRING, (short)1); + 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 cancelDownload_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelDownload_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestDownload_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestDownload_argsTupleSchemeFactory()); } - public String downloadToken; // required + 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 { - DOWNLOAD_TOKEN((short)1, "downloadToken"); + USER_TOKEN((short)1, "userToken"), + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -9010,8 +8667,10 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DOWNLOAD_TOKEN - return DOWNLOAD_TOKEN; + case 1: // USER_TOKEN + return USER_TOKEN; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -9055,71 +8714,111 @@ 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.DOWNLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("downloadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + 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(cancelDownload_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestDownload_args.class, metaDataMap); } - public cancelDownload_args() { + public requestDownload_args() { } - public cancelDownload_args( - String downloadToken) + public requestDownload_args( + String userToken, + String imageVersionId) { this(); - this.downloadToken = downloadToken; + this.userToken = userToken; + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public cancelDownload_args(cancelDownload_args other) { - if (other.isSetDownloadToken()) { - this.downloadToken = other.downloadToken; + public requestDownload_args(requestDownload_args other) { + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } } - public cancelDownload_args deepCopy() { - return new cancelDownload_args(this); + public requestDownload_args deepCopy() { + return new requestDownload_args(this); } @Override public void clear() { - this.downloadToken = null; + this.userToken = null; + this.imageVersionId = null; } - public String getDownloadToken() { - return this.downloadToken; + public String getUserToken() { + return this.userToken; } - public cancelDownload_args setDownloadToken(String downloadToken) { - this.downloadToken = downloadToken; + public requestDownload_args setUserToken(String userToken) { + this.userToken = userToken; return this; } - public void unsetDownloadToken() { - this.downloadToken = null; + public void unsetUserToken() { + this.userToken = null; } - /** Returns true if field downloadToken is set (has been assigned a value) and false otherwise */ - public boolean isSetDownloadToken() { - return this.downloadToken != 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 setDownloadTokenIsSet(boolean value) { + public void setUserTokenIsSet(boolean value) { if (!value) { - this.downloadToken = null; + this.userToken = null; + } + } + + public String getImageVersionId() { + return this.imageVersionId; + } + + public requestDownload_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 DOWNLOAD_TOKEN: + case USER_TOKEN: if (value == null) { - unsetDownloadToken(); + unsetUserToken(); } else { - setDownloadToken((String)value); + setUserToken((String)value); + } + break; + + case IMAGE_VERSION_ID: + if (value == null) { + unsetImageVersionId(); + } else { + setImageVersionId((String)value); } break; @@ -9128,8 +8827,11 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case DOWNLOAD_TOKEN: - return getDownloadToken(); + case USER_TOKEN: + return getUserToken(); + + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -9142,8 +8844,10 @@ public class SatelliteServer { } switch (field) { - case DOWNLOAD_TOKEN: - return isSetDownloadToken(); + case USER_TOKEN: + return isSetUserToken(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -9152,21 +8856,30 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof cancelDownload_args) - return this.equals((cancelDownload_args)that); + if (that instanceof requestDownload_args) + return this.equals((requestDownload_args)that); return false; } - public boolean equals(cancelDownload_args that) { + public boolean equals(requestDownload_args that) { if (that == null) return false; - boolean this_present_downloadToken = true && this.isSetDownloadToken(); - boolean that_present_downloadToken = true && that.isSetDownloadToken(); - if (this_present_downloadToken || that_present_downloadToken) { - if (!(this_present_downloadToken && that_present_downloadToken)) + 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.downloadToken.equals(that.downloadToken)) + 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; } @@ -9179,19 +8892,29 @@ public class SatelliteServer { } @Override - public int compareTo(cancelDownload_args other) { + public int compareTo(requestDownload_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDownloadToken()).compareTo(other.isSetDownloadToken()); + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetDownloadToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.downloadToken, other.downloadToken); + 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; } @@ -9213,14 +8936,22 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("cancelDownload_args("); + StringBuilder sb = new StringBuilder("requestDownload_args("); boolean first = true; - sb.append("downloadToken:"); - if (this.downloadToken == null) { + sb.append("userToken:"); + if (this.userToken == null) { sb.append("null"); } else { - sb.append(this.downloadToken); + 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(")"); @@ -9248,15 +8979,15 @@ public class SatelliteServer { } } - private static class cancelDownload_argsStandardSchemeFactory implements SchemeFactory { - public cancelDownload_argsStandardScheme getScheme() { - return new cancelDownload_argsStandardScheme(); + private static class requestDownload_argsStandardSchemeFactory implements SchemeFactory { + public requestDownload_argsStandardScheme getScheme() { + return new requestDownload_argsStandardScheme(); } } - private static class cancelDownload_argsStandardScheme extends StandardScheme { + private static class requestDownload_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9266,10 +8997,18 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // DOWNLOAD_TOKEN + case 1: // USER_TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.downloadToken = iprot.readString(); - struct.setDownloadTokenIsSet(true); + 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); } @@ -9285,13 +9024,18 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestDownload_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.downloadToken != null) { - oprot.writeFieldBegin(DOWNLOAD_TOKEN_FIELD_DESC); - oprot.writeString(struct.downloadToken); + 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(); @@ -9300,54 +9044,69 @@ public class SatelliteServer { } - private static class cancelDownload_argsTupleSchemeFactory implements SchemeFactory { - public cancelDownload_argsTupleScheme getScheme() { - return new cancelDownload_argsTupleScheme(); + private static class requestDownload_argsTupleSchemeFactory implements SchemeFactory { + public requestDownload_argsTupleScheme getScheme() { + return new requestDownload_argsTupleScheme(); } } - private static class cancelDownload_argsTupleScheme extends TupleScheme { + private static class requestDownload_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, cancelDownload_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestDownload_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDownloadToken()) { + if (struct.isSetUserToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetDownloadToken()) { - oprot.writeString(struct.downloadToken); + 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, cancelDownload_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestDownload_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.downloadToken = iprot.readString(); - struct.setDownloadTokenIsSet(true); + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } } } } - public static class cancelDownload_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("cancelDownload_result"); + public static class requestDownload_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("requestDownload_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 AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new cancelDownload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelDownload_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestDownload_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestDownload_resultTupleSchemeFactory()); } + public TransferInformation success; // required + public TAuthorizationException authError; // 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"); private static final Map byName = new HashMap(); @@ -9362,6 +9121,10 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // AUTH_ERROR + return AUTH_ERROR; default: return null; } @@ -9400,37 +9163,130 @@ public class SatelliteServer { return _fieldName; } } + + // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferInformation.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelDownload_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestDownload_result.class, metaDataMap); } - public cancelDownload_result() { + public requestDownload_result() { + } + + public requestDownload_result( + TransferInformation success, + TAuthorizationException authError) + { + this(); + this.success = success; + this.authError = authError; } /** * Performs a deep copy on other. */ - public cancelDownload_result(cancelDownload_result other) { + public requestDownload_result(requestDownload_result other) { + if (other.isSetSuccess()) { + this.success = new TransferInformation(other.success); + } + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } } - public cancelDownload_result deepCopy() { - return new cancelDownload_result(this); + public requestDownload_result deepCopy() { + return new requestDownload_result(this); } @Override public void clear() { + this.success = null; + this.authError = null; + } + + public TransferInformation getSuccess() { + return this.success; + } + + public requestDownload_result setSuccess(TransferInformation success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public TAuthorizationException getAuthError() { + return this.authError; + } + + public requestDownload_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 void setFieldValue(_Fields field, Object value) { - switch (field) { + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((TransferInformation)value); + } + break; + + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + + case AUTH_ERROR: + return getAuthError(); + } throw new IllegalStateException(); } @@ -9442,6 +9298,10 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); + case AUTH_ERROR: + return isSetAuthError(); } throw new IllegalStateException(); } @@ -9450,15 +9310,33 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof cancelDownload_result) - return this.equals((cancelDownload_result)that); + if (that instanceof requestDownload_result) + return this.equals((requestDownload_result)that); return false; } - public boolean equals(cancelDownload_result that) { + public boolean equals(requestDownload_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) { + if (!(this_present_authError && that_present_authError)) + return false; + if (!this.authError.equals(that.authError)) + return false; + } + return true; } @@ -9468,13 +9346,33 @@ public class SatelliteServer { } @Override - public int compareTo(cancelDownload_result other) { + public int compareTo(requestDownload_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + 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; + } + } return 0; } @@ -9492,9 +9390,24 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("cancelDownload_result("); + StringBuilder sb = new StringBuilder("requestDownload_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"); + } else { + sb.append(this.authError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -9502,6 +9415,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 { @@ -9520,15 +9436,15 @@ public class SatelliteServer { } } - private static class cancelDownload_resultStandardSchemeFactory implements SchemeFactory { - public cancelDownload_resultStandardScheme getScheme() { - return new cancelDownload_resultStandardScheme(); + private static class requestDownload_resultStandardSchemeFactory implements SchemeFactory { + public requestDownload_resultStandardScheme getScheme() { + return new requestDownload_resultStandardScheme(); } } - private static class cancelDownload_resultStandardScheme extends StandardScheme { + private static class requestDownload_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestDownload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9538,6 +9454,24 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TransferInformation(); + struct.success.read(iprot); + 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(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9549,53 +9483,88 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestDownload_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.writeFieldEnd(); + } + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class cancelDownload_resultTupleSchemeFactory implements SchemeFactory { - public cancelDownload_resultTupleScheme getScheme() { - return new cancelDownload_resultTupleScheme(); + private static class requestDownload_resultTupleSchemeFactory implements SchemeFactory { + public requestDownload_resultTupleScheme getScheme() { + return new requestDownload_resultTupleScheme(); } } - private static class cancelDownload_resultTupleScheme extends TupleScheme { + private static class requestDownload_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, cancelDownload_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestDownload_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); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, cancelDownload_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestDownload_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = new TransferInformation(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } } } } - public static class isAuthenticated_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("isAuthenticated_args"); + public static class cancelDownload_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("cancelDownload_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 DOWNLOAD_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("downloadToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isAuthenticated_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isAuthenticated_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new cancelDownload_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cancelDownload_argsTupleSchemeFactory()); } - public String userToken; // required + public String downloadToken; // 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"); + DOWNLOAD_TOKEN((short)1, "downloadToken"); private static final Map byName = new HashMap(); @@ -9610,8 +9579,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_TOKEN - return USER_TOKEN; + case 1: // DOWNLOAD_TOKEN + return DOWNLOAD_TOKEN; default: return null; } @@ -9655,71 +9624,71 @@ 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.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.DOWNLOAD_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("downloadToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelDownload_args.class, metaDataMap); } - public isAuthenticated_args() { + public cancelDownload_args() { } - public isAuthenticated_args( - String userToken) + public cancelDownload_args( + String downloadToken) { this(); - this.userToken = userToken; + this.downloadToken = downloadToken; } /** * Performs a deep copy on other. */ - public isAuthenticated_args(isAuthenticated_args other) { - if (other.isSetUserToken()) { - this.userToken = other.userToken; + public cancelDownload_args(cancelDownload_args other) { + if (other.isSetDownloadToken()) { + this.downloadToken = other.downloadToken; } } - public isAuthenticated_args deepCopy() { - return new isAuthenticated_args(this); + public cancelDownload_args deepCopy() { + return new cancelDownload_args(this); } @Override public void clear() { - this.userToken = null; + this.downloadToken = null; } - public String getUserToken() { - return this.userToken; + public String getDownloadToken() { + return this.downloadToken; } - public isAuthenticated_args setUserToken(String userToken) { - this.userToken = userToken; + public cancelDownload_args setDownloadToken(String downloadToken) { + this.downloadToken = downloadToken; return this; } - public void unsetUserToken() { - this.userToken = null; + public void unsetDownloadToken() { + this.downloadToken = null; } - /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ - public boolean isSetUserToken() { - return this.userToken != null; + /** Returns true if field downloadToken is set (has been assigned a value) and false otherwise */ + public boolean isSetDownloadToken() { + return this.downloadToken != null; } - public void setUserTokenIsSet(boolean value) { + public void setDownloadTokenIsSet(boolean value) { if (!value) { - this.userToken = null; + this.downloadToken = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_TOKEN: + case DOWNLOAD_TOKEN: if (value == null) { - unsetUserToken(); + unsetDownloadToken(); } else { - setUserToken((String)value); + setDownloadToken((String)value); } break; @@ -9728,8 +9697,8 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case USER_TOKEN: - return getUserToken(); + case DOWNLOAD_TOKEN: + return getDownloadToken(); } throw new IllegalStateException(); @@ -9742,8 +9711,8 @@ public class SatelliteServer { } switch (field) { - case USER_TOKEN: - return isSetUserToken(); + case DOWNLOAD_TOKEN: + return isSetDownloadToken(); } throw new IllegalStateException(); } @@ -9752,21 +9721,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isAuthenticated_args) - return this.equals((isAuthenticated_args)that); + if (that instanceof cancelDownload_args) + return this.equals((cancelDownload_args)that); return false; } - public boolean equals(isAuthenticated_args that) { + public boolean equals(cancelDownload_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)) + boolean this_present_downloadToken = true && this.isSetDownloadToken(); + boolean that_present_downloadToken = true && that.isSetDownloadToken(); + if (this_present_downloadToken || that_present_downloadToken) { + if (!(this_present_downloadToken && that_present_downloadToken)) return false; - if (!this.userToken.equals(that.userToken)) + if (!this.downloadToken.equals(that.downloadToken)) return false; } @@ -9779,19 +9748,19 @@ public class SatelliteServer { } @Override - public int compareTo(isAuthenticated_args other) { + public int compareTo(cancelDownload_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + lastComparison = Boolean.valueOf(isSetDownloadToken()).compareTo(other.isSetDownloadToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (isSetDownloadToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.downloadToken, other.downloadToken); if (lastComparison != 0) { return lastComparison; } @@ -9813,14 +9782,14 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_args("); + StringBuilder sb = new StringBuilder("cancelDownload_args("); boolean first = true; - sb.append("userToken:"); - if (this.userToken == null) { + sb.append("downloadToken:"); + if (this.downloadToken == null) { sb.append("null"); } else { - sb.append(this.userToken); + sb.append(this.downloadToken); } first = false; sb.append(")"); @@ -9848,15 +9817,15 @@ public class SatelliteServer { } } - private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory { - public isAuthenticated_argsStandardScheme getScheme() { - return new isAuthenticated_argsStandardScheme(); + private static class cancelDownload_argsStandardSchemeFactory implements SchemeFactory { + public cancelDownload_argsStandardScheme getScheme() { + return new cancelDownload_argsStandardScheme(); } } - private static class isAuthenticated_argsStandardScheme extends StandardScheme { + private static class cancelDownload_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -9866,10 +9835,10 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // USER_TOKEN + case 1: // DOWNLOAD_TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userToken = iprot.readString(); - struct.setUserTokenIsSet(true); + struct.downloadToken = iprot.readString(); + struct.setDownloadTokenIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -9885,13 +9854,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_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); + if (struct.downloadToken != null) { + oprot.writeFieldBegin(DOWNLOAD_TOKEN_FIELD_DESC); + oprot.writeString(struct.downloadToken); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -9900,56 +9869,54 @@ public class SatelliteServer { } - private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory { - public isAuthenticated_argsTupleScheme getScheme() { - return new isAuthenticated_argsTupleScheme(); + private static class cancelDownload_argsTupleSchemeFactory implements SchemeFactory { + public cancelDownload_argsTupleScheme getScheme() { + return new cancelDownload_argsTupleScheme(); } } - private static class isAuthenticated_argsTupleScheme extends TupleScheme { + private static class cancelDownload_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, cancelDownload_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetUserToken()) { + if (struct.isSetDownloadToken()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetUserToken()) { - oprot.writeString(struct.userToken); + if (struct.isSetDownloadToken()) { + oprot.writeString(struct.downloadToken); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, cancelDownload_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.userToken = iprot.readString(); - struct.setUserTokenIsSet(true); + struct.downloadToken = iprot.readString(); + struct.setDownloadTokenIsSet(true); } } } } - public static class isAuthenticated_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("isAuthenticated_result"); + public static class cancelDownload_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("cancelDownload_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isAuthenticated_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isAuthenticated_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new cancelDownload_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cancelDownload_resultTupleSchemeFactory()); } - public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); +; private static final Map byName = new HashMap(); @@ -9964,8 +9931,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; default: return null; } @@ -10004,89 +9969,37 @@ public class SatelliteServer { return _fieldName; } } - - // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_result.class, metaDataMap); - } - - public isAuthenticated_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelDownload_result.class, metaDataMap); } - public isAuthenticated_result( - boolean success) - { - this(); - this.success = success; - setSuccessIsSet(true); + public cancelDownload_result() { } /** * Performs a deep copy on other. */ - public isAuthenticated_result(isAuthenticated_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public cancelDownload_result(cancelDownload_result other) { } - public isAuthenticated_result deepCopy() { - return new isAuthenticated_result(this); + public cancelDownload_result deepCopy() { + return new cancelDownload_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; - } - - public boolean isSuccess() { - return this.success; - } - - public isAuthenticated_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); } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Boolean)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return Boolean.valueOf(isSuccess()); - } throw new IllegalStateException(); } @@ -10098,8 +10011,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); } throw new IllegalStateException(); } @@ -10108,24 +10019,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isAuthenticated_result) - return this.equals((isAuthenticated_result)that); + if (that instanceof cancelDownload_result) + return this.equals((cancelDownload_result)that); return false; } - public boolean equals(isAuthenticated_result that) { + public boolean equals(cancelDownload_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (this.success != that.success) - return false; - } - return true; } @@ -10135,23 +10037,13 @@ public class SatelliteServer { } @Override - public int compareTo(isAuthenticated_result other) { + public int compareTo(cancelDownload_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -10169,12 +10061,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_result("); + StringBuilder sb = new StringBuilder("cancelDownload_result("); boolean first = true; - sb.append("success:"); - sb.append(this.success); - first = false; sb.append(")"); return sb.toString(); } @@ -10194,23 +10083,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 isAuthenticated_resultStandardSchemeFactory implements SchemeFactory { - public isAuthenticated_resultStandardScheme getScheme() { - return new isAuthenticated_resultStandardScheme(); + private static class cancelDownload_resultStandardSchemeFactory implements SchemeFactory { + public cancelDownload_resultStandardScheme getScheme() { + return new cancelDownload_resultStandardScheme(); } } - private static class isAuthenticated_resultStandardScheme extends StandardScheme { + private static class cancelDownload_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, cancelDownload_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10220,14 +10107,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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10239,64 +10118,46 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory { - public isAuthenticated_resultTupleScheme getScheme() { - return new isAuthenticated_resultTupleScheme(); + private static class cancelDownload_resultTupleSchemeFactory implements SchemeFactory { + public cancelDownload_resultTupleScheme getScheme() { + return new cancelDownload_resultTupleScheme(); } } - private static class isAuthenticated_resultTupleScheme extends TupleScheme { + private static class cancelDownload_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, cancelDownload_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, cancelDownload_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.success = iprot.readBool(); - struct.setSuccessIsSet(true); - } } } } - public static class invalidateSession_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("invalidateSession_args"); + public static class isAuthenticated_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("isAuthenticated_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new invalidateSession_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isAuthenticated_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isAuthenticated_argsTupleSchemeFactory()); } public String userToken; // required @@ -10366,13 +10227,13 @@ public class SatelliteServer { 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"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_args.class, metaDataMap); } - public invalidateSession_args() { + public isAuthenticated_args() { } - public invalidateSession_args( + public isAuthenticated_args( String userToken) { this(); @@ -10382,14 +10243,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public invalidateSession_args(invalidateSession_args other) { + public isAuthenticated_args(isAuthenticated_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } } - public invalidateSession_args deepCopy() { - return new invalidateSession_args(this); + public isAuthenticated_args deepCopy() { + return new isAuthenticated_args(this); } @Override @@ -10401,7 +10262,7 @@ public class SatelliteServer { return this.userToken; } - public invalidateSession_args setUserToken(String userToken) { + public isAuthenticated_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -10460,12 +10321,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof invalidateSession_args) - return this.equals((invalidateSession_args)that); + if (that instanceof isAuthenticated_args) + return this.equals((isAuthenticated_args)that); return false; } - public boolean equals(invalidateSession_args that) { + public boolean equals(isAuthenticated_args that) { if (that == null) return false; @@ -10487,7 +10348,7 @@ public class SatelliteServer { } @Override - public int compareTo(invalidateSession_args other) { + public int compareTo(isAuthenticated_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -10521,7 +10382,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_args("); + StringBuilder sb = new StringBuilder("isAuthenticated_args("); boolean first = true; sb.append("userToken:"); @@ -10556,15 +10417,15 @@ public class SatelliteServer { } } - private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory { - public invalidateSession_argsStandardScheme getScheme() { - return new invalidateSession_argsStandardScheme(); + private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory { + public isAuthenticated_argsStandardScheme getScheme() { + return new isAuthenticated_argsStandardScheme(); } } - private static class invalidateSession_argsStandardScheme extends StandardScheme { + private static class isAuthenticated_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10593,7 +10454,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -10608,16 +10469,16 @@ public class SatelliteServer { } - private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory { - public invalidateSession_argsTupleScheme getScheme() { - return new invalidateSession_argsTupleScheme(); + private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory { + public isAuthenticated_argsTupleScheme getScheme() { + return new isAuthenticated_argsTupleScheme(); } } - private static class invalidateSession_argsTupleScheme extends TupleScheme { + private static class isAuthenticated_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -10630,7 +10491,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -10642,20 +10503,22 @@ public class SatelliteServer { } - public static class invalidateSession_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("invalidateSession_result"); + public static class isAuthenticated_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("isAuthenticated_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new invalidateSession_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isAuthenticated_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isAuthenticated_resultTupleSchemeFactory()); } + public boolean success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -10670,6 +10533,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -10708,37 +10573,89 @@ public class SatelliteServer { return _fieldName; } } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_result.class, metaDataMap); } - public invalidateSession_result() { + public isAuthenticated_result() { + } + + public isAuthenticated_result( + boolean success) + { + this(); + this.success = success; + setSuccessIsSet(true); } /** * Performs a deep copy on other. */ - public invalidateSession_result(invalidateSession_result other) { + public isAuthenticated_result(isAuthenticated_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; } - public invalidateSession_result deepCopy() { - return new invalidateSession_result(this); + public isAuthenticated_result deepCopy() { + return new isAuthenticated_result(this); } @Override public void clear() { + setSuccessIsSet(false); + this.success = false; + } + + public boolean isSuccess() { + return this.success; + } + + public isAuthenticated_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); } public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + } throw new IllegalStateException(); } @@ -10750,6 +10667,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -10758,15 +10677,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof invalidateSession_result) - return this.equals((invalidateSession_result)that); + if (that instanceof isAuthenticated_result) + return this.equals((isAuthenticated_result)that); return false; } - public boolean equals(invalidateSession_result that) { + public boolean equals(isAuthenticated_result that) { if (that == null) return false; + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + return true; } @@ -10776,13 +10704,23 @@ public class SatelliteServer { } @Override - public int compareTo(invalidateSession_result other) { + public int compareTo(isAuthenticated_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -10800,9 +10738,12 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_result("); + StringBuilder sb = new StringBuilder("isAuthenticated_result("); boolean first = true; + sb.append("success:"); + sb.append(this.success); + first = false; sb.append(")"); return sb.toString(); } @@ -10822,21 +10763,23 @@ 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 invalidateSession_resultStandardSchemeFactory implements SchemeFactory { - public invalidateSession_resultStandardScheme getScheme() { - return new invalidateSession_resultStandardScheme(); + private static class isAuthenticated_resultStandardSchemeFactory implements SchemeFactory { + public isAuthenticated_resultStandardScheme getScheme() { + return new isAuthenticated_resultStandardScheme(); } } - private static class invalidateSession_resultStandardScheme extends StandardScheme { + private static class isAuthenticated_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -10846,6 +10789,14 @@ 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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10857,56 +10808,71 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory { - public invalidateSession_resultTupleScheme getScheme() { - return new invalidateSession_resultTupleScheme(); + private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory { + public isAuthenticated_resultTupleScheme getScheme() { + return new isAuthenticated_resultTupleScheme(); } } - private static class invalidateSession_resultTupleScheme extends TupleScheme { + private static class isAuthenticated_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } } } } - public static class getUserList_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("getUserList_args"); + public static class invalidateSession_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("invalidateSession_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 PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new invalidateSession_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory()); } public String userToken; // required - public int page; // 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"), - PAGE((short)2, "page"); + USER_TOKEN((short)1, "userToken"); private static final Map byName = new HashMap(); @@ -10923,8 +10889,6 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // PAGE - return PAGE; default: return null; } @@ -10965,99 +10929,65 @@ public class SatelliteServer { } // isset id assignments - private static final int __PAGE_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.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.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap); } - public getUserList_args() { + public invalidateSession_args() { } - public getUserList_args( - String userToken, - int page) + public invalidateSession_args( + String userToken) { this(); this.userToken = userToken; - this.page = page; - setPageIsSet(true); } /** * Performs a deep copy on other. */ - public getUserList_args(getUserList_args other) { - __isset_bitfield = other.__isset_bitfield; + public invalidateSession_args(invalidateSession_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - this.page = other.page; } - public getUserList_args deepCopy() { - return new getUserList_args(this); + public invalidateSession_args deepCopy() { + return new invalidateSession_args(this); } @Override public void clear() { this.userToken = null; - setPageIsSet(false); - this.page = 0; } public String getUserToken() { return this.userToken; } - public getUserList_args setUserToken(String userToken) { + public invalidateSession_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 int getPage() { - return this.page; - } - - public getUserList_args setPage(int page) { - this.page = page; - setPageIsSet(true); - return this; - } - - public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + this.userToken = null; } - /** Returns true if field page is set (has been assigned a value) and false otherwise */ - public boolean isSetPage() { - return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); + /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUserToken() { + return this.userToken != null; } - public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); + public void setUserTokenIsSet(boolean value) { + if (!value) { + this.userToken = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -11070,14 +11000,6 @@ public class SatelliteServer { } break; - case PAGE: - if (value == null) { - unsetPage(); - } else { - setPage((Integer)value); - } - break; - } } @@ -11086,9 +11008,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case PAGE: - return Integer.valueOf(getPage()); - } throw new IllegalStateException(); } @@ -11102,8 +11021,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case PAGE: - return isSetPage(); } throw new IllegalStateException(); } @@ -11112,12 +11029,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserList_args) - return this.equals((getUserList_args)that); + if (that instanceof invalidateSession_args) + return this.equals((invalidateSession_args)that); return false; } - public boolean equals(getUserList_args that) { + public boolean equals(invalidateSession_args that) { if (that == null) return false; @@ -11130,15 +11047,6 @@ public class SatelliteServer { return false; } - boolean this_present_page = true; - boolean that_present_page = true; - if (this_present_page || that_present_page) { - if (!(this_present_page && that_present_page)) - return false; - if (this.page != that.page) - return false; - } - return true; } @@ -11148,7 +11056,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_args other) { + public int compareTo(invalidateSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11165,16 +11073,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -11192,7 +11090,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_args("); + StringBuilder sb = new StringBuilder("invalidateSession_args("); boolean first = true; sb.append("userToken:"); @@ -11202,10 +11100,6 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; - if (!first) sb.append(", "); - sb.append("page:"); - sb.append(this.page); - first = false; sb.append(")"); return sb.toString(); } @@ -11225,23 +11119,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 getUserList_argsStandardSchemeFactory implements SchemeFactory { - public getUserList_argsStandardScheme getScheme() { - return new getUserList_argsStandardScheme(); + private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory { + public invalidateSession_argsStandardScheme getScheme() { + return new invalidateSession_argsStandardScheme(); } } - private static class getUserList_argsStandardScheme extends StandardScheme { + private static class invalidateSession_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11259,14 +11151,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PAGE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11278,7 +11162,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -11287,81 +11171,60 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(PAGE_FIELD_DESC); - oprot.writeI32(struct.page); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getUserList_argsTupleSchemeFactory implements SchemeFactory { - public getUserList_argsTupleScheme getScheme() { - return new getUserList_argsTupleScheme(); + private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory { + public invalidateSession_argsTupleScheme getScheme() { + return new invalidateSession_argsTupleScheme(); } } - private static class getUserList_argsTupleScheme extends TupleScheme { + private static class invalidateSession_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetPage()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetPage()) { - oprot.writeI32(struct.page); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } - if (incoming.get(1)) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); - } } } } - public static class getUserList_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("getUserList_result"); + public static class invalidateSession_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("invalidateSession_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 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 { - schemes.put(StandardScheme.class, new getUserList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new invalidateSession_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); } - 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"), - SERVER_ERROR((short)2, "serverError"); +; private static final Map byName = new HashMap(); @@ -11376,12 +11239,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // FAILURE - return FAILURE; - case 2: // SERVER_ERROR - return SERVER_ERROR; default: return null; } @@ -11394,219 +11251,63 @@ public class SatelliteServer { 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.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, 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); - } - - public getUserList_result() { - } - - public getUserList_result( - List success, - TAuthorizationException failure, - TInternalServerError serverError) - { - this(); - this.success = success; - this.failure = failure; - this.serverError = serverError; - } - - /** - * Performs a deep copy on other. - */ - public getUserList_result(getUserList_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (UserInfo other_element : other.success) { - __this__success.add(new UserInfo(other_element)); - } - this.success = __this__success; - } - if (other.isSetFailure()) { - this.failure = new TAuthorizationException(other.failure); - } - if (other.isSetServerError()) { - this.serverError = new TInternalServerError(other.serverError); - } - } - - public getUserList_result deepCopy() { - return new getUserList_result(this); - } - - @Override - public void clear() { - this.success = null; - this.failure = 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(UserInfo elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public getUserList_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; + return fields; } - } - public TAuthorizationException getFailure() { - return this.failure; - } + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } - public getUserList_result setFailure(TAuthorizationException failure) { - this.failure = failure; - return this; - } + private final short _thriftId; + private final String _fieldName; - public void unsetFailure() { - this.failure = null; - } + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; - } + public short getThriftFieldId() { + return _thriftId; + } - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; + public String getFieldName() { + return _fieldName; } } - - public TInternalServerError getServerError() { - return this.serverError; + 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); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); } - public getUserList_result setServerError(TInternalServerError serverError) { - this.serverError = serverError; - return this; + public invalidateSession_result() { } - public void unsetServerError() { - this.serverError = null; + /** + * Performs a deep copy on other. + */ + public invalidateSession_result(invalidateSession_result other) { } - /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ - public boolean isSetServerError() { - return this.serverError != null; + public invalidateSession_result deepCopy() { + return new invalidateSession_result(this); } - public void setServerErrorIsSet(boolean value) { - if (!value) { - this.serverError = null; - } + @Override + public void clear() { } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((TAuthorizationException)value); - } - 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 FAILURE: - return getFailure(); - - case SERVER_ERROR: - return getServerError(); - } throw new IllegalStateException(); } @@ -11618,12 +11319,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case FAILURE: - return isSetFailure(); - case SERVER_ERROR: - return isSetServerError(); } throw new IllegalStateException(); } @@ -11632,42 +11327,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserList_result) - return this.equals((getUserList_result)that); + if (that instanceof invalidateSession_result) + return this.equals((invalidateSession_result)that); return false; } - public boolean equals(getUserList_result that) { + public boolean equals(invalidateSession_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_failure = true && this.isSetFailure(); - boolean that_present_failure = true && that.isSetFailure(); - if (this_present_failure || that_present_failure) { - if (!(this_present_failure && that_present_failure)) - return false; - if (!this.failure.equals(that.failure)) - 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; } @@ -11677,43 +11345,13 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_result other) { + public int compareTo(invalidateSession_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); - 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; } @@ -11731,32 +11369,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_result("); + StringBuilder sb = new StringBuilder("invalidateSession_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("failure:"); - if (this.failure == null) { - sb.append("null"); - } else { - 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(); } @@ -11775,68 +11390,31 @@ public class SatelliteServer { } 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 getUserList_resultStandardSchemeFactory implements SchemeFactory { - public getUserList_resultStandardScheme getScheme() { - return new getUserList_resultStandardScheme(); - } - } - - private static class getUserList_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_result struct) throws org.apache.thrift.TException { - org.apache.thrift.protocol.TField schemeField; - iprot.readStructBegin(); - while (true) - { - schemeField = iprot.readFieldBegin(); - if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { - break; - } - switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); - struct.success = new ArrayList(_list114.size); - for (int _i115 = 0; _i115 < _list114.size; ++_i115) - { - UserInfo _elem116; - _elem116 = new UserInfo(); - _elem116.read(iprot); - struct.success.add(_elem116); - } - iprot.readListEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // FAILURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new TAuthorizationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } else { - 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; + 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 invalidateSession_resultStandardSchemeFactory implements SchemeFactory { + public invalidateSession_resultStandardScheme getScheme() { + return new invalidateSession_resultStandardScheme(); + } + } + + private static class invalidateSession_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_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) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11848,124 +11426,56 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_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 (UserInfo _iter117 : struct.success) - { - _iter117.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.failure != null) { - oprot.writeFieldBegin(FAILURE_FIELD_DESC); - 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(); } } - private static class getUserList_resultTupleSchemeFactory implements SchemeFactory { - public getUserList_resultTupleScheme getScheme() { - return new getUserList_resultTupleScheme(); + private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory { + public invalidateSession_resultTupleScheme getScheme() { + return new invalidateSession_resultTupleScheme(); } } - private static class getUserList_resultTupleScheme extends TupleScheme { + private static class invalidateSession_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } - if (struct.isSetFailure()) { - optionals.set(1); - } - if (struct.isSetServerError()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (UserInfo _iter118 : struct.success) - { - _iter118.write(oprot); - } - } - } - 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 { + public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_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 _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list119.size); - for (int _i120 = 0; _i120 < _list119.size; ++_i120) - { - UserInfo _elem121; - _elem121 = new UserInfo(); - _elem121.read(iprot); - struct.success.add(_elem121); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.failure = new TAuthorizationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } - if (incoming.get(2)) { - struct.serverError = new TInternalServerError(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); - } } } } - public static class getOperatingSystems_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("getOperatingSystems_args"); + public static class getUserList_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("getUserList_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 PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserList_argsTupleSchemeFactory()); } + public String userToken; // required + public int page; // 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"), + PAGE((short)2, "page"); private static final Map byName = new HashMap(); @@ -11980,6 +11490,10 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // USER_TOKEN + return USER_TOKEN; + case 2: // PAGE + return PAGE; default: return null; } @@ -12018,37 +11532,132 @@ public class SatelliteServer { return _fieldName; } } + + // isset id assignments + private static final int __PAGE_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.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.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_args.class, metaDataMap); } - public getOperatingSystems_args() { + public getUserList_args() { + } + + public getUserList_args( + String userToken, + int page) + { + this(); + this.userToken = userToken; + this.page = page; + setPageIsSet(true); } /** * Performs a deep copy on other. */ - public getOperatingSystems_args(getOperatingSystems_args other) { + public getUserList_args(getUserList_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + this.page = other.page; } - public getOperatingSystems_args deepCopy() { - return new getOperatingSystems_args(this); + public getUserList_args deepCopy() { + return new getUserList_args(this); } @Override public void clear() { + this.userToken = null; + setPageIsSet(false); + this.page = 0; + } + + public String getUserToken() { + return this.userToken; + } + + public getUserList_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 int getPage() { + return this.page; + } + + public getUserList_args setPage(int page) { + this.page = page; + setPageIsSet(true); + return this; + } + + public void unsetPage() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + } + + /** Returns true if field page is set (has been assigned a value) and false otherwise */ + public boolean isSetPage() { + return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); + } + + public void setPageIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { + case USER_TOKEN: + if (value == null) { + unsetUserToken(); + } else { + setUserToken((String)value); + } + break; + + case PAGE: + if (value == null) { + unsetPage(); + } else { + setPage((Integer)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case USER_TOKEN: + return getUserToken(); + + case PAGE: + return Integer.valueOf(getPage()); + } throw new IllegalStateException(); } @@ -12060,6 +11669,10 @@ public class SatelliteServer { } switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -12068,15 +11681,33 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOperatingSystems_args) - return this.equals((getOperatingSystems_args)that); + if (that instanceof getUserList_args) + return this.equals((getUserList_args)that); return false; } - public boolean equals(getOperatingSystems_args that) { + public boolean equals(getUserList_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_page = true; + boolean that_present_page = true; + if (this_present_page || that_present_page) { + if (!(this_present_page && that_present_page)) + return false; + if (this.page != that.page) + return false; + } + return true; } @@ -12086,13 +11717,33 @@ public class SatelliteServer { } @Override - public int compareTo(getOperatingSystems_args other) { + public int compareTo(getUserList_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(isSetPage()).compareTo(other.isSetPage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -12110,9 +11761,20 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_args("); + StringBuilder sb = new StringBuilder("getUserList_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("page:"); + sb.append(this.page); + first = false; sb.append(")"); return sb.toString(); } @@ -12132,21 +11794,23 @@ 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 getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { - public getOperatingSystems_argsStandardScheme getScheme() { - return new getOperatingSystems_argsStandardScheme(); + private static class getUserList_argsStandardSchemeFactory implements SchemeFactory { + public getUserList_argsStandardScheme getScheme() { + return new getUserList_argsStandardScheme(); } } - private static class getOperatingSystems_argsStandardScheme extends StandardScheme { + private static class getUserList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12156,6 +11820,22 @@ public class SatelliteServer { 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: // PAGE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12167,53 +11847,90 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_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(); + } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { - public getOperatingSystems_argsTupleScheme getScheme() { - return new getOperatingSystems_argsTupleScheme(); + private static class getUserList_argsTupleSchemeFactory implements SchemeFactory { + public getUserList_argsTupleScheme getScheme() { + return new getUserList_argsTupleScheme(); } } - private static class getOperatingSystems_argsTupleScheme extends TupleScheme { + private static class getUserList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserToken()) { + optionals.set(0); + } + if (struct.isSetPage()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetPage()) { + oprot.writeI32(struct.page); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_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.page = iprot.readI32(); + struct.setPageIsSet(true); + } } } } - public static class getOperatingSystems_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("getOperatingSystems_result"); + public static class getUserList_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("getUserList_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 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 { - schemes.put(StandardScheme.class, new getOperatingSystems_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserList_resultTupleSchemeFactory()); } - public List success; // required + 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"); + SUCCESS((short)0, "success"), + FAILURE((short)1, "failure"), + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -12230,6 +11947,10 @@ public class SatelliteServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // FAILURE + return FAILURE; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -12275,63 +11996,79 @@ 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.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, OperatingSystem.class)))); + 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(getOperatingSystems_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_result.class, metaDataMap); } - public getOperatingSystems_result() { + public getUserList_result() { } - public getOperatingSystems_result( - List success) + public getUserList_result( + List success, + TAuthorizationException failure, + TInternalServerError serverError) { this(); this.success = success; + this.failure = failure; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getOperatingSystems_result(getOperatingSystems_result other) { + public getUserList_result(getUserList_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (OperatingSystem other_element : other.success) { - __this__success.add(new OperatingSystem(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (UserInfo other_element : other.success) { + __this__success.add(new UserInfo(other_element)); } this.success = __this__success; } + if (other.isSetFailure()) { + this.failure = new TAuthorizationException(other.failure); + } + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public getOperatingSystems_result deepCopy() { - return new getOperatingSystems_result(this); + public getUserList_result deepCopy() { + return new getUserList_result(this); } @Override public void clear() { this.success = null; + this.failure = null; + this.serverError = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(OperatingSystem elem) { + public void addToSuccess(UserInfo elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getOperatingSystems_result setSuccess(List success) { + public getUserList_result setSuccess(List success) { this.success = success; return this; } @@ -12351,13 +12088,77 @@ public class SatelliteServer { } } + public TAuthorizationException getFailure() { + return this.failure; + } + + public getUserList_result setFailure(TAuthorizationException failure) { + this.failure = failure; + return this; + } + + public void unsetFailure() { + this.failure = null; + } + + /** Returns true if field failure is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure() { + return this.failure != null; + } + + public void setFailureIsSet(boolean value) { + if (!value) { + this.failure = null; + } + } + + 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: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); + } + break; + + case FAILURE: + if (value == null) { + unsetFailure(); + } else { + setFailure((TAuthorizationException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInternalServerError)value); } break; @@ -12369,6 +12170,12 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); + case FAILURE: + return getFailure(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -12382,6 +12189,10 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); + case FAILURE: + return isSetFailure(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -12390,12 +12201,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOperatingSystems_result) - return this.equals((getOperatingSystems_result)that); + if (that instanceof getUserList_result) + return this.equals((getUserList_result)that); return false; } - public boolean equals(getOperatingSystems_result that) { + public boolean equals(getUserList_result that) { if (that == null) return false; @@ -12408,6 +12219,24 @@ public class SatelliteServer { return false; } + boolean this_present_failure = true && this.isSetFailure(); + boolean that_present_failure = true && that.isSetFailure(); + if (this_present_failure || that_present_failure) { + if (!(this_present_failure && that_present_failure)) + return false; + if (!this.failure.equals(that.failure)) + 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; } @@ -12417,7 +12246,7 @@ public class SatelliteServer { } @Override - public int compareTo(getOperatingSystems_result other) { + public int compareTo(getUserList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12434,6 +12263,26 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); + 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; } @@ -12451,7 +12300,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_result("); + StringBuilder sb = new StringBuilder("getUserList_result("); boolean first = true; sb.append("success:"); @@ -12461,6 +12310,22 @@ public class SatelliteServer { sb.append(this.success); } first = false; + if (!first) sb.append(", "); + sb.append("failure:"); + if (this.failure == null) { + sb.append("null"); + } else { + 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(); } @@ -12486,15 +12351,15 @@ public class SatelliteServer { } } - private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { - public getOperatingSystems_resultStandardScheme getScheme() { - return new getOperatingSystems_resultStandardScheme(); + private static class getUserList_resultStandardSchemeFactory implements SchemeFactory { + public getUserList_resultStandardScheme getScheme() { + return new getUserList_resultStandardScheme(); } } - private static class getOperatingSystems_resultStandardScheme extends StandardScheme { + private static class getUserList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12507,14 +12372,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); - struct.success = new ArrayList(_list122.size); - for (int _i123 = 0; _i123 < _list122.size; ++_i123) + org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); + struct.success = new ArrayList(_list114.size); + for (int _i115 = 0; _i115 < _list114.size; ++_i115) { - OperatingSystem _elem124; - _elem124 = new OperatingSystem(); - _elem124.read(iprot); - struct.success.add(_elem124); + UserInfo _elem116; + _elem116 = new UserInfo(); + _elem116.read(iprot); + struct.success.add(_elem116); } iprot.readListEnd(); } @@ -12523,6 +12388,24 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // FAILURE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure = new TAuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } else { + 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); } @@ -12534,7 +12417,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12542,78 +12425,110 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (OperatingSystem _iter125 : struct.success) + for (UserInfo _iter117 : struct.success) { - _iter125.write(oprot); + _iter117.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + if (struct.failure != null) { + oprot.writeFieldBegin(FAILURE_FIELD_DESC); + 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(); } } - private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { - public getOperatingSystems_resultTupleScheme getScheme() { - return new getOperatingSystems_resultTupleScheme(); + private static class getUserList_resultTupleSchemeFactory implements SchemeFactory { + public getUserList_resultTupleScheme getScheme() { + return new getUserList_resultTupleScheme(); } } - private static class getOperatingSystems_resultTupleScheme extends TupleScheme { + private static class getUserList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetFailure()) { + optionals.set(1); + } + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter126 : struct.success) + for (UserInfo _iter118 : struct.success) { - _iter126.write(oprot); + _iter118.write(oprot); } } } + if (struct.isSetFailure()) { + struct.failure.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + 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(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list127.size); - for (int _i128 = 0; _i128 < _list127.size; ++_i128) + org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list119.size); + for (int _i120 = 0; _i120 < _list119.size; ++_i120) { - OperatingSystem _elem129; - _elem129 = new OperatingSystem(); - _elem129.read(iprot); - struct.success.add(_elem129); + UserInfo _elem121; + _elem121 = new UserInfo(); + _elem121.read(iprot); + struct.success.add(_elem121); } } struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.failure = new TAuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } + if (incoming.get(2)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class getVirtualizers_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("getVirtualizers_args"); + public static class getOperatingSystems_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("getOperatingSystems_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getVirtualizers_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); } @@ -12676,20 +12591,20 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); } - public getVirtualizers_args() { + public getOperatingSystems_args() { } /** * Performs a deep copy on other. */ - public getVirtualizers_args(getVirtualizers_args other) { + public getOperatingSystems_args(getOperatingSystems_args other) { } - public getVirtualizers_args deepCopy() { - return new getVirtualizers_args(this); + public getOperatingSystems_args deepCopy() { + return new getOperatingSystems_args(this); } @Override @@ -12722,12 +12637,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getVirtualizers_args) - return this.equals((getVirtualizers_args)that); + if (that instanceof getOperatingSystems_args) + return this.equals((getOperatingSystems_args)that); return false; } - public boolean equals(getVirtualizers_args that) { + public boolean equals(getOperatingSystems_args that) { if (that == null) return false; @@ -12740,7 +12655,7 @@ public class SatelliteServer { } @Override - public int compareTo(getVirtualizers_args other) { + public int compareTo(getOperatingSystems_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12764,7 +12679,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_args("); + StringBuilder sb = new StringBuilder("getOperatingSystems_args("); boolean first = true; sb.append(")"); @@ -12792,15 +12707,15 @@ public class SatelliteServer { } } - private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { - public getVirtualizers_argsStandardScheme getScheme() { - return new getVirtualizers_argsStandardScheme(); + private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsStandardScheme getScheme() { + return new getOperatingSystems_argsStandardScheme(); } } - private static class getVirtualizers_argsStandardScheme extends StandardScheme { + private static class getOperatingSystems_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12821,7 +12736,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12831,39 +12746,39 @@ public class SatelliteServer { } - private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { - public getVirtualizers_argsTupleScheme getScheme() { - return new getVirtualizers_argsTupleScheme(); + private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsTupleScheme getScheme() { + return new getOperatingSystems_argsTupleScheme(); } } - private static class getVirtualizers_argsTupleScheme extends TupleScheme { + private static class getOperatingSystems_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getVirtualizers_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("getVirtualizers_result"); + public static class getOperatingSystems_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("getOperatingSystems_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getVirtualizers_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVirtualizers_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOperatingSystems_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -12929,16 +12844,16 @@ 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.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, Virtualizer.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OperatingSystem.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap); } - public getVirtualizers_result() { + public getOperatingSystems_result() { } - public getVirtualizers_result( - List success) + public getOperatingSystems_result( + List success) { this(); this.success = success; @@ -12947,18 +12862,18 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getVirtualizers_result(getVirtualizers_result other) { + public getOperatingSystems_result(getOperatingSystems_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Virtualizer other_element : other.success) { - __this__success.add(new Virtualizer(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (OperatingSystem other_element : other.success) { + __this__success.add(new OperatingSystem(other_element)); } this.success = __this__success; } } - public getVirtualizers_result deepCopy() { - return new getVirtualizers_result(this); + public getOperatingSystems_result deepCopy() { + return new getOperatingSystems_result(this); } @Override @@ -12970,22 +12885,22 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Virtualizer elem) { + public void addToSuccess(OperatingSystem elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getVirtualizers_result setSuccess(List success) { + public getOperatingSystems_result setSuccess(List success) { this.success = success; return this; } @@ -13011,7 +12926,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -13044,12 +12959,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getVirtualizers_result) - return this.equals((getVirtualizers_result)that); + if (that instanceof getOperatingSystems_result) + return this.equals((getOperatingSystems_result)that); return false; } - public boolean equals(getVirtualizers_result that) { + public boolean equals(getOperatingSystems_result that) { if (that == null) return false; @@ -13071,7 +12986,7 @@ public class SatelliteServer { } @Override - public int compareTo(getVirtualizers_result other) { + public int compareTo(getOperatingSystems_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13105,7 +13020,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_result("); + StringBuilder sb = new StringBuilder("getOperatingSystems_result("); boolean first = true; sb.append("success:"); @@ -13140,15 +13055,15 @@ public class SatelliteServer { } } - private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { - public getVirtualizers_resultStandardScheme getScheme() { - return new getVirtualizers_resultStandardScheme(); + private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultStandardScheme getScheme() { + return new getOperatingSystems_resultStandardScheme(); } } - private static class getVirtualizers_resultStandardScheme extends StandardScheme { + private static class getOperatingSystems_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13161,14 +13076,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); - struct.success = new ArrayList(_list130.size); - for (int _i131 = 0; _i131 < _list130.size; ++_i131) + org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); + struct.success = new ArrayList(_list122.size); + for (int _i123 = 0; _i123 < _list122.size; ++_i123) { - Virtualizer _elem132; - _elem132 = new Virtualizer(); - _elem132.read(iprot); - struct.success.add(_elem132); + OperatingSystem _elem124; + _elem124 = new OperatingSystem(); + _elem124.read(iprot); + struct.success.add(_elem124); } iprot.readListEnd(); } @@ -13188,7 +13103,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13196,9 +13111,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Virtualizer _iter133 : struct.success) + for (OperatingSystem _iter125 : struct.success) { - _iter133.write(oprot); + _iter125.write(oprot); } oprot.writeListEnd(); } @@ -13210,16 +13125,16 @@ public class SatelliteServer { } - private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { - public getVirtualizers_resultTupleScheme getScheme() { - return new getVirtualizers_resultTupleScheme(); + private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultTupleScheme getScheme() { + return new getOperatingSystems_resultTupleScheme(); } } - private static class getVirtualizers_resultTupleScheme extends TupleScheme { + private static class getOperatingSystems_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -13229,28 +13144,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter134 : struct.success) + for (OperatingSystem _iter126 : struct.success) { - _iter134.write(oprot); + _iter126.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list135.size); - for (int _i136 = 0; _i136 < _list135.size; ++_i136) + org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list127.size); + for (int _i128 = 0; _i128 < _list127.size; ++_i128) { - Virtualizer _elem137; - _elem137 = new Virtualizer(); - _elem137.read(iprot); - struct.success.add(_elem137); + OperatingSystem _elem129; + _elem129 = new OperatingSystem(); + _elem129.read(iprot); + struct.success.add(_elem129); } } struct.setSuccessIsSet(true); @@ -13260,14 +13175,14 @@ public class SatelliteServer { } - public static class getAllOrganizations_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("getAllOrganizations_args"); + public static class getVirtualizers_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("getVirtualizers_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOrganizations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getVirtualizers_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory()); } @@ -13330,20 +13245,20 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap); } - public getAllOrganizations_args() { + public getVirtualizers_args() { } /** * Performs a deep copy on other. */ - public getAllOrganizations_args(getAllOrganizations_args other) { + public getVirtualizers_args(getVirtualizers_args other) { } - public getAllOrganizations_args deepCopy() { - return new getAllOrganizations_args(this); + public getVirtualizers_args deepCopy() { + return new getVirtualizers_args(this); } @Override @@ -13376,12 +13291,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOrganizations_args) - return this.equals((getAllOrganizations_args)that); + if (that instanceof getVirtualizers_args) + return this.equals((getVirtualizers_args)that); return false; } - public boolean equals(getAllOrganizations_args that) { + public boolean equals(getVirtualizers_args that) { if (that == null) return false; @@ -13394,7 +13309,7 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_args other) { + public int compareTo(getVirtualizers_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13418,7 +13333,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_args("); + StringBuilder sb = new StringBuilder("getVirtualizers_args("); boolean first = true; sb.append(")"); @@ -13446,15 +13361,15 @@ public class SatelliteServer { } } - private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsStandardScheme getScheme() { - return new getAllOrganizations_argsStandardScheme(); + private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { + public getVirtualizers_argsStandardScheme getScheme() { + return new getVirtualizers_argsStandardScheme(); } } - private static class getAllOrganizations_argsStandardScheme extends StandardScheme { + private static class getVirtualizers_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13475,7 +13390,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13485,39 +13400,39 @@ public class SatelliteServer { } - private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsTupleScheme getScheme() { - return new getAllOrganizations_argsTupleScheme(); + private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { + public getVirtualizers_argsTupleScheme getScheme() { + return new getVirtualizers_argsTupleScheme(); } } - private static class getAllOrganizations_argsTupleScheme extends TupleScheme { + private static class getVirtualizers_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getAllOrganizations_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("getAllOrganizations_result"); + public static class getVirtualizers_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("getVirtualizers_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOrganizations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getVirtualizers_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getVirtualizers_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -13583,16 +13498,16 @@ 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.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, Organization.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Virtualizer.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); } - public getAllOrganizations_result() { + public getVirtualizers_result() { } - public getAllOrganizations_result( - List success) + public getVirtualizers_result( + List success) { this(); this.success = success; @@ -13601,18 +13516,18 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getAllOrganizations_result(getAllOrganizations_result other) { + public getVirtualizers_result(getVirtualizers_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Organization other_element : other.success) { - __this__success.add(new Organization(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Virtualizer other_element : other.success) { + __this__success.add(new Virtualizer(other_element)); } this.success = __this__success; } } - public getAllOrganizations_result deepCopy() { - return new getAllOrganizations_result(this); + public getVirtualizers_result deepCopy() { + return new getVirtualizers_result(this); } @Override @@ -13624,22 +13539,22 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Organization elem) { + public void addToSuccess(Virtualizer elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getAllOrganizations_result setSuccess(List success) { + public getVirtualizers_result setSuccess(List success) { this.success = success; return this; } @@ -13665,7 +13580,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -13698,12 +13613,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOrganizations_result) - return this.equals((getAllOrganizations_result)that); + if (that instanceof getVirtualizers_result) + return this.equals((getVirtualizers_result)that); return false; } - public boolean equals(getAllOrganizations_result that) { + public boolean equals(getVirtualizers_result that) { if (that == null) return false; @@ -13725,7 +13640,7 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_result other) { + public int compareTo(getVirtualizers_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13759,7 +13674,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_result("); + StringBuilder sb = new StringBuilder("getVirtualizers_result("); boolean first = true; sb.append("success:"); @@ -13794,15 +13709,15 @@ public class SatelliteServer { } } - private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultStandardScheme getScheme() { - return new getAllOrganizations_resultStandardScheme(); + private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { + public getVirtualizers_resultStandardScheme getScheme() { + return new getVirtualizers_resultStandardScheme(); } } - private static class getAllOrganizations_resultStandardScheme extends StandardScheme { + private static class getVirtualizers_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13815,14 +13730,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); - struct.success = new ArrayList(_list138.size); - for (int _i139 = 0; _i139 < _list138.size; ++_i139) + org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); + struct.success = new ArrayList(_list130.size); + for (int _i131 = 0; _i131 < _list130.size; ++_i131) { - Organization _elem140; - _elem140 = new Organization(); - _elem140.read(iprot); - struct.success.add(_elem140); + Virtualizer _elem132; + _elem132 = new Virtualizer(); + _elem132.read(iprot); + struct.success.add(_elem132); } iprot.readListEnd(); } @@ -13842,7 +13757,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13850,9 +13765,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Organization _iter141 : struct.success) + for (Virtualizer _iter133 : struct.success) { - _iter141.write(oprot); + _iter133.write(oprot); } oprot.writeListEnd(); } @@ -13864,16 +13779,16 @@ public class SatelliteServer { } - private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultTupleScheme getScheme() { - return new getAllOrganizations_resultTupleScheme(); + private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { + public getVirtualizers_resultTupleScheme getScheme() { + return new getVirtualizers_resultTupleScheme(); } } - private static class getAllOrganizations_resultTupleScheme extends TupleScheme { + private static class getVirtualizers_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -13883,28 +13798,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter142 : struct.success) + for (Virtualizer _iter134 : struct.success) { - _iter142.write(oprot); + _iter134.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list143.size); - for (int _i144 = 0; _i144 < _list143.size; ++_i144) - { - Organization _elem145; - _elem145 = new Organization(); - _elem145.read(iprot); - struct.success.add(_elem145); + org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list135.size); + for (int _i136 = 0; _i136 < _list135.size; ++_i136) + { + Virtualizer _elem137; + _elem137 = new Virtualizer(); + _elem137.read(iprot); + struct.success.add(_elem137); } } struct.setSuccessIsSet(true); @@ -13914,25 +13829,20 @@ public class SatelliteServer { } - public static class getImageList_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("getImageList_args"); + public static class getAllOrganizations_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("getAllOrganizations_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 TAG_SEARCH_FIELD_DESC = new org.apache.thrift.protocol.TField("tagSearch", org.apache.thrift.protocol.TType.LIST, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOrganizations_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); } - public String userToken; // required - public List tagSearch; // 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"), - TAG_SEARCH((short)2, "tagSearch"); +; private static final Map byName = new HashMap(); @@ -13947,10 +13857,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_TOKEN - return USER_TOKEN; - case 2: // TAG_SEARCH - return TAG_SEARCH; default: return null; } @@ -13989,147 +13895,37 @@ public class SatelliteServer { 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.TAG_SEARCH, new org.apache.thrift.meta_data.FieldMetaData("tagSearch", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); - } - - public getImageList_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_args.class, metaDataMap); } - public getImageList_args( - String userToken, - List tagSearch) - { - this(); - this.userToken = userToken; - this.tagSearch = tagSearch; + public getAllOrganizations_args() { } /** * Performs a deep copy on other. */ - public getImageList_args(getImageList_args other) { - if (other.isSetUserToken()) { - this.userToken = other.userToken; - } - if (other.isSetTagSearch()) { - List __this__tagSearch = new ArrayList(other.tagSearch); - this.tagSearch = __this__tagSearch; - } + public getAllOrganizations_args(getAllOrganizations_args other) { } - public getImageList_args deepCopy() { - return new getImageList_args(this); + public getAllOrganizations_args deepCopy() { + return new getAllOrganizations_args(this); } @Override public void clear() { - this.userToken = null; - this.tagSearch = null; - } - - public String getUserToken() { - return this.userToken; - } - - public getImageList_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 int getTagSearchSize() { - return (this.tagSearch == null) ? 0 : this.tagSearch.size(); - } - - public java.util.Iterator getTagSearchIterator() { - return (this.tagSearch == null) ? null : this.tagSearch.iterator(); - } - - public void addToTagSearch(String elem) { - if (this.tagSearch == null) { - this.tagSearch = new ArrayList(); - } - this.tagSearch.add(elem); - } - - public List getTagSearch() { - return this.tagSearch; - } - - public getImageList_args setTagSearch(List tagSearch) { - this.tagSearch = tagSearch; - return this; - } - - public void unsetTagSearch() { - this.tagSearch = null; - } - - /** Returns true if field tagSearch is set (has been assigned a value) and false otherwise */ - public boolean isSetTagSearch() { - return this.tagSearch != null; - } - - public void setTagSearchIsSet(boolean value) { - if (!value) { - this.tagSearch = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_TOKEN: - if (value == null) { - unsetUserToken(); - } else { - setUserToken((String)value); - } - break; - - case TAG_SEARCH: - if (value == null) { - unsetTagSearch(); - } else { - setTagSearch((List)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case USER_TOKEN: - return getUserToken(); - - case TAG_SEARCH: - return getTagSearch(); - } throw new IllegalStateException(); } @@ -14141,10 +13937,6 @@ public class SatelliteServer { } switch (field) { - case USER_TOKEN: - return isSetUserToken(); - case TAG_SEARCH: - return isSetTagSearch(); } throw new IllegalStateException(); } @@ -14153,33 +13945,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageList_args) - return this.equals((getImageList_args)that); + if (that instanceof getAllOrganizations_args) + return this.equals((getAllOrganizations_args)that); return false; } - public boolean equals(getImageList_args that) { + public boolean equals(getAllOrganizations_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_tagSearch = true && this.isSetTagSearch(); - boolean that_present_tagSearch = true && that.isSetTagSearch(); - if (this_present_tagSearch || that_present_tagSearch) { - if (!(this_present_tagSearch && that_present_tagSearch)) - return false; - if (!this.tagSearch.equals(that.tagSearch)) - return false; - } - return true; } @@ -14189,33 +13963,13 @@ public class SatelliteServer { } @Override - public int compareTo(getImageList_args other) { + public int compareTo(getAllOrganizations_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(isSetTagSearch()).compareTo(other.isSetTagSearch()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTagSearch()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagSearch, other.tagSearch); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -14233,24 +13987,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_args("); + StringBuilder sb = new StringBuilder("getAllOrganizations_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("tagSearch:"); - if (this.tagSearch == null) { - sb.append("null"); - } else { - sb.append(this.tagSearch); - } - first = false; sb.append(")"); return sb.toString(); } @@ -14276,50 +14015,24 @@ public class SatelliteServer { } } - private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { - public getImageList_argsStandardScheme getScheme() { - return new getImageList_argsStandardScheme(); + private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { + public getAllOrganizations_argsStandardScheme getScheme() { + return new getAllOrganizations_argsStandardScheme(); } - } - - private static class getImageList_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_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: // TAG_SEARCH - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); - struct.tagSearch = new ArrayList(_list146.size); - for (int _i147 = 0; _i147 < _list146.size; ++_i147) - { - String _elem148; - _elem148 = iprot.readString(); - struct.tagSearch.add(_elem148); - } - iprot.readListEnd(); - } - struct.setTagSearchIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; + } + + private static class getAllOrganizations_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_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) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14331,114 +14044,53 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_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.tagSearch != null) { - oprot.writeFieldBegin(TAG_SEARCH_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tagSearch.size())); - for (String _iter149 : struct.tagSearch) - { - oprot.writeString(_iter149); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { - public getImageList_argsTupleScheme getScheme() { - return new getImageList_argsTupleScheme(); + private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { + public getAllOrganizations_argsTupleScheme getScheme() { + return new getAllOrganizations_argsTupleScheme(); } } - private static class getImageList_argsTupleScheme extends TupleScheme { + private static class getAllOrganizations_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUserToken()) { - optionals.set(0); - } - if (struct.isSetTagSearch()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetUserToken()) { - oprot.writeString(struct.userToken); - } - if (struct.isSetTagSearch()) { - { - oprot.writeI32(struct.tagSearch.size()); - for (String _iter150 : struct.tagSearch) - { - oprot.writeString(_iter150); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_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)) { - { - org.apache.thrift.protocol.TList _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tagSearch = new ArrayList(_list151.size); - for (int _i152 = 0; _i152 < _list151.size; ++_i152) - { - String _elem153; - _elem153 = iprot.readString(); - struct.tagSearch.add(_elem153); - } - } - struct.setTagSearchIsSet(true); - } } } } - public static class getImageList_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("getImageList_result"); + public static class getAllOrganizations_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("getAllOrganizations_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 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 getImageList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOrganizations_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOrganizations_resultTupleSchemeFactory()); } - public List success; // required - public TAuthorizationException authError; // required - public TInternalServerError serverError; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - AUTH_ERROR((short)1, "authError"), - SERVER_ERROR((short)2, "serverError"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -14455,10 +14107,6 @@ public class SatelliteServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // AUTH_ERROR - return AUTH_ERROR; - case 2: // SERVER_ERROR - return SERVER_ERROR; default: return null; } @@ -14504,79 +14152,63 @@ 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.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, 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Organization.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); } - public getImageList_result() { + public getAllOrganizations_result() { } - public getImageList_result( - List success, - TAuthorizationException authError, - TInternalServerError serverError) + public getAllOrganizations_result( + List success) { this(); this.success = success; - this.authError = authError; - this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getImageList_result(getImageList_result other) { + public getAllOrganizations_result(getAllOrganizations_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (ImageSummaryRead other_element : other.success) { - __this__success.add(new ImageSummaryRead(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Organization other_element : other.success) { + __this__success.add(new Organization(other_element)); } this.success = __this__success; } - if (other.isSetAuthError()) { - this.authError = new TAuthorizationException(other.authError); - } - if (other.isSetServerError()) { - this.serverError = new TInternalServerError(other.serverError); - } } - public getImageList_result deepCopy() { - return new getImageList_result(this); + public getAllOrganizations_result deepCopy() { + return new getAllOrganizations_result(this); } @Override public void clear() { this.success = null; - this.authError = null; - this.serverError = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(ImageSummaryRead elem) { + public void addToSuccess(Organization elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getImageList_result setSuccess(List success) { + public getAllOrganizations_result setSuccess(List success) { this.success = success; return this; } @@ -14596,77 +14228,13 @@ public class SatelliteServer { } } - public TAuthorizationException getAuthError() { - return this.authError; - } - - public getImageList_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 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: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); - } - break; - - case AUTH_ERROR: - if (value == null) { - unsetAuthError(); - } else { - setAuthError((TAuthorizationException)value); - } - break; - - case SERVER_ERROR: - if (value == null) { - unsetServerError(); - } else { - setServerError((TInternalServerError)value); + setSuccess((List)value); } break; @@ -14678,12 +14246,6 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); - case AUTH_ERROR: - return getAuthError(); - - case SERVER_ERROR: - return getServerError(); - } throw new IllegalStateException(); } @@ -14697,10 +14259,6 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); - case AUTH_ERROR: - return isSetAuthError(); - case SERVER_ERROR: - return isSetServerError(); } throw new IllegalStateException(); } @@ -14709,39 +14267,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageList_result) - return this.equals((getImageList_result)that); + if (that instanceof getAllOrganizations_result) + return this.equals((getAllOrganizations_result)that); return false; } - public boolean equals(getImageList_result that) { + public boolean equals(getAllOrganizations_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) { - if (!(this_present_authError && that_present_authError)) - return false; - if (!this.authError.equals(that.authError)) - 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)) + 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.serverError.equals(that.serverError)) + if (!this.success.equals(that.success)) return false; } @@ -14754,7 +14294,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageList_result other) { + public int compareTo(getAllOrganizations_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -14771,26 +14311,6 @@ public class SatelliteServer { return lastComparison; } } - 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(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; } @@ -14808,7 +14328,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_result("); + StringBuilder sb = new StringBuilder("getAllOrganizations_result("); boolean first = true; sb.append("success:"); @@ -14818,22 +14338,6 @@ public class SatelliteServer { sb.append(this.success); } first = false; - if (!first) sb.append(", "); - sb.append("authError:"); - if (this.authError == null) { - sb.append("null"); - } else { - 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(); } @@ -14859,15 +14363,15 @@ public class SatelliteServer { } } - private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { - public getImageList_resultStandardScheme getScheme() { - return new getImageList_resultStandardScheme(); + private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { + public getAllOrganizations_resultStandardScheme getScheme() { + return new getAllOrganizations_resultStandardScheme(); } } - private static class getImageList_resultStandardScheme extends StandardScheme { + private static class getAllOrganizations_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14880,14 +14384,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); - struct.success = new ArrayList(_list154.size); - for (int _i155 = 0; _i155 < _list154.size; ++_i155) + org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); + struct.success = new ArrayList(_list138.size); + for (int _i139 = 0; _i139 < _list138.size; ++_i139) { - ImageSummaryRead _elem156; - _elem156 = new ImageSummaryRead(); - _elem156.read(iprot); - struct.success.add(_elem156); + Organization _elem140; + _elem140 = new Organization(); + _elem140.read(iprot); + struct.success.add(_elem140); } iprot.readListEnd(); } @@ -14896,24 +14400,6 @@ public class SatelliteServer { 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(); - struct.authError.read(iprot); - struct.setAuthErrorIsSet(true); - } else { - 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); } @@ -14925,7 +14411,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14933,121 +14419,92 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ImageSummaryRead _iter157 : struct.success) + for (Organization _iter141 : struct.success) { - _iter157.write(oprot); + _iter141.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.authError != null) { - oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); - 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(); } } - private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { - public getImageList_resultTupleScheme getScheme() { - return new getImageList_resultTupleScheme(); + private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { + public getAllOrganizations_resultTupleScheme getScheme() { + return new getAllOrganizations_resultTupleScheme(); } } - private static class getImageList_resultTupleScheme extends TupleScheme { + private static class getAllOrganizations_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_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.isSetServerError()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ImageSummaryRead _iter158 : struct.success) + for (Organization _iter142 : struct.success) { - _iter158.write(oprot); + _iter142.write(oprot); } } } - 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 { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list159.size); - for (int _i160 = 0; _i160 < _list159.size; ++_i160) + org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list143.size); + for (int _i144 = 0; _i144 < _list143.size; ++_i144) { - ImageSummaryRead _elem161; - _elem161 = new ImageSummaryRead(); - _elem161.read(iprot); - struct.success.add(_elem161); + Organization _elem145; + _elem145 = new Organization(); + _elem145.read(iprot); + struct.success.add(_elem145); } } struct.setSuccessIsSet(true); } - if (incoming.get(1)) { - struct.authError = new TAuthorizationException(); - struct.authError.read(iprot); - struct.setAuthErrorIsSet(true); - } - if (incoming.get(2)) { - struct.serverError = new TInternalServerError(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); - } } } } - public static class getImageDetails_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("getImageDetails_args"); + public static class getImageList_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("getImageList_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 TAG_SEARCH_FIELD_DESC = new org.apache.thrift.protocol.TField("tagSearch", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required + public List tagSearch; // required + public int page; // 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"); + TAG_SEARCH((short)2, "tagSearch"), + PAGE((short)3, "page"); private static final Map byName = new HashMap(); @@ -15064,8 +14521,10 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; + case 2: // TAG_SEARCH + return TAG_SEARCH; + case 3: // PAGE + return PAGE; default: return null; } @@ -15106,56 +14565,69 @@ public class SatelliteServer { } // isset id assignments + private static final int __PAGE_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.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.TAG_SEARCH, new org.apache.thrift.meta_data.FieldMetaData("tagSearch", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); } - public getImageDetails_args() { + public getImageList_args() { } - public getImageDetails_args( + public getImageList_args( String userToken, - String imageBaseId) + List tagSearch, + int page) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; + this.tagSearch = tagSearch; + this.page = page; + setPageIsSet(true); } /** * Performs a deep copy on other. */ - public getImageDetails_args(getImageDetails_args other) { + public getImageList_args(getImageList_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetTagSearch()) { + List __this__tagSearch = new ArrayList(other.tagSearch); + this.tagSearch = __this__tagSearch; } + this.page = other.page; } - public getImageDetails_args deepCopy() { - return new getImageDetails_args(this); + public getImageList_args deepCopy() { + return new getImageList_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; + this.tagSearch = null; + setPageIsSet(false); + this.page = 0; } public String getUserToken() { return this.userToken; } - public getImageDetails_args setUserToken(String userToken) { + public getImageList_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -15175,28 +14647,66 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public int getTagSearchSize() { + return (this.tagSearch == null) ? 0 : this.tagSearch.size(); + } + + public java.util.Iterator getTagSearchIterator() { + return (this.tagSearch == null) ? null : this.tagSearch.iterator(); + } + + public void addToTagSearch(String elem) { + if (this.tagSearch == null) { + this.tagSearch = new ArrayList(); + } + this.tagSearch.add(elem); + } + + public List getTagSearch() { + return this.tagSearch; + } + + public getImageList_args setTagSearch(List tagSearch) { + this.tagSearch = tagSearch; + return this; + } + + public void unsetTagSearch() { + this.tagSearch = null; + } + + /** Returns true if field tagSearch is set (has been assigned a value) and false otherwise */ + public boolean isSetTagSearch() { + return this.tagSearch != null; + } + + public void setTagSearchIsSet(boolean value) { + if (!value) { + this.tagSearch = null; + } + } + + public int getPage() { + return this.page; } - public getImageDetails_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public getImageList_args setPage(int page) { + this.page = page; + setPageIsSet(true); return this; } - public void unsetImageBaseId() { - this.imageBaseId = null; + public void unsetPage() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); } - /** 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 page is set (has been assigned a value) and false otherwise */ + public boolean isSetPage() { + return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); } - public void setImageBaseIdIsSet(boolean value) { - if (!value) { - this.imageBaseId = null; - } + public void setPageIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -15209,11 +14719,19 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: + case TAG_SEARCH: if (value == null) { - unsetImageBaseId(); + unsetTagSearch(); } else { - setImageBaseId((String)value); + setTagSearch((List)value); + } + break; + + case PAGE: + if (value == null) { + unsetPage(); + } else { + setPage((Integer)value); } break; @@ -15225,8 +14743,11 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case TAG_SEARCH: + return getTagSearch(); + + case PAGE: + return Integer.valueOf(getPage()); } throw new IllegalStateException(); @@ -15241,8 +14762,10 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); + case TAG_SEARCH: + return isSetTagSearch(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -15251,12 +14774,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageDetails_args) - return this.equals((getImageDetails_args)that); + if (that instanceof getImageList_args) + return this.equals((getImageList_args)that); return false; } - public boolean equals(getImageDetails_args that) { + public boolean equals(getImageList_args that) { if (that == null) return false; @@ -15269,12 +14792,21 @@ 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_tagSearch = true && this.isSetTagSearch(); + boolean that_present_tagSearch = true && that.isSetTagSearch(); + if (this_present_tagSearch || that_present_tagSearch) { + if (!(this_present_tagSearch && that_present_tagSearch)) return false; - if (!this.imageBaseId.equals(that.imageBaseId)) + if (!this.tagSearch.equals(that.tagSearch)) + return false; + } + + boolean this_present_page = true; + boolean that_present_page = true; + if (this_present_page || that_present_page) { + if (!(this_present_page && that_present_page)) + return false; + if (this.page != that.page) return false; } @@ -15287,7 +14819,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageDetails_args other) { + public int compareTo(getImageList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15304,12 +14836,22 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = Boolean.valueOf(isSetTagSearch()).compareTo(other.isSetTagSearch()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (isSetTagSearch()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagSearch, other.tagSearch); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); if (lastComparison != 0) { return lastComparison; } @@ -15331,7 +14873,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_args("); + StringBuilder sb = new StringBuilder("getImageList_args("); boolean first = true; sb.append("userToken:"); @@ -15342,13 +14884,17 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { + sb.append("tagSearch:"); + if (this.tagSearch == null) { sb.append("null"); } else { - sb.append(this.imageBaseId); + sb.append(this.tagSearch); } first = false; + if (!first) sb.append(", "); + sb.append("page:"); + sb.append(this.page); + first = false; sb.append(")"); return sb.toString(); } @@ -15368,21 +14914,23 @@ 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 getImageDetails_argsStandardSchemeFactory implements SchemeFactory { - public getImageDetails_argsStandardScheme getScheme() { - return new getImageDetails_argsStandardScheme(); + private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { + public getImageList_argsStandardScheme getScheme() { + return new getImageList_argsStandardScheme(); } } - private static class getImageDetails_argsStandardScheme extends StandardScheme { + private static class getImageList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15400,10 +14948,28 @@ 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: // TAG_SEARCH + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); + struct.tagSearch = new ArrayList(_list146.size); + for (int _i147 = 0; _i147 < _list146.size; ++_i147) + { + String _elem148; + _elem148 = iprot.readString(); + struct.tagSearch.add(_elem148); + } + iprot.readListEnd(); + } + struct.setTagSearchIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PAGE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15419,7 +14985,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -15428,86 +14994,118 @@ 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.tagSearch != null) { + oprot.writeFieldBegin(TAG_SEARCH_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tagSearch.size())); + for (String _iter149 : struct.tagSearch) + { + oprot.writeString(_iter149); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { - public getImageDetails_argsTupleScheme getScheme() { - return new getImageDetails_argsTupleScheme(); + private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { + public getImageList_argsTupleScheme getScheme() { + return new getImageList_argsTupleScheme(); } } - private static class getImageDetails_argsTupleScheme extends TupleScheme { + private static class getImageList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_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.isSetTagSearch()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetPage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); + if (struct.isSetTagSearch()) { + { + oprot.writeI32(struct.tagSearch.size()); + for (String _iter150 : struct.tagSearch) + { + oprot.writeString(_iter150); + } + } + } + if (struct.isSetPage()) { + oprot.writeI32(struct.page); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_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.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + { + org.apache.thrift.protocol.TList _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tagSearch = new ArrayList(_list151.size); + for (int _i152 = 0; _i152 < _list151.size; ++_i152) + { + String _elem153; + _elem153 = iprot.readString(); + struct.tagSearch.add(_elem153); + } + } + struct.setTagSearchIsSet(true); + } + if (incoming.get(2)) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); } } } } - public static class getImageDetails_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("getImageDetails_result"); + public static class getImageList_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("getImageList_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 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 getImageDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); } - public ImageDetailsRead 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)3, "serverError"); + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -15526,9 +15124,7 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // NOT_FOUND - return NOT_FOUND; - case 3: // SERVER_ERROR + case 2: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -15574,68 +15170,80 @@ 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, ImageDetailsRead.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, 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.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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); } - public getImageDetails_result() { + public getImageList_result() { } - public getImageDetails_result( - ImageDetailsRead success, + public getImageList_result( + List 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 getImageDetails_result(getImageDetails_result other) { + public getImageList_result(getImageList_result other) { if (other.isSetSuccess()) { - this.success = new ImageDetailsRead(other.success); + List __this__success = new ArrayList(other.success.size()); + for (ImageSummaryRead other_element : other.success) { + __this__success.add(new ImageSummaryRead(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 getImageDetails_result deepCopy() { - return new getImageDetails_result(this); + public getImageList_result deepCopy() { + return new getImageList_result(this); } @Override public void clear() { this.success = null; this.authError = null; - this.notFound = null; this.serverError = null; } - public ImageDetailsRead 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(ImageSummaryRead elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public getImageDetails_result setSuccess(ImageDetailsRead success) { + public getImageList_result setSuccess(List success) { this.success = success; return this; } @@ -15659,7 +15267,7 @@ public class SatelliteServer { return this.authError; } - public getImageDetails_result setAuthError(TAuthorizationException authError) { + public getImageList_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -15679,35 +15287,11 @@ public class SatelliteServer { } } - public TNotFoundException getNotFound() { - return this.notFound; - } - - public getImageDetails_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 getImageDetails_result setServerError(TInternalServerError serverError) { + public getImageList_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -15733,7 +15317,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((ImageDetailsRead)value); + setSuccess((List)value); } break; @@ -15745,14 +15329,6 @@ public class SatelliteServer { } break; - case NOT_FOUND: - if (value == null) { - unsetNotFound(); - } else { - setNotFound((TNotFoundException)value); - } - break; - case SERVER_ERROR: if (value == null) { unsetServerError(); @@ -15772,9 +15348,6 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); - case NOT_FOUND: - return getNotFound(); - case SERVER_ERROR: return getServerError(); @@ -15793,8 +15366,6 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -15805,12 +15376,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageDetails_result) - return this.equals((getImageDetails_result)that); + if (that instanceof getImageList_result) + return this.equals((getImageList_result)that); return false; } - public boolean equals(getImageDetails_result that) { + public boolean equals(getImageList_result that) { if (that == null) return false; @@ -15832,15 +15403,6 @@ 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) { @@ -15859,7 +15421,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageDetails_result other) { + public int compareTo(getImageList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15886,16 +15448,6 @@ 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; @@ -15923,7 +15475,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_result("); + StringBuilder sb = new StringBuilder("getImageList_result("); boolean first = true; sb.append("success:"); @@ -15942,14 +15494,6 @@ public class SatelliteServer { } 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"); @@ -15964,9 +15508,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 { @@ -15985,15 +15526,15 @@ public class SatelliteServer { } } - private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { - public getImageDetails_resultStandardScheme getScheme() { - return new getImageDetails_resultStandardScheme(); + private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { + public getImageList_resultStandardScheme getScheme() { + return new getImageList_resultStandardScheme(); } } - private static class getImageDetails_resultStandardScheme extends StandardScheme { + private static class getImageList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16004,9 +15545,19 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ImageDetailsRead(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); + struct.success = new ArrayList(_list154.size); + for (int _i155 = 0; _i155 < _list154.size; ++_i155) + { + ImageSummaryRead _elem156; + _elem156 = new ImageSummaryRead(); + _elem156.read(iprot); + struct.success.add(_elem156); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -16021,16 +15572,7 @@ 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 + case 2: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); @@ -16050,13 +15592,20 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_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 (ImageSummaryRead _iter157 : struct.success) + { + _iter157.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -16064,11 +15613,6 @@ 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); @@ -16080,16 +15624,16 @@ public class SatelliteServer { } - private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { - public getImageDetails_resultTupleScheme getScheme() { - return new getImageDetails_resultTupleScheme(); + private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { + public getImageList_resultTupleScheme getScheme() { + return new getImageList_resultTupleScheme(); } } - private static class getImageDetails_resultTupleScheme extends TupleScheme { + private static class getImageList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -16098,34 +15642,43 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetNotFound()) { - optionals.set(2); - } if (struct.isSetServerError()) { - optionals.set(3); + optionals.set(2); } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (ImageSummaryRead _iter158 : struct.success) + { + _iter158.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, getImageDetails_result struct) throws org.apache.thrift.TException { + 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(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new ImageDetailsRead(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list159.size); + for (int _i160 = 0; _i160 < _list159.size; ++_i160) + { + ImageSummaryRead _elem161; + _elem161 = new ImageSummaryRead(); + _elem161.read(iprot); + struct.success.add(_elem161); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -16134,11 +15687,6 @@ public class SatelliteServer { 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); @@ -16148,25 +15696,25 @@ public class SatelliteServer { } - public static class createImage_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("createImage_args"); + public static class getImageDetails_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("getImageDetails_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_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", 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 createImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); } public String userToken; // required - public String imageName; // 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_NAME((short)2, "imageName"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -16183,8 +15731,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_NAME - return IMAGE_NAME; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; default: return null; } @@ -16230,51 +15778,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_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.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(createImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap); } - public createImage_args() { + public getImageDetails_args() { } - public createImage_args( + public getImageDetails_args( String userToken, - String imageName) + String imageBaseId) { this(); this.userToken = userToken; - this.imageName = imageName; + this.imageBaseId = imageBaseId; } /** * Performs a deep copy on other. */ - public createImage_args(createImage_args other) { + public getImageDetails_args(getImageDetails_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageName()) { - this.imageName = other.imageName; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } } - public createImage_args deepCopy() { - return new createImage_args(this); + public getImageDetails_args deepCopy() { + return new getImageDetails_args(this); } @Override public void clear() { this.userToken = null; - this.imageName = null; + this.imageBaseId = null; } public String getUserToken() { return this.userToken; } - public createImage_args setUserToken(String userToken) { + public getImageDetails_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -16294,27 +15842,27 @@ public class SatelliteServer { } } - public String getImageName() { - return this.imageName; + public String getImageBaseId() { + return this.imageBaseId; } - public createImage_args setImageName(String imageName) { - this.imageName = imageName; + public getImageDetails_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetImageName() { - this.imageName = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ - public boolean isSetImageName() { - return this.imageName != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setImageNameIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.imageName = null; + this.imageBaseId = null; } } @@ -16328,11 +15876,11 @@ public class SatelliteServer { } break; - case IMAGE_NAME: + case IMAGE_BASE_ID: if (value == null) { - unsetImageName(); + unsetImageBaseId(); } else { - setImageName((String)value); + setImageBaseId((String)value); } break; @@ -16344,8 +15892,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_NAME: - return getImageName(); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -16360,8 +15908,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_NAME: - return isSetImageName(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); } throw new IllegalStateException(); } @@ -16370,12 +15918,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createImage_args) - return this.equals((createImage_args)that); + if (that instanceof getImageDetails_args) + return this.equals((getImageDetails_args)that); return false; } - public boolean equals(createImage_args that) { + public boolean equals(getImageDetails_args that) { if (that == null) return false; @@ -16388,12 +15936,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageName = true && this.isSetImageName(); - boolean that_present_imageName = true && that.isSetImageName(); - if (this_present_imageName || that_present_imageName) { - if (!(this_present_imageName && that_present_imageName)) + 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.imageName.equals(that.imageName)) + if (!this.imageBaseId.equals(that.imageBaseId)) return false; } @@ -16406,7 +15954,7 @@ public class SatelliteServer { } @Override - public int compareTo(createImage_args other) { + public int compareTo(getImageDetails_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16423,12 +15971,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } @@ -16450,7 +15998,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createImage_args("); + StringBuilder sb = new StringBuilder("getImageDetails_args("); boolean first = true; sb.append("userToken:"); @@ -16461,11 +16009,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageName:"); - if (this.imageName == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.imageName); + sb.append(this.imageBaseId); } first = false; sb.append(")"); @@ -16493,15 +16041,15 @@ public class SatelliteServer { } } - private static class createImage_argsStandardSchemeFactory implements SchemeFactory { - public createImage_argsStandardScheme getScheme() { - return new createImage_argsStandardScheme(); + private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory { + public getImageDetails_argsStandardScheme getScheme() { + return new getImageDetails_argsStandardScheme(); } } - private static class createImage_argsStandardScheme extends StandardScheme { + private static class getImageDetails_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16519,10 +16067,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_NAME + case 2: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16538,7 +16086,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16547,9 +16095,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageName != null) { - oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); - oprot.writeString(struct.imageName); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -16558,35 +16106,35 @@ public class SatelliteServer { } - private static class createImage_argsTupleSchemeFactory implements SchemeFactory { - public createImage_argsTupleScheme getScheme() { - return new createImage_argsTupleScheme(); + private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { + public getImageDetails_argsTupleScheme getScheme() { + return new getImageDetails_argsTupleScheme(); } } - private static class createImage_argsTupleScheme extends TupleScheme { + private static class getImageDetails_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageName()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageName()) { - oprot.writeString(struct.imageName); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -16594,38 +16142,38 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } } } } - 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"); + public static class getImageDetails_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("getImageDetails_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 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 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 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 createImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageDetails_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); } - public String success; // required + public ImageDetailsRead success; // required public TAuthorizationException authError; // required - public TImageDataException imgError; // 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"), - IMG_ERROR((short)2, "imgError"), + NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -16645,8 +16193,8 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // IMG_ERROR - return IMG_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; case 3: // SERVER_ERROR return SERVER_ERROR; default: @@ -16693,68 +16241,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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageDetailsRead.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.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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(createImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap); } - public createImage_result() { + public getImageDetails_result() { } - public createImage_result( - String success, + public getImageDetails_result( + ImageDetailsRead success, TAuthorizationException authError, - TImageDataException imgError, + TNotFoundException notFound, TInternalServerError serverError) { this(); this.success = success; this.authError = authError; - this.imgError = imgError; + this.notFound = notFound; this.serverError = serverError; } /** * Performs a deep copy on other. */ - public createImage_result(createImage_result other) { + public getImageDetails_result(getImageDetails_result other) { if (other.isSetSuccess()) { - this.success = other.success; + this.success = new ImageDetailsRead(other.success); } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetImgError()) { - this.imgError = new TImageDataException(other.imgError); + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); } if (other.isSetServerError()) { this.serverError = new TInternalServerError(other.serverError); } } - public createImage_result deepCopy() { - return new createImage_result(this); + public getImageDetails_result deepCopy() { + return new getImageDetails_result(this); } @Override public void clear() { this.success = null; this.authError = null; - this.imgError = null; + this.notFound = null; this.serverError = null; } - public String getSuccess() { + public ImageDetailsRead getSuccess() { return this.success; } - public createImage_result setSuccess(String success) { + public getImageDetails_result setSuccess(ImageDetailsRead success) { this.success = success; return this; } @@ -16778,7 +16326,7 @@ public class SatelliteServer { return this.authError; } - public createImage_result setAuthError(TAuthorizationException authError) { + public getImageDetails_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -16798,27 +16346,27 @@ public class SatelliteServer { } } - public TImageDataException getImgError() { - return this.imgError; + public TNotFoundException getNotFound() { + return this.notFound; } - public createImage_result setImgError(TImageDataException imgError) { - this.imgError = imgError; + public getImageDetails_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; return this; } - public void unsetImgError() { - this.imgError = null; + public void unsetNotFound() { + this.notFound = null; } - /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ - public boolean isSetImgError() { - return this.imgError != 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 setImgErrorIsSet(boolean value) { + public void setNotFoundIsSet(boolean value) { if (!value) { - this.imgError = null; + this.notFound = null; } } @@ -16826,7 +16374,7 @@ public class SatelliteServer { return this.serverError; } - public createImage_result setServerError(TInternalServerError serverError) { + public getImageDetails_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -16852,7 +16400,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((String)value); + setSuccess((ImageDetailsRead)value); } break; @@ -16864,11 +16412,11 @@ public class SatelliteServer { } break; - case IMG_ERROR: + case NOT_FOUND: if (value == null) { - unsetImgError(); + unsetNotFound(); } else { - setImgError((TImageDataException)value); + setNotFound((TNotFoundException)value); } break; @@ -16891,8 +16439,8 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); - case IMG_ERROR: - return getImgError(); + case NOT_FOUND: + return getNotFound(); case SERVER_ERROR: return getServerError(); @@ -16912,8 +16460,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case IMG_ERROR: - return isSetImgError(); + case NOT_FOUND: + return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -16924,12 +16472,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createImage_result) - return this.equals((createImage_result)that); + if (that instanceof getImageDetails_result) + return this.equals((getImageDetails_result)that); return false; } - public boolean equals(createImage_result that) { + public boolean equals(getImageDetails_result that) { if (that == null) return false; @@ -16951,12 +16499,12 @@ 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)) + 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.imgError.equals(that.imgError)) + if (!this.notFound.equals(that.notFound)) return false; } @@ -16978,7 +16526,7 @@ public class SatelliteServer { } @Override - public int compareTo(createImage_result other) { + public int compareTo(getImageDetails_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17005,12 +16553,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetImgError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); if (lastComparison != 0) { return lastComparison; } @@ -17042,7 +16590,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createImage_result("); + StringBuilder sb = new StringBuilder("getImageDetails_result("); boolean first = true; sb.append("success:"); @@ -17061,11 +16609,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imgError:"); - if (this.imgError == null) { + sb.append("notFound:"); + if (this.notFound == null) { sb.append("null"); } else { - sb.append(this.imgError); + sb.append(this.notFound); } first = false; if (!first) sb.append(", "); @@ -17083,6 +16631,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 { @@ -17101,15 +16652,15 @@ public class SatelliteServer { } } - private static class createImage_resultStandardSchemeFactory implements SchemeFactory { - public createImage_resultStandardScheme getScheme() { - return new createImage_resultStandardScheme(); + private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { + public getImageDetails_resultStandardScheme getScheme() { + return new getImageDetails_resultStandardScheme(); } } - private static class createImage_resultStandardScheme extends StandardScheme { + private static class getImageDetails_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17120,8 +16671,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new ImageDetailsRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -17136,11 +16688,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMG_ERROR + case 2: // NOT_FOUND if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.imgError = new TImageDataException(); - struct.imgError.read(iprot); - struct.setImgErrorIsSet(true); + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17165,13 +16717,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_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); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -17179,9 +16731,9 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.imgError != null) { - oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); - struct.imgError.write(oprot); + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); oprot.writeFieldEnd(); } if (struct.serverError != null) { @@ -17195,16 +16747,16 @@ public class SatelliteServer { } - private static class createImage_resultTupleSchemeFactory implements SchemeFactory { - public createImage_resultTupleScheme getScheme() { - return new createImage_resultTupleScheme(); + private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { + public getImageDetails_resultTupleScheme getScheme() { + return new getImageDetails_resultTupleScheme(); } } - private static class createImage_resultTupleScheme extends TupleScheme { + private static class getImageDetails_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -17213,7 +16765,7 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetImgError()) { + if (struct.isSetNotFound()) { optionals.set(2); } if (struct.isSetServerError()) { @@ -17221,13 +16773,13 @@ public class SatelliteServer { } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeString(struct.success); + struct.success.write(oprot); } if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetImgError()) { - struct.imgError.write(oprot); + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); } if (struct.isSetServerError()) { struct.serverError.write(oprot); @@ -17235,11 +16787,12 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { + 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(4); if (incoming.get(0)) { - struct.success = iprot.readString(); + struct.success = new ImageDetailsRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -17248,9 +16801,9 @@ public class SatelliteServer { struct.setAuthErrorIsSet(true); } if (incoming.get(2)) { - struct.imgError = new TImageDataException(); - struct.imgError.read(iprot); - struct.setImgErrorIsSet(true); + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); } if (incoming.get(3)) { struct.serverError = new TInternalServerError(); @@ -17262,28 +16815,25 @@ public class SatelliteServer { } - public static class updateImageBase_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("updateImageBase_args"); + public static class createImage_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("createImage_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 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_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageBase_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createImage_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public ImageBaseWrite image; // required + public String imageName; // 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"), - IMAGE((short)3, "image"); + IMAGE_NAME((short)2, "imageName"); private static final Map byName = new HashMap(); @@ -17300,10 +16850,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; - case 3: // IMAGE - return IMAGE; + case 2: // IMAGE_NAME + return IMAGE_NAME; default: return null; } @@ -17349,59 +16897,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.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, ImageBaseWrite.class))); + tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_args.class, metaDataMap); } - public updateImageBase_args() { + public createImage_args() { } - public updateImageBase_args( + public createImage_args( String userToken, - String imageBaseId, - ImageBaseWrite image) + String imageName) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.image = image; + this.imageName = imageName; } /** * Performs a deep copy on other. */ - public updateImageBase_args(updateImageBase_args other) { + public createImage_args(createImage_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; - } - if (other.isSetImage()) { - this.image = new ImageBaseWrite(other.image); + if (other.isSetImageName()) { + this.imageName = other.imageName; } } - public updateImageBase_args deepCopy() { - return new updateImageBase_args(this); + public createImage_args deepCopy() { + return new createImage_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; - this.image = null; + this.imageName = null; } public String getUserToken() { return this.userToken; } - public updateImageBase_args setUserToken(String userToken) { + public createImage_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -17421,51 +16961,27 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; - } - - public updateImageBase_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; - return this; - } - - public void unsetImageBaseId() { - this.imageBaseId = 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 setImageBaseIdIsSet(boolean value) { - if (!value) { - this.imageBaseId = null; - } - } - - public ImageBaseWrite getImage() { - return this.image; + public String getImageName() { + return this.imageName; } - public updateImageBase_args setImage(ImageBaseWrite image) { - this.image = image; + public createImage_args setImageName(String imageName) { + this.imageName = imageName; return this; } - public void unsetImage() { - this.image = null; + public void unsetImageName() { + this.imageName = 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 imageName is set (has been assigned a value) and false otherwise */ + public boolean isSetImageName() { + return this.imageName != null; } - public void setImageIsSet(boolean value) { + public void setImageNameIsSet(boolean value) { if (!value) { - this.image = null; + this.imageName = null; } } @@ -17479,19 +16995,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: - if (value == null) { - unsetImageBaseId(); - } else { - setImageBaseId((String)value); - } - break; - - case IMAGE: + case IMAGE_NAME: if (value == null) { - unsetImage(); + unsetImageName(); } else { - setImage((ImageBaseWrite)value); + setImageName((String)value); } break; @@ -17503,11 +17011,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); - - case IMAGE: - return getImage(); + case IMAGE_NAME: + return getImageName(); } throw new IllegalStateException(); @@ -17522,10 +17027,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); - case IMAGE: - return isSetImage(); + case IMAGE_NAME: + return isSetImageName(); } throw new IllegalStateException(); } @@ -17534,12 +17037,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageBase_args) - return this.equals((updateImageBase_args)that); + if (that instanceof createImage_args) + return this.equals((createImage_args)that); return false; } - public boolean equals(updateImageBase_args that) { + public boolean equals(createImage_args that) { if (that == null) return false; @@ -17552,21 +17055,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)) - return false; - 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_imageName = true && this.isSetImageName(); + boolean that_present_imageName = true && that.isSetImageName(); + if (this_present_imageName || that_present_imageName) { + if (!(this_present_imageName && that_present_imageName)) return false; - if (!this.image.equals(that.image)) + if (!this.imageName.equals(that.imageName)) return false; } @@ -17579,7 +17073,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageBase_args other) { + public int compareTo(createImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17596,22 +17090,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); - if (lastComparison != 0) { - return lastComparison; - } - 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(isSetImageName()).compareTo(other.isSetImageName()); if (lastComparison != 0) { return lastComparison; } - if (isSetImage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); + if (isSetImageName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); if (lastComparison != 0) { return lastComparison; } @@ -17633,7 +17117,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_args("); + StringBuilder sb = new StringBuilder("createImage_args("); boolean first = true; sb.append("userToken:"); @@ -17644,19 +17128,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { - sb.append("null"); - } else { - sb.append(this.imageBaseId); - } - first = false; - if (!first) sb.append(", "); - sb.append("image:"); - if (this.image == null) { + sb.append("imageName:"); + if (this.imageName == null) { sb.append("null"); } else { - sb.append(this.image); + sb.append(this.imageName); } first = false; sb.append(")"); @@ -17666,9 +17142,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 { @@ -17687,15 +17160,15 @@ public class SatelliteServer { } } - private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { - public updateImageBase_argsStandardScheme getScheme() { - return new updateImageBase_argsStandardScheme(); + private static class createImage_argsStandardSchemeFactory implements SchemeFactory { + public createImage_argsStandardScheme getScheme() { + return new createImage_argsStandardScheme(); } } - private static class updateImageBase_argsStandardScheme extends StandardScheme { + private static class createImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17713,19 +17186,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID + case 2: // IMAGE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - 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 ImageBaseWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17741,7 +17205,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17750,14 +17214,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); - oprot.writeFieldEnd(); - } - if (struct.image != null) { - oprot.writeFieldBegin(IMAGE_FIELD_DESC); - struct.image.write(oprot); + if (struct.imageName != null) { + oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); + oprot.writeString(struct.imageName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -17766,86 +17225,75 @@ public class SatelliteServer { } - private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { - public updateImageBase_argsTupleScheme getScheme() { - return new updateImageBase_argsTupleScheme(); + private static class createImage_argsTupleSchemeFactory implements SchemeFactory { + public createImage_argsTupleScheme getScheme() { + return new createImage_argsTupleScheme(); } } - private static class updateImageBase_argsTupleScheme extends TupleScheme { + private static class createImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createImage_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.isSetImageName()) { optionals.set(1); } - if (struct.isSetImage()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); - } - if (struct.isSetImage()) { - struct.image.write(oprot); + if (struct.isSetImageName()) { + oprot.writeString(struct.imageName); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createImage_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); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } - if (incoming.get(2)) { - struct.image = new ImageBaseWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); } } } } - 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"); + 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.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 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 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 { - schemes.put(StandardScheme.class, new updateImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); } + public String 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"), - NOT_FOUND((short)2, "notFound"), - IMG_ERROR((short)3, "imgError"), - SERVER_ERROR((short)4, "serverError"); + IMG_ERROR((short)2, "imgError"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -17860,13 +17308,13 @@ 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 + case 2: // IMG_ERROR return IMG_ERROR; - case 4: // SERVER_ERROR + case 3: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -17911,30 +17359,30 @@ 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.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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_result.class, metaDataMap); } - public updateImageBase_result() { + public createImage_result() { } - public updateImageBase_result( + public createImage_result( + String success, TAuthorizationException authError, - TNotFoundException notFound, TImageDataException imgError, TInternalServerError serverError) { this(); + this.success = success; this.authError = authError; - this.notFound = notFound; this.imgError = imgError; this.serverError = serverError; } @@ -17942,13 +17390,13 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public updateImageBase_result(updateImageBase_result other) { + public createImage_result(createImage_result other) { + if (other.isSetSuccess()) { + 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); } @@ -17957,63 +17405,63 @@ public class SatelliteServer { } } - public updateImageBase_result deepCopy() { - return new updateImageBase_result(this); + public createImage_result deepCopy() { + return new createImage_result(this); } @Override public void clear() { + this.success = null; this.authError = null; - this.notFound = null; this.imgError = null; this.serverError = null; } - public TAuthorizationException getAuthError() { - return this.authError; + public String getSuccess() { + return this.success; } - public updateImageBase_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public createImage_result setSuccess(String success) { + this.success = success; return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetSuccess() { + 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; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setAuthErrorIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.authError = null; + this.success = null; } } - public TNotFoundException getNotFound() { - return this.notFound; + public TAuthorizationException getAuthError() { + return this.authError; } - public updateImageBase_result setNotFound(TNotFoundException notFound) { - this.notFound = notFound; + public createImage_result setAuthError(TAuthorizationException authError) { + this.authError = authError; return this; } - public void unsetNotFound() { - this.notFound = null; + public void unsetAuthError() { + 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; + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; } - public void setNotFoundIsSet(boolean value) { + public void setAuthErrorIsSet(boolean value) { if (!value) { - this.notFound = null; + this.authError = null; } } @@ -18021,7 +17469,7 @@ public class SatelliteServer { return this.imgError; } - public updateImageBase_result setImgError(TImageDataException imgError) { + public createImage_result setImgError(TImageDataException imgError) { this.imgError = imgError; return this; } @@ -18045,7 +17493,7 @@ public class SatelliteServer { return this.serverError; } - public updateImageBase_result setServerError(TInternalServerError serverError) { + public createImage_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -18067,19 +17515,19 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case AUTH_ERROR: + case SUCCESS: if (value == null) { - unsetAuthError(); + unsetSuccess(); } else { - setAuthError((TAuthorizationException)value); + setSuccess((String)value); } break; - case NOT_FOUND: + case AUTH_ERROR: if (value == null) { - unsetNotFound(); + unsetAuthError(); } else { - setNotFound((TNotFoundException)value); + setAuthError((TAuthorizationException)value); } break; @@ -18104,12 +17552,12 @@ 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 IMG_ERROR: return getImgError(); @@ -18127,10 +17575,10 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); case IMG_ERROR: return isSetImgError(); case SERVER_ERROR: @@ -18143,15 +17591,24 @@ 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 createImage_result) + return this.equals((createImage_result)that); return false; } - public boolean equals(updateImageBase_result that) { + public boolean equals(createImage_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) { @@ -18161,15 +17618,6 @@ 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_imgError = true && this.isSetImgError(); boolean that_present_imgError = true && that.isSetImgError(); if (this_present_imgError || that_present_imgError) { @@ -18197,29 +17645,29 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageBase_result other) { + public int compareTo(createImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } @@ -18261,22 +17709,22 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_result("); + StringBuilder sb = new StringBuilder("createImage_result("); boolean first = true; - sb.append("authError:"); - if (this.authError == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.authError); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("notFound:"); - if (this.notFound == null) { + sb.append("authError:"); + if (this.authError == null) { sb.append("null"); } else { - sb.append(this.notFound); + sb.append(this.authError); } first = false; if (!first) sb.append(", "); @@ -18320,15 +17768,15 @@ public class SatelliteServer { } } - private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { - public updateImageBase_resultStandardScheme getScheme() { - return new updateImageBase_resultStandardScheme(); + private static class createImage_resultStandardSchemeFactory implements SchemeFactory { + public createImage_resultStandardScheme getScheme() { + return new createImage_resultStandardScheme(); } } - private static class updateImageBase_resultStandardScheme extends StandardScheme { + private static class createImage_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, createImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18338,25 +17786,24 @@ public class SatelliteServer { 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); + 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 2: // NOT_FOUND + case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IMG_ERROR + case 2: // IMG_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.imgError = new TImageDataException(); struct.imgError.read(iprot); @@ -18365,7 +17812,7 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // SERVER_ERROR + case 3: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); @@ -18385,20 +17832,20 @@ 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, createImage_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.imgError != null) { oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); struct.imgError.write(oprot); @@ -18415,22 +17862,22 @@ public class SatelliteServer { } - private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { - public updateImageBase_resultTupleScheme getScheme() { - return new updateImageBase_resultTupleScheme(); + private static class createImage_resultTupleSchemeFactory implements SchemeFactory { + public createImage_resultTupleScheme getScheme() { + return new createImage_resultTupleScheme(); } } - private static class updateImageBase_resultTupleScheme extends TupleScheme { + private static class createImage_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, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNotFound()) { + if (struct.isSetAuthError()) { optionals.set(1); } if (struct.isSetImgError()) { @@ -18440,12 +17887,12 @@ public class SatelliteServer { optionals.set(3); } oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + oprot.writeString(struct.success); + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetNotFound()) { - struct.notFound.write(oprot); - } if (struct.isSetImgError()) { struct.imgError.write(oprot); } @@ -18455,19 +17902,18 @@ public class SatelliteServer { } @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, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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.imgError = new TImageDataException(); struct.imgError.read(iprot); @@ -18483,27 +17929,27 @@ public class SatelliteServer { } - 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 updateImageBase_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("updateImageBase_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 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()); + schemes.put(StandardScheme.class, new updateImageBase_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required - public ImageVersionWrite image; // required + public String imageBaseId; // required + public ImageBaseWrite 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_BASE_ID((short)2, "imageBaseId"), IMAGE((short)3, "image"); private static final Map byName = new HashMap(); @@ -18521,8 +17967,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; case 3: // IMAGE return IMAGE; default: @@ -18570,51 +18016,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"))); 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))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageBaseWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_args.class, metaDataMap); } - public updateImageVersion_args() { + public updateImageBase_args() { } - public updateImageVersion_args( + public updateImageBase_args( String userToken, - String imageVersionId, - ImageVersionWrite image) + String imageBaseId, + ImageBaseWrite image) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; + this.imageBaseId = imageBaseId; this.image = image; } /** * Performs a deep copy on other. */ - public updateImageVersion_args(updateImageVersion_args other) { + public updateImageBase_args(updateImageBase_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); + this.image = new ImageBaseWrite(other.image); } } - public updateImageVersion_args deepCopy() { - return new updateImageVersion_args(this); + public updateImageBase_args deepCopy() { + return new updateImageBase_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; + this.imageBaseId = null; this.image = null; } @@ -18622,7 +18068,7 @@ public class SatelliteServer { return this.userToken; } - public updateImageVersion_args setUserToken(String userToken) { + public updateImageBase_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -18642,35 +18088,35 @@ 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 updateImageBase_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() { + public ImageBaseWrite getImage() { return this.image; } - public updateImageVersion_args setImage(ImageVersionWrite image) { + public updateImageBase_args setImage(ImageBaseWrite image) { this.image = image; return this; } @@ -18700,11 +18146,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; @@ -18712,7 +18158,7 @@ public class SatelliteServer { if (value == null) { unsetImage(); } else { - setImage((ImageVersionWrite)value); + setImage((ImageBaseWrite)value); } break; @@ -18724,8 +18170,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_BASE_ID: + return getImageBaseId(); case IMAGE: return getImage(); @@ -18743,8 +18189,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); case IMAGE: return isSetImage(); } @@ -18755,12 +18201,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 updateImageBase_args) + return this.equals((updateImageBase_args)that); return false; } - public boolean equals(updateImageVersion_args that) { + public boolean equals(updateImageBase_args that) { if (that == null) return false; @@ -18773,12 +18219,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; } @@ -18800,7 +18246,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_args other) { + public int compareTo(updateImageBase_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -18817,12 +18263,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; } @@ -18854,7 +18300,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_args("); + StringBuilder sb = new StringBuilder("updateImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -18865,11 +18311,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; if (!first) sb.append(", "); @@ -18908,15 +18354,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_argsStandardScheme getScheme() { - return new updateImageVersion_argsStandardScheme(); + private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { + public updateImageBase_argsStandardScheme getScheme() { + return new updateImageBase_argsStandardScheme(); } } - private static class updateImageVersion_argsStandardScheme extends StandardScheme { + private static class updateImageBase_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, updateImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18934,17 +18380,17 @@ 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 = new ImageBaseWrite(); struct.image.read(iprot); struct.setImageIsSet(true); } else { @@ -18962,7 +18408,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, updateImageBase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18971,9 +18417,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(); } if (struct.image != null) { @@ -18987,22 +18433,22 @@ public class SatelliteServer { } - private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_argsTupleScheme getScheme() { - return new updateImageVersion_argsTupleScheme(); + private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { + public updateImageBase_argsTupleScheme getScheme() { + return new updateImageBase_argsTupleScheme(); } } - private static class updateImageVersion_argsTupleScheme extends TupleScheme { + private static class updateImageBase_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, updateImageBase_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()) { @@ -19012,8 +18458,8 @@ public class SatelliteServer { 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); @@ -19021,7 +18467,7 @@ public class SatelliteServer { } @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, updateImageBase_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -19029,11 +18475,11 @@ 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 = new ImageBaseWrite(); struct.image.read(iprot); struct.setImageIsSet(true); } @@ -19042,8 +18488,8 @@ public class SatelliteServer { } - 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 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 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); @@ -19052,8 +18498,8 @@ public class SatelliteServer { 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 updateImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -19141,13 +18587,13 @@ public class SatelliteServer { 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(updateImageBase_result.class, metaDataMap); } - public updateImageVersion_result() { + public updateImageBase_result() { } - public updateImageVersion_result( + public updateImageBase_result( TAuthorizationException authError, TNotFoundException notFound, TImageDataException imgError, @@ -19163,7 +18609,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public updateImageVersion_result(updateImageVersion_result other) { + public updateImageBase_result(updateImageBase_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -19178,8 +18624,8 @@ public class SatelliteServer { } } - public updateImageVersion_result deepCopy() { - return new updateImageVersion_result(this); + public updateImageBase_result deepCopy() { + return new updateImageBase_result(this); } @Override @@ -19194,7 +18640,7 @@ public class SatelliteServer { return this.authError; } - public updateImageVersion_result setAuthError(TAuthorizationException authError) { + public updateImageBase_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -19218,7 +18664,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageVersion_result setNotFound(TNotFoundException notFound) { + public updateImageBase_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -19242,7 +18688,7 @@ public class SatelliteServer { return this.imgError; } - public updateImageVersion_result setImgError(TImageDataException imgError) { + public updateImageBase_result setImgError(TImageDataException imgError) { this.imgError = imgError; return this; } @@ -19266,7 +18712,7 @@ public class SatelliteServer { return this.serverError; } - public updateImageVersion_result setServerError(TInternalServerError serverError) { + public updateImageBase_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -19364,12 +18810,12 @@ 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 updateImageBase_result) + return this.equals((updateImageBase_result)that); return false; } - public boolean equals(updateImageVersion_result that) { + public boolean equals(updateImageBase_result that) { if (that == null) return false; @@ -19418,7 +18864,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_result other) { + public int compareTo(updateImageBase_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19482,7 +18928,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_result("); + StringBuilder sb = new StringBuilder("updateImageBase_result("); boolean first = true; sb.append("authError:"); @@ -19541,15 +18987,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_resultStandardScheme getScheme() { - return new updateImageVersion_resultStandardScheme(); + private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { + public updateImageBase_resultStandardScheme getScheme() { + return new updateImageBase_resultStandardScheme(); } } - private static class updateImageVersion_resultStandardScheme extends StandardScheme { + private static class updateImageBase_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, updateImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19606,7 +19052,7 @@ 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, updateImageBase_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19636,16 +19082,16 @@ public class SatelliteServer { } - private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_resultTupleScheme getScheme() { - return new updateImageVersion_resultTupleScheme(); + private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { + public updateImageBase_resultTupleScheme getScheme() { + return new updateImageBase_resultTupleScheme(); } } - private static class updateImageVersion_resultTupleScheme extends TupleScheme { + private static class updateImageBase_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, updateImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -19676,7 +19122,7 @@ public class SatelliteServer { } @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, updateImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -19704,25 +19150,28 @@ public class SatelliteServer { } - 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 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 deleteImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); + 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_VERSION_ID((short)2, "imageVersionId"), + IMAGE((short)3, "image"); private static final Map byName = new HashMap(); @@ -19741,6 +19190,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_VERSION_ID return IMAGE_VERSION_ID; + case 3: // IMAGE + return IMAGE; default: return null; } @@ -19788,49 +19239,57 @@ public class SatelliteServer { 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(deleteImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); } - public deleteImageVersion_args() { + public updateImageVersion_args() { } - public deleteImageVersion_args( + public updateImageVersion_args( String userToken, - String imageVersionId) + String imageVersionId, + ImageVersionWrite image) { this(); this.userToken = userToken; this.imageVersionId = imageVersionId; + this.image = image; } /** * Performs a deep copy on other. */ - public deleteImageVersion_args(deleteImageVersion_args 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 deleteImageVersion_args deepCopy() { - return new deleteImageVersion_args(this); + 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 deleteImageVersion_args setUserToken(String userToken) { + public updateImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -19854,7 +19313,7 @@ public class SatelliteServer { return this.imageVersionId; } - public deleteImageVersion_args setImageVersionId(String imageVersionId) { + public updateImageVersion_args setImageVersionId(String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -19874,6 +19333,30 @@ public class SatelliteServer { } } + 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: @@ -19892,6 +19375,14 @@ public class SatelliteServer { } break; + case IMAGE: + if (value == null) { + unsetImage(); + } else { + setImage((ImageVersionWrite)value); + } + break; + } } @@ -19903,6 +19394,9 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return getImageVersionId(); + case IMAGE: + return getImage(); + } throw new IllegalStateException(); } @@ -19918,6 +19412,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_VERSION_ID: return isSetImageVersionId(); + case IMAGE: + return isSetImage(); } throw new IllegalStateException(); } @@ -19926,12 +19422,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 updateImageVersion_args) + return this.equals((updateImageVersion_args)that); return false; } - public boolean equals(deleteImageVersion_args that) { + public boolean equals(updateImageVersion_args that) { if (that == null) return false; @@ -19953,6 +19449,15 @@ public class SatelliteServer { 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; } @@ -19962,7 +19467,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_args other) { + public int compareTo(updateImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19989,6 +19494,16 @@ public class SatelliteServer { 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; } @@ -20006,7 +19521,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_args("); + StringBuilder sb = new StringBuilder("updateImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -20024,6 +19539,14 @@ public class SatelliteServer { 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(); } @@ -20031,6 +19554,9 @@ 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 { @@ -20049,15 +19575,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsStandardScheme getScheme() { - return new deleteImageVersion_argsStandardScheme(); + private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_argsStandardScheme getScheme() { + return new updateImageVersion_argsStandardScheme(); } } - private static class deleteImageVersion_argsStandardScheme extends StandardScheme { + private static class updateImageVersion_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, updateImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20083,6 +19609,15 @@ public class SatelliteServer { 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); } @@ -20094,7 +19629,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, updateImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20108,22 +19643,27 @@ public class SatelliteServer { 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 deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsTupleScheme getScheme() { - return new deleteImageVersion_argsTupleScheme(); + private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_argsTupleScheme getScheme() { + return new updateImageVersion_argsTupleScheme(); } } - private static class deleteImageVersion_argsTupleScheme extends TupleScheme { + private static class updateImageVersion_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, updateImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -20132,19 +19672,25 @@ public class SatelliteServer { if (struct.isSetImageVersionId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + 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, deleteImageVersion_args struct) throws org.apache.thrift.TException { + 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(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -20153,33 +19699,41 @@ public class SatelliteServer { 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 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 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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + 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 deleteImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); + 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"), - SERVER_ERROR((short)3, "serverError"); + IMG_ERROR((short)3, "imgError"), + SERVER_ERROR((short)4, "serverError"); private static final Map byName = new HashMap(); @@ -20198,7 +19752,9 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; - case 3: // SERVER_ERROR + case 3: // IMG_ERROR + return IMG_ERROR; + case 4: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -20247,49 +19803,57 @@ 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.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(deleteImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); } - public deleteImageVersion_result() { + public updateImageVersion_result() { } - public deleteImageVersion_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 deleteImageVersion_result(deleteImageVersion_result 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 deleteImageVersion_result deepCopy() { - return new deleteImageVersion_result(this); + 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; } @@ -20297,7 +19861,7 @@ public class SatelliteServer { return this.authError; } - public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + public updateImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -20321,7 +19885,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + public updateImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -20341,11 +19905,35 @@ public class SatelliteServer { } } + 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 deleteImageVersion_result setServerError(TInternalServerError serverError) { + public updateImageVersion_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -20383,6 +19971,14 @@ public class SatelliteServer { } break; + case IMG_ERROR: + if (value == null) { + unsetImgError(); + } else { + setImgError((TImageDataException)value); + } + break; + case SERVER_ERROR: if (value == null) { unsetServerError(); @@ -20402,6 +19998,9 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); + case IMG_ERROR: + return getImgError(); + case SERVER_ERROR: return getServerError(); @@ -20420,6 +20019,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); case SERVER_ERROR: return isSetServerError(); } @@ -20430,12 +20031,12 @@ 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 updateImageVersion_result) + return this.equals((updateImageVersion_result)that); return false; } - public boolean equals(deleteImageVersion_result that) { + public boolean equals(updateImageVersion_result that) { if (that == null) return false; @@ -20457,6 +20058,15 @@ 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) { @@ -20475,7 +20085,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_result other) { + public int compareTo(updateImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20502,6 +20112,16 @@ 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; @@ -20529,7 +20149,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_result("); + StringBuilder sb = new StringBuilder("updateImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -20548,6 +20168,14 @@ public class SatelliteServer { } 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"); @@ -20580,15 +20208,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultStandardScheme getScheme() { - return new deleteImageVersion_resultStandardScheme(); + private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_resultStandardScheme getScheme() { + return new updateImageVersion_resultStandardScheme(); } } - private static class deleteImageVersion_resultStandardScheme extends StandardScheme { + private static class updateImageVersion_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, updateImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20616,7 +20244,16 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // SERVER_ERROR + 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); @@ -20636,7 +20273,7 @@ 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, updateImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20650,6 +20287,11 @@ public class SatelliteServer { 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); @@ -20661,16 +20303,16 @@ public class SatelliteServer { } - private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultTupleScheme getScheme() { - return new deleteImageVersion_resultTupleScheme(); + private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_resultTupleScheme getScheme() { + return new updateImageVersion_resultTupleScheme(); } } - private static class deleteImageVersion_resultTupleScheme extends TupleScheme { + private static class updateImageVersion_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, updateImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -20679,25 +20321,31 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetServerError()) { + if (struct.isSetImgError()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + 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, deleteImageVersion_result struct) throws org.apache.thrift.TException { + 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(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -20709,6 +20357,11 @@ public class SatelliteServer { 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); @@ -20718,28 +20371,25 @@ public class SatelliteServer { } - 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 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_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 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 writeImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public Map permissions; // 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_BASE_ID((short)2, "imageBaseId"), - PERMISSIONS((short)3, "permissions"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -20756,10 +20406,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; - case 3: // PERMISSIONS - return PERMISSIONS; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -20805,73 +20453,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, + 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.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(writeImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); } - public writeImagePermissions_args() { + public deleteImageVersion_args() { } - public writeImagePermissions_args( + public deleteImageVersion_args( String userToken, - String imageBaseId, - Map permissions) + String imageVersionId) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.permissions = permissions; + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public writeImagePermissions_args(writeImagePermissions_args other) { + public deleteImageVersion_args(deleteImageVersion_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.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } } - public writeImagePermissions_args deepCopy() { - return new writeImagePermissions_args(this); + public deleteImageVersion_args deepCopy() { + return new deleteImageVersion_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; - this.permissions = null; + this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public writeImagePermissions_args setUserToken(String userToken) { + public deleteImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -20891,62 +20517,27 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; - } - - public writeImagePermissions_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; - return this; - } - - public void unsetImageBaseId() { - this.imageBaseId = 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 setImageBaseIdIsSet(boolean value) { - if (!value) { - this.imageBaseId = null; - } - } - - 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 getImageVersionId() { + return this.imageVersionId; } - - public writeImagePermissions_args setPermissions(Map permissions) { - this.permissions = permissions; + + public deleteImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetPermissions() { - this.permissions = null; + public void unsetImageVersionId() { + this.imageVersionId = 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 imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setPermissionsIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.permissions = null; + this.imageVersionId = null; } } @@ -20960,19 +20551,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: - if (value == null) { - unsetImageBaseId(); - } else { - setImageBaseId((String)value); - } - break; - - case PERMISSIONS: + case IMAGE_VERSION_ID: if (value == null) { - unsetPermissions(); + unsetImageVersionId(); } else { - setPermissions((Map)value); + setImageVersionId((String)value); } break; @@ -20984,11 +20567,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); - - case PERMISSIONS: - return getPermissions(); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -21003,10 +20583,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); - case PERMISSIONS: - return isSetPermissions(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -21015,12 +20593,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 deleteImageVersion_args) + return this.equals((deleteImageVersion_args)that); return false; } - public boolean equals(writeImagePermissions_args that) { + public boolean equals(deleteImageVersion_args that) { if (that == null) return false; @@ -21033,21 +20611,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)) - return false; - if (!this.imageBaseId.equals(that.imageBaseId)) - 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_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.permissions.equals(that.permissions)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -21060,7 +20629,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_args other) { + public int compareTo(deleteImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21077,22 +20646,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetPermissions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -21114,7 +20673,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_args("); + StringBuilder sb = new StringBuilder("deleteImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -21125,19 +20684,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { - sb.append("null"); - } else { - sb.append(this.imageBaseId); - } - first = false; - if (!first) sb.append(", "); - sb.append("permissions:"); - if (this.permissions == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.permissions); + sb.append(this.imageVersionId); } first = false; sb.append(")"); @@ -21165,15 +20716,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsStandardScheme getScheme() { - return new writeImagePermissions_argsStandardScheme(); + private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsStandardScheme getScheme() { + return new deleteImageVersion_argsStandardScheme(); } } - private static class writeImagePermissions_argsStandardScheme extends StandardScheme { + private static class deleteImageVersion_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, deleteImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21191,31 +20742,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID + case 2: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } else { - 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); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -21231,7 +20761,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, deleteImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -21240,22 +20770,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); - 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.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -21264,81 +20781,52 @@ public class SatelliteServer { } - private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsTupleScheme getScheme() { - return new writeImagePermissions_argsTupleScheme(); + private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsTupleScheme getScheme() { + return new deleteImageVersion_argsTupleScheme(); } } - private static class writeImagePermissions_argsTupleScheme extends TupleScheme { + private static class deleteImageVersion_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, deleteImageVersion_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.isSetImageVersionId()) { 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.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.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @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, deleteImageVersion_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); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - 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.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(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 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); @@ -21346,8 +20834,8 @@ public class SatelliteServer { 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 deleteImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -21429,13 +20917,13 @@ public class SatelliteServer { 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(deleteImageVersion_result.class, metaDataMap); } - public writeImagePermissions_result() { + public deleteImageVersion_result() { } - public writeImagePermissions_result( + public deleteImageVersion_result( TAuthorizationException authError, TNotFoundException notFound, TInternalServerError serverError) @@ -21449,7 +20937,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public writeImagePermissions_result(writeImagePermissions_result other) { + public deleteImageVersion_result(deleteImageVersion_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -21461,8 +20949,8 @@ public class SatelliteServer { } } - public writeImagePermissions_result deepCopy() { - return new writeImagePermissions_result(this); + public deleteImageVersion_result deepCopy() { + return new deleteImageVersion_result(this); } @Override @@ -21476,7 +20964,7 @@ public class SatelliteServer { return this.authError; } - public writeImagePermissions_result setAuthError(TAuthorizationException authError) { + public deleteImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -21500,7 +20988,7 @@ public class SatelliteServer { return this.notFound; } - public writeImagePermissions_result setNotFound(TNotFoundException notFound) { + public deleteImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -21524,7 +21012,7 @@ public class SatelliteServer { return this.serverError; } - public writeImagePermissions_result setServerError(TInternalServerError serverError) { + public deleteImageVersion_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -21609,12 +21097,12 @@ 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 deleteImageVersion_result) + return this.equals((deleteImageVersion_result)that); return false; } - public boolean equals(writeImagePermissions_result that) { + public boolean equals(deleteImageVersion_result that) { if (that == null) return false; @@ -21654,7 +21142,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_result other) { + public int compareTo(deleteImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21708,7 +21196,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_result("); + StringBuilder sb = new StringBuilder("deleteImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -21758,16 +21246,16 @@ public class SatelliteServer { throw new java.io.IOException(te); } } - - private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultStandardScheme getScheme() { - return new writeImagePermissions_resultStandardScheme(); + + private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultStandardScheme getScheme() { + return new deleteImageVersion_resultStandardScheme(); } } - private static class writeImagePermissions_resultStandardScheme extends StandardScheme { + private static class deleteImageVersion_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, deleteImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21815,7 +21303,7 @@ 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, deleteImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -21840,16 +21328,16 @@ public class SatelliteServer { } - private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultTupleScheme getScheme() { - return new writeImagePermissions_resultTupleScheme(); + private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultTupleScheme getScheme() { + return new deleteImageVersion_resultTupleScheme(); } } - private static class writeImagePermissions_resultTupleScheme extends TupleScheme { + private static class deleteImageVersion_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, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -21874,7 +21362,7 @@ public class SatelliteServer { } @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, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -21897,25 +21385,28 @@ public class SatelliteServer { } - 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 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_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 getImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); } public String userToken; // 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_BASE_ID((short)2, "imageBaseId"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + PERMISSIONS((short)3, "permissions"); private static final Map byName = new HashMap(); @@ -21934,6 +21425,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; + case 3: // PERMISSIONS + return PERMISSIONS; default: return null; } @@ -21981,49 +21474,71 @@ 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); } - public getImagePermissions_args() { + public writeImagePermissions_args() { } - public getImagePermissions_args( + public writeImagePermissions_args( String userToken, - String imageBaseId) + String imageBaseId, + Map permissions) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; + this.permissions = permissions; } /** * Performs a deep copy on other. */ - public getImagePermissions_args(getImagePermissions_args other) { + public writeImagePermissions_args(writeImagePermissions_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; + } } - public getImagePermissions_args deepCopy() { - return new getImagePermissions_args(this); + public writeImagePermissions_args deepCopy() { + return new writeImagePermissions_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; + this.permissions = null; } public String getUserToken() { return this.userToken; } - public getImagePermissions_args setUserToken(String userToken) { + public writeImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -22047,7 +21562,7 @@ public class SatelliteServer { return this.imageBaseId; } - public getImagePermissions_args setImageBaseId(String imageBaseId) { + public writeImagePermissions_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -22067,6 +21582,41 @@ 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 writeImagePermissions_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: @@ -22085,6 +21635,14 @@ public class SatelliteServer { } break; + case PERMISSIONS: + if (value == null) { + unsetPermissions(); + } else { + setPermissions((Map)value); + } + break; + } } @@ -22096,6 +21654,9 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); + case PERMISSIONS: + return getPermissions(); + } throw new IllegalStateException(); } @@ -22111,6 +21672,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); + case PERMISSIONS: + return isSetPermissions(); } throw new IllegalStateException(); } @@ -22119,12 +21682,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 writeImagePermissions_args) + return this.equals((writeImagePermissions_args)that); return false; } - public boolean equals(getImagePermissions_args that) { + public boolean equals(writeImagePermissions_args that) { if (that == null) return false; @@ -22146,6 +21709,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; } @@ -22155,7 +21727,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_args other) { + public int compareTo(writeImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22182,6 +21754,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; } @@ -22199,7 +21781,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_args("); + StringBuilder sb = new StringBuilder("writeImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -22217,6 +21799,14 @@ public class SatelliteServer { sb.append(this.imageBaseId); } 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(); } @@ -22242,15 +21832,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_argsStandardScheme getScheme() { - return new getImagePermissions_argsStandardScheme(); + private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsStandardScheme getScheme() { + return new writeImagePermissions_argsStandardScheme(); } } - private static class getImagePermissions_argsStandardScheme extends StandardScheme { + private static class writeImagePermissions_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, writeImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22276,6 +21866,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 _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); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -22287,7 +21898,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, writeImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -22301,22 +21912,35 @@ 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(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_argsTupleScheme getScheme() { - return new getImagePermissions_argsTupleScheme(); + private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsTupleScheme getScheme() { + return new writeImagePermissions_argsTupleScheme(); } } - private static class getImagePermissions_argsTupleScheme extends TupleScheme { + private static class writeImagePermissions_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, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -22325,19 +21949,32 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { 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.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); + } + } + } } @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, writeImagePermissions_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); @@ -22346,33 +21983,46 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); 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); + } } } } - 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.MAP, (short)0); + 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 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 getImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_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"), SERVER_ERROR((short)3, "serverError"); @@ -22390,8 +22040,6 @@ 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 @@ -22441,10 +22089,6 @@ 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, 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, @@ -22452,20 +22096,18 @@ public class SatelliteServer { 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(writeImagePermissions_result.class, metaDataMap); } - public getImagePermissions_result() { + public writeImagePermissions_result() { } - public getImagePermissions_result( - Map success, + public writeImagePermissions_result( TAuthorizationException authError, TNotFoundException notFound, TInternalServerError serverError) { this(); - this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; @@ -22474,22 +22116,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - 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; - } + public writeImagePermissions_result(writeImagePermissions_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -22501,58 +22128,22 @@ public class SatelliteServer { } } - public getImagePermissions_result deepCopy() { - return new getImagePermissions_result(this); + public writeImagePermissions_result deepCopy() { + return new writeImagePermissions_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 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 getImagePermissions_result setSuccess(Map success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - public TAuthorizationException getAuthError() { return this.authError; } - public getImagePermissions_result setAuthError(TAuthorizationException authError) { + public writeImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -22576,7 +22167,7 @@ public class SatelliteServer { return this.notFound; } - public getImagePermissions_result setNotFound(TNotFoundException notFound) { + public writeImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -22600,7 +22191,7 @@ public class SatelliteServer { return this.serverError; } - public getImagePermissions_result setServerError(TInternalServerError serverError) { + public writeImagePermissions_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -22622,14 +22213,6 @@ public class SatelliteServer { 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(); @@ -22659,9 +22242,6 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); @@ -22682,8 +22262,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -22698,24 +22276,15 @@ 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 writeImagePermissions_result) + return this.equals((writeImagePermissions_result)that); return false; } - public boolean equals(getImagePermissions_result that) { + public boolean equals(writeImagePermissions_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) { @@ -22752,23 +22321,13 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_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()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -22816,17 +22375,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_result("); + StringBuilder sb = new StringBuilder("writeImagePermissions_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"); @@ -22875,15 +22426,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_resultStandardScheme getScheme() { - return new getImagePermissions_resultStandardScheme(); + private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultStandardScheme getScheme() { + return new writeImagePermissions_resultStandardScheme(); } } - private static class getImagePermissions_resultStandardScheme extends StandardScheme { + private static class writeImagePermissions_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, writeImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22893,27 +22444,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 _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); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -22952,23 +22482,10 @@ 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, writeImagePermissions_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.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -22990,41 +22507,28 @@ public class SatelliteServer { } - private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_resultTupleScheme getScheme() { - return new getImagePermissions_resultTupleScheme(); + private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultTupleScheme getScheme() { + return new writeImagePermissions_resultTupleScheme(); } } - private static class getImagePermissions_resultTupleScheme extends TupleScheme { + private static class writeImagePermissions_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, writeImagePermissions_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); + optionals.set(0); } if (struct.isSetNotFound()) { - optionals.set(2); + optionals.set(1); } if (struct.isSetServerError()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter177 : struct.success.entrySet()) - { - oprot.writeString(_iter177.getKey()); - _iter177.getValue().write(oprot); - } - } + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -23037,36 +22541,20 @@ public class SatelliteServer { } @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, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + 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.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(3)) { + if (incoming.get(2)) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -23076,28 +22564,25 @@ public class SatelliteServer { } - 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"); + 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_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 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 setImageOwner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // 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"), - NEW_OWNER_ID((short)3, "newOwnerId"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -23116,8 +22601,6 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; - case 3: // NEW_OWNER_ID - return NEW_OWNER_ID; default: return null; } @@ -23163,59 +22646,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.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", 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(setImageOwner_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); } - public setImageOwner_args() { + public getImagePermissions_args() { } - public setImageOwner_args( + public getImagePermissions_args( String userToken, - String imageBaseId, - String newOwnerId) + String imageBaseId) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; - this.newOwnerId = newOwnerId; } /** * Performs a deep copy on other. */ - public setImageOwner_args(setImageOwner_args other) { + public getImagePermissions_args(getImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } - if (other.isSetNewOwnerId()) { - this.newOwnerId = other.newOwnerId; - } } - public setImageOwner_args deepCopy() { - return new setImageOwner_args(this); + public getImagePermissions_args deepCopy() { + return new getImagePermissions_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; - this.newOwnerId = null; } public String getUserToken() { return this.userToken; } - public setImageOwner_args setUserToken(String userToken) { + public getImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -23239,7 +22714,7 @@ public class SatelliteServer { return this.imageBaseId; } - public setImageOwner_args setImageBaseId(String imageBaseId) { + public getImagePermissions_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -23259,30 +22734,6 @@ public class SatelliteServer { } } - public String getNewOwnerId() { - return this.newOwnerId; - } - - public setImageOwner_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: @@ -23301,14 +22752,6 @@ public class SatelliteServer { } break; - case NEW_OWNER_ID: - if (value == null) { - unsetNewOwnerId(); - } else { - setNewOwnerId((String)value); - } - break; - } } @@ -23320,9 +22763,6 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); - case NEW_OWNER_ID: - return getNewOwnerId(); - } throw new IllegalStateException(); } @@ -23338,8 +22778,6 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); - case NEW_OWNER_ID: - return isSetNewOwnerId(); } throw new IllegalStateException(); } @@ -23348,12 +22786,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageOwner_args) - return this.equals((setImageOwner_args)that); + if (that instanceof getImagePermissions_args) + return this.equals((getImagePermissions_args)that); return false; } - public boolean equals(setImageOwner_args that) { + public boolean equals(getImagePermissions_args that) { if (that == null) return false; @@ -23375,15 +22813,6 @@ 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; } @@ -23393,7 +22822,7 @@ public class SatelliteServer { } @Override - public int compareTo(setImageOwner_args other) { + public int compareTo(getImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -23420,16 +22849,6 @@ 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; } @@ -23447,7 +22866,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_args("); + StringBuilder sb = new StringBuilder("getImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -23465,14 +22884,6 @@ public class SatelliteServer { sb.append(this.imageBaseId); } 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(); } @@ -23498,15 +22909,15 @@ public class SatelliteServer { } } - private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { - public setImageOwner_argsStandardScheme getScheme() { - return new setImageOwner_argsStandardScheme(); + private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_argsStandardScheme getScheme() { + return new getImagePermissions_argsStandardScheme(); } } - private static class setImageOwner_argsStandardScheme extends StandardScheme { + private static class getImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_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) @@ -23532,14 +22943,6 @@ 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); } @@ -23551,7 +22954,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_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); @@ -23565,27 +22968,22 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); 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 setImageOwner_argsTupleSchemeFactory implements SchemeFactory { - public setImageOwner_argsTupleScheme getScheme() { - return new setImageOwner_argsTupleScheme(); + private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_argsTupleScheme getScheme() { + return new getImagePermissions_argsTupleScheme(); } } - private static class setImageOwner_argsTupleScheme extends TupleScheme { + private static class getImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_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()) { @@ -23594,25 +22992,19 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetNewOwnerId()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } - if (struct.isSetNewOwnerId()) { - oprot.writeString(struct.newOwnerId); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_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(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -23621,34 +23013,33 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } - if (incoming.get(2)) { - struct.newOwnerId = iprot.readString(); - struct.setNewOwnerIdIsSet(true); - } } } } - 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"); + 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.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 setImageOwner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_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"), SERVER_ERROR((short)3, "serverError"); @@ -23666,6 +23057,8 @@ 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 @@ -23715,6 +23108,10 @@ 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, 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, @@ -23722,18 +23119,20 @@ public class SatelliteServer { 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(setImageOwner_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); } - public setImageOwner_result() { + public getImagePermissions_result() { } - public setImageOwner_result( + public getImagePermissions_result( + Map success, TAuthorizationException authError, TNotFoundException notFound, TInternalServerError serverError) { this(); + this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; @@ -23742,7 +23141,22 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public setImageOwner_result(setImageOwner_result other) { + 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); } @@ -23754,22 +23168,58 @@ public class SatelliteServer { } } - public setImageOwner_result deepCopy() { - return new setImageOwner_result(this); + public getImagePermissions_result deepCopy() { + return new getImagePermissions_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 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 getImagePermissions_result setSuccess(Map success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public TAuthorizationException getAuthError() { return this.authError; } - public setImageOwner_result setAuthError(TAuthorizationException authError) { + public getImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -23793,7 +23243,7 @@ public class SatelliteServer { return this.notFound; } - public setImageOwner_result setNotFound(TNotFoundException notFound) { + public getImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -23817,7 +23267,7 @@ public class SatelliteServer { return this.serverError; } - public setImageOwner_result setServerError(TInternalServerError serverError) { + public getImagePermissions_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -23839,6 +23289,14 @@ public class SatelliteServer { 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(); @@ -23868,6 +23326,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -23888,6 +23349,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -23902,15 +23365,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageOwner_result) - return this.equals((setImageOwner_result)that); + if (that instanceof getImagePermissions_result) + return this.equals((getImagePermissions_result)that); return false; } - public boolean equals(setImageOwner_result that) { + public boolean equals(getImagePermissions_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) { @@ -23947,13 +23419,23 @@ public class SatelliteServer { } @Override - public int compareTo(setImageOwner_result other) { + public int compareTo(getImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -24001,9 +23483,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_result("); + StringBuilder sb = new StringBuilder("getImagePermissions_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"); @@ -24052,15 +23542,15 @@ public class SatelliteServer { } } - private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { - public setImageOwner_resultStandardScheme getScheme() { - return new setImageOwner_resultStandardScheme(); + private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_resultStandardScheme getScheme() { + return new getImagePermissions_resultStandardScheme(); } } - private static class setImageOwner_resultStandardScheme extends StandardScheme { + private static class getImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_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) @@ -24070,6 +23560,27 @@ public class SatelliteServer { break; } 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(); + } + 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(); @@ -24108,10 +23619,23 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_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.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.writeFieldEnd(); + } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -24133,28 +23657,41 @@ public class SatelliteServer { } - private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { - public setImageOwner_resultTupleScheme getScheme() { - return new setImageOwner_resultTupleScheme(); + private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_resultTupleScheme getScheme() { + return new getImagePermissions_resultTupleScheme(); } } - private static class setImageOwner_resultTupleScheme extends TupleScheme { + private static class getImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_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.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNotFound()) { + if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetServerError()) { + if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + 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); } @@ -24167,20 +23704,36 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_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)) { + { + 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)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(3)) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -24190,25 +23743,28 @@ public class SatelliteServer { } - 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 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 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 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 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 createLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); } public String userToken; // required - public LectureWrite lecture; // required + public String imageBaseId; // 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((short)2, "lecture"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + NEW_OWNER_ID((short)3, "newOwnerId"); private static final Map byName = new HashMap(); @@ -24225,8 +23781,10 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // LECTURE - return LECTURE; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; + case 3: // NEW_OWNER_ID + return NEW_OWNER_ID; default: return null; } @@ -24272,51 +23830,59 @@ 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, 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))); + 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.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(createLecture_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); } - public createLecture_args() { + public setImageOwner_args() { } - public createLecture_args( + public setImageOwner_args( String userToken, - LectureWrite lecture) + String imageBaseId, + String newOwnerId) { this(); this.userToken = userToken; - this.lecture = lecture; + this.imageBaseId = imageBaseId; + this.newOwnerId = newOwnerId; } /** * Performs a deep copy on other. */ - public createLecture_args(createLecture_args other) { + public setImageOwner_args(setImageOwner_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetLecture()) { - this.lecture = new LectureWrite(other.lecture); + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; + } + if (other.isSetNewOwnerId()) { + this.newOwnerId = other.newOwnerId; } } - public createLecture_args deepCopy() { - return new createLecture_args(this); + public setImageOwner_args deepCopy() { + return new setImageOwner_args(this); } @Override public void clear() { this.userToken = null; - this.lecture = null; + this.imageBaseId = null; + this.newOwnerId = null; } public String getUserToken() { return this.userToken; } - public createLecture_args setUserToken(String userToken) { + public setImageOwner_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -24336,27 +23902,51 @@ public class SatelliteServer { } } - public LectureWrite getLecture() { - return this.lecture; + public String getImageBaseId() { + return this.imageBaseId; } - public createLecture_args setLecture(LectureWrite lecture) { - this.lecture = lecture; + public setImageOwner_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetLecture() { - this.lecture = null; + public void unsetImageBaseId() { + 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; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setLectureIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.lecture = null; + this.imageBaseId = null; + } + } + + public String getNewOwnerId() { + return this.newOwnerId; + } + + public setImageOwner_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; } } @@ -24370,11 +23960,19 @@ public class SatelliteServer { } break; - case LECTURE: + case IMAGE_BASE_ID: if (value == null) { - unsetLecture(); + unsetImageBaseId(); } else { - setLecture((LectureWrite)value); + setImageBaseId((String)value); + } + break; + + case NEW_OWNER_ID: + if (value == null) { + unsetNewOwnerId(); + } else { + setNewOwnerId((String)value); } break; @@ -24386,8 +23984,11 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case LECTURE: - return getLecture(); + case IMAGE_BASE_ID: + return getImageBaseId(); + + case NEW_OWNER_ID: + return getNewOwnerId(); } throw new IllegalStateException(); @@ -24402,8 +24003,10 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case LECTURE: - return isSetLecture(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); + case NEW_OWNER_ID: + return isSetNewOwnerId(); } throw new IllegalStateException(); } @@ -24412,12 +24015,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 setImageOwner_args) + return this.equals((setImageOwner_args)that); return false; } - public boolean equals(createLecture_args that) { + public boolean equals(setImageOwner_args that) { if (that == null) return false; @@ -24430,12 +24033,21 @@ public class SatelliteServer { 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)) + 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.lecture.equals(that.lecture)) + if (!this.imageBaseId.equals(that.imageBaseId)) + 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; } @@ -24448,7 +24060,7 @@ public class SatelliteServer { } @Override - public int compareTo(createLecture_args other) { + public int compareTo(setImageOwner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -24465,12 +24077,22 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLecture()).compareTo(other.isSetLecture()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetLecture()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lecture, other.lecture); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (lastComparison != 0) { + 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; } @@ -24492,7 +24114,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createLecture_args("); + StringBuilder sb = new StringBuilder("setImageOwner_args("); boolean first = true; sb.append("userToken:"); @@ -24503,11 +24125,19 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("lecture:"); - if (this.lecture == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.lecture); + sb.append(this.imageBaseId); + } + 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(")"); @@ -24517,9 +24147,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 { @@ -24538,15 +24165,15 @@ public class SatelliteServer { } } - private static class createLecture_argsStandardSchemeFactory implements SchemeFactory { - public createLecture_argsStandardScheme getScheme() { - return new createLecture_argsStandardScheme(); + private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { + public setImageOwner_argsStandardScheme getScheme() { + return new setImageOwner_argsStandardScheme(); } } - private static class createLecture_argsStandardScheme extends StandardScheme { + private static class setImageOwner_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, setImageOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -24564,11 +24191,18 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // LECTURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.lecture = new LectureWrite(); - struct.lecture.read(iprot); - struct.setLectureIsSet(true); + case 2: // IMAGE_BASE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } else { + 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); } @@ -24584,7 +24218,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, setImageOwner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -24593,9 +24227,14 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.lecture != null) { - oprot.writeFieldBegin(LECTURE_FIELD_DESC); - struct.lecture.write(oprot); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); + oprot.writeFieldEnd(); + } + if (struct.newOwnerId != null) { + oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); + oprot.writeString(struct.newOwnerId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -24604,73 +24243,82 @@ public class SatelliteServer { } - private static class createLecture_argsTupleSchemeFactory implements SchemeFactory { - public createLecture_argsTupleScheme getScheme() { - return new createLecture_argsTupleScheme(); + private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { + public setImageOwner_argsTupleScheme getScheme() { + return new setImageOwner_argsTupleScheme(); } } - private static class createLecture_argsTupleScheme extends TupleScheme { + private static class setImageOwner_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, setImageOwner_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.isSetImageBaseId()) { 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.isSetLecture()) { - struct.lecture.write(oprot); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); + } + if (struct.isSetNewOwnerId()) { + oprot.writeString(struct.newOwnerId); } } @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, setImageOwner_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.lecture = new LectureWrite(); - struct.lecture.read(iprot); - struct.setLectureIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } + if (incoming.get(2)) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); } } } } - 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 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.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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); + 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 setImageOwner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_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"), - SERVER_ERROR((short)2, "serverError"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -24685,11 +24333,11 @@ 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: // SERVER_ERROR + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -24734,101 +24382,101 @@ 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(setImageOwner_result.class, metaDataMap); } - public createLecture_result() { + public setImageOwner_result() { } - public createLecture_result( - String success, + public setImageOwner_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 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 createLecture_result deepCopy() { - return new createLecture_result(this); + public setImageOwner_result deepCopy() { + return new setImageOwner_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 setImageOwner_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 setImageOwner_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; } } @@ -24836,7 +24484,7 @@ public class SatelliteServer { return this.serverError; } - public createLecture_result setServerError(TInternalServerError serverError) { + public setImageOwner_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -24858,19 +24506,19 @@ public class SatelliteServer { 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; @@ -24887,12 +24535,12 @@ 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(); @@ -24907,10 +24555,10 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -24921,24 +24569,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 setImageOwner_result) + return this.equals((setImageOwner_result)that); return false; } - public boolean equals(createLecture_result that) { + public boolean equals(setImageOwner_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) { @@ -24948,6 +24587,15 @@ 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) { @@ -24966,29 +24614,29 @@ public class SatelliteServer { } @Override - public int compareTo(createLecture_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; } @@ -25020,22 +24668,22 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createLecture_result("); + StringBuilder sb = new StringBuilder("setImageOwner_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(", "); @@ -25071,15 +24719,15 @@ public class SatelliteServer { } } - private static class createLecture_resultStandardSchemeFactory implements SchemeFactory { - public createLecture_resultStandardScheme getScheme() { - return new createLecture_resultStandardScheme(); + private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { + public setImageOwner_resultStandardScheme getScheme() { + return new setImageOwner_resultStandardScheme(); } } - private static class createLecture_resultStandardScheme extends StandardScheme { + private static class setImageOwner_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, setImageOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -25089,14 +24737,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(); @@ -25106,7 +24746,16 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // SERVER_ERROR + 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); @@ -25126,20 +24775,20 @@ 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, setImageOwner_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); @@ -25151,52 +24800,53 @@ public class SatelliteServer { } - private static class createLecture_resultTupleSchemeFactory implements SchemeFactory { - public createLecture_resultTupleScheme getScheme() { - return new createLecture_resultTupleScheme(); + private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { + public setImageOwner_resultTupleScheme getScheme() { + return new setImageOwner_resultTupleScheme(); } } - private static class createLecture_resultTupleScheme extends TupleScheme { + private static class setImageOwner_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, 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.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - 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, createLecture_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.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); @@ -25207,28 +24857,25 @@ public class SatelliteServer { } - 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 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 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 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 updateLecture_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateLecture_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createLecture_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createLecture_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"); + LECTURE((short)2, "lecture"); private static final Map byName = new HashMap(); @@ -25245,9 +24892,7 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // LECTURE_ID - return LECTURE_ID; - case 3: // LECTURE + case 2: // LECTURE return LECTURE; default: return null; @@ -25294,51 +24939,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(createLecture_args.class, metaDataMap); } - public updateLecture_args() { + public createLecture_args() { } - public updateLecture_args( + public createLecture_args( String userToken, - String lectureId, LectureWrite lecture) { this(); this.userToken = userToken; - this.lectureId = lectureId; this.lecture = lecture; } /** * Performs a deep copy on other. */ - public updateLecture_args(updateLecture_args other) { + public createLecture_args(createLecture_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 createLecture_args deepCopy() { + return new createLecture_args(this); } @Override public void clear() { this.userToken = null; - this.lectureId = null; this.lecture = null; } @@ -25346,7 +24983,7 @@ public class SatelliteServer { return this.userToken; } - public updateLecture_args setUserToken(String userToken) { + public createLecture_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -25366,35 +25003,11 @@ 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) { + public createLecture_args setLecture(LectureWrite lecture) { this.lecture = lecture; return this; } @@ -25424,14 +25037,6 @@ public class SatelliteServer { } break; - case LECTURE_ID: - if (value == null) { - unsetLectureId(); - } else { - setLectureId((String)value); - } - break; - case LECTURE: if (value == null) { unsetLecture(); @@ -25448,9 +25053,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case LECTURE_ID: - return getLectureId(); - case LECTURE: return getLecture(); @@ -25467,8 +25069,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case LECTURE_ID: - return isSetLectureId(); case LECTURE: return isSetLecture(); } @@ -25479,12 +25079,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 createLecture_args) + return this.equals((createLecture_args)that); return false; } - public boolean equals(updateLecture_args that) { + public boolean equals(createLecture_args that) { if (that == null) return false; @@ -25497,15 +25097,6 @@ 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) { @@ -25524,7 +25115,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateLecture_args other) { + public int compareTo(createLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -25541,16 +25132,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; @@ -25578,22 +25159,14 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateLecture_args("); + StringBuilder sb = new StringBuilder("createLecture_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("lectureId:"); - if (this.lectureId == null) { + + sb.append("userToken:"); + if (this.userToken == null) { sb.append("null"); } else { - sb.append(this.lectureId); + sb.append(this.userToken); } first = false; if (!first) sb.append(", "); @@ -25632,15 +25205,15 @@ public class SatelliteServer { } } - private static class updateLecture_argsStandardSchemeFactory implements SchemeFactory { - public updateLecture_argsStandardScheme getScheme() { - return new updateLecture_argsStandardScheme(); + private static class createLecture_argsStandardSchemeFactory implements SchemeFactory { + public createLecture_argsStandardScheme getScheme() { + return new createLecture_argsStandardScheme(); } } - private static class updateLecture_argsStandardScheme extends StandardScheme { + private static class createLecture_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, createLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -25658,15 +25231,7 @@ 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 + case 2: // LECTURE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.lecture = new LectureWrite(); struct.lecture.read(iprot); @@ -25686,7 +25251,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, createLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -25695,11 +25260,6 @@ 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); @@ -25711,52 +25271,42 @@ public class SatelliteServer { } - private static class updateLecture_argsTupleSchemeFactory implements SchemeFactory { - public updateLecture_argsTupleScheme getScheme() { - return new updateLecture_argsTupleScheme(); + private static class createLecture_argsTupleSchemeFactory implements SchemeFactory { + public createLecture_argsTupleScheme getScheme() { + return new createLecture_argsTupleScheme(); } } - private static class updateLecture_argsTupleScheme extends TupleScheme { + private static class createLecture_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, createLecture_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); + optionals.set(1); } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); 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, createLecture_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); } 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); @@ -25766,28 +25316,28 @@ public class SatelliteServer { } - 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 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.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 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 createLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createLecture_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"), - NOT_FOUND((short)2, "notFound"), - SERVER_ERROR((short)3, "serverError"); + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -25802,11 +25352,11 @@ 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 + case 2: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -25851,101 +25401,101 @@ 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(updateLecture_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createLecture_result.class, metaDataMap); } - public updateLecture_result() { + public createLecture_result() { } - public updateLecture_result( + 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 updateLecture_result(updateLecture_result other) { + public createLecture_result(createLecture_result other) { + if (other.isSetSuccess()) { + 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 updateLecture_result deepCopy() { - return new updateLecture_result(this); + public createLecture_result deepCopy() { + return new createLecture_result(this); } @Override public void clear() { + this.success = null; this.authError = null; - this.notFound = null; this.serverError = null; } - public TAuthorizationException getAuthError() { - return this.authError; + public String getSuccess() { + return this.success; } - public updateLecture_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public createLecture_result setSuccess(String success) { + this.success = success; return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetSuccess() { + 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; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setAuthErrorIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.authError = null; + this.success = null; } } - public TNotFoundException getNotFound() { - return this.notFound; + public TAuthorizationException getAuthError() { + return this.authError; } - public updateLecture_result setNotFound(TNotFoundException notFound) { - this.notFound = notFound; + public createLecture_result setAuthError(TAuthorizationException authError) { + this.authError = authError; return this; } - public void unsetNotFound() { - this.notFound = null; + public void unsetAuthError() { + 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; + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; } - public void setNotFoundIsSet(boolean value) { + public void setAuthErrorIsSet(boolean value) { if (!value) { - this.notFound = null; + this.authError = null; } } @@ -25953,7 +25503,7 @@ public class SatelliteServer { return this.serverError; } - public updateLecture_result setServerError(TInternalServerError serverError) { + public createLecture_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -25975,19 +25525,19 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case AUTH_ERROR: + case SUCCESS: if (value == null) { - unsetAuthError(); + unsetSuccess(); } else { - setAuthError((TAuthorizationException)value); + setSuccess((String)value); } break; - case NOT_FOUND: + case AUTH_ERROR: if (value == null) { - unsetNotFound(); + unsetAuthError(); } else { - setNotFound((TNotFoundException)value); + setAuthError((TAuthorizationException)value); } break; @@ -26004,12 +25554,12 @@ 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(); @@ -26024,10 +25574,10 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -26038,15 +25588,24 @@ 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 createLecture_result) + return this.equals((createLecture_result)that); return false; } - public boolean equals(updateLecture_result that) { + public boolean equals(createLecture_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) { @@ -26056,15 +25615,6 @@ 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) { @@ -26083,29 +25633,29 @@ public class SatelliteServer { } @Override - public int compareTo(updateLecture_result other) { + public int compareTo(createLecture_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } @@ -26137,22 +25687,22 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateLecture_result("); + StringBuilder sb = new StringBuilder("createLecture_result("); boolean first = true; - sb.append("authError:"); - if (this.authError == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.authError); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("notFound:"); - if (this.notFound == null) { + sb.append("authError:"); + if (this.authError == null) { sb.append("null"); } else { - sb.append(this.notFound); + sb.append(this.authError); } first = false; if (!first) sb.append(", "); @@ -26188,15 +25738,15 @@ public class SatelliteServer { } } - private static class updateLecture_resultStandardSchemeFactory implements SchemeFactory { - public updateLecture_resultStandardScheme getScheme() { - return new updateLecture_resultStandardScheme(); + private static class createLecture_resultStandardSchemeFactory implements SchemeFactory { + public createLecture_resultStandardScheme getScheme() { + return new createLecture_resultStandardScheme(); } } - private static class updateLecture_resultStandardScheme extends StandardScheme { + private static class createLecture_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, createLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26206,25 +25756,24 @@ public class SatelliteServer { 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); + 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 2: // NOT_FOUND + case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // SERVER_ERROR + case 2: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); @@ -26244,20 +25793,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, createLecture_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); @@ -26269,53 +25818,52 @@ public class SatelliteServer { } - private static class updateLecture_resultTupleSchemeFactory implements SchemeFactory { - public updateLecture_resultTupleScheme getScheme() { - return new updateLecture_resultTupleScheme(); + private static class createLecture_resultTupleSchemeFactory implements SchemeFactory { + public createLecture_resultTupleScheme getScheme() { + return new createLecture_resultTupleScheme(); } } - private static class updateLecture_resultTupleScheme extends TupleScheme { + private static class createLecture_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, createLecture_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNotFound()) { + if (struct.isSetAuthError()) { optionals.set(1); } if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + 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, updateLecture_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)) { + 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); @@ -26326,22 +25874,28 @@ public class SatelliteServer { } - 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 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_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 getLectureList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureList_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"); + USER_TOKEN((short)1, "userToken"), + LECTURE_ID((short)2, "lectureId"), + LECTURE((short)3, "lecture"); private static final Map byName = new HashMap(); @@ -26358,6 +25912,10 @@ 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; } @@ -26403,43 +25961,59 @@ 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(getLectureList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_args.class, metaDataMap); } - public getLectureList_args() { + public updateLecture_args() { } - public getLectureList_args( - String userToken) + 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 getLectureList_args(getLectureList_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 getLectureList_args deepCopy() { - return new getLectureList_args(this); + public updateLecture_args deepCopy() { + return new updateLecture_args(this); } @Override public void clear() { this.userToken = null; + this.lectureId = null; + this.lecture = null; } public String getUserToken() { return this.userToken; } - public getLectureList_args setUserToken(String userToken) { + public updateLecture_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -26459,6 +26033,54 @@ 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: @@ -26469,6 +26091,22 @@ 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; + } } @@ -26477,6 +26115,12 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case LECTURE_ID: + return getLectureId(); + + case LECTURE: + return getLecture(); + } throw new IllegalStateException(); } @@ -26490,6 +26134,10 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case LECTURE_ID: + return isSetLectureId(); + case LECTURE: + return isSetLecture(); } throw new IllegalStateException(); } @@ -26498,12 +26146,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 updateLecture_args) + return this.equals((updateLecture_args)that); return false; } - public boolean equals(getLectureList_args that) { + public boolean equals(updateLecture_args that) { if (that == null) return false; @@ -26516,6 +26164,24 @@ 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) { + if (!(this_present_lecture && that_present_lecture)) + return false; + if (!this.lecture.equals(that.lecture)) + return false; + } + return true; } @@ -26525,7 +26191,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureList_args other) { + public int compareTo(updateLecture_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -26542,6 +26208,26 @@ 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; } @@ -26559,7 +26245,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_args("); + StringBuilder sb = new StringBuilder("updateLecture_args("); boolean first = true; sb.append("userToken:"); @@ -26569,6 +26255,22 @@ 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(); } @@ -26576,6 +26278,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 { @@ -26594,15 +26299,15 @@ public class SatelliteServer { } } - private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { - public getLectureList_argsStandardScheme getScheme() { - return new getLectureList_argsStandardScheme(); + private static class updateLecture_argsStandardSchemeFactory implements SchemeFactory { + public updateLecture_argsStandardScheme getScheme() { + return new updateLecture_argsStandardScheme(); } } - private static class getLectureList_argsStandardScheme extends StandardScheme { + private static class updateLecture_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, updateLecture_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26620,6 +26325,23 @@ 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); } @@ -26631,7 +26353,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, updateLecture_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -26640,68 +26362,99 @@ 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 getLectureList_argsTupleSchemeFactory implements SchemeFactory { - public getLectureList_argsTupleScheme getScheme() { - return new getLectureList_argsTupleScheme(); + private static class updateLecture_argsTupleSchemeFactory implements SchemeFactory { + public updateLecture_argsTupleScheme getScheme() { + return new updateLecture_argsTupleScheme(); } } - private static class getLectureList_argsTupleScheme extends TupleScheme { + private static class updateLecture_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, updateLecture_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); + } + 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, getLectureList_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(1); + 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); + } } } } - 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 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.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 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 updateLecture_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateLecture_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"), - SERVER_ERROR((short)2, "serverError"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -26716,11 +26469,11 @@ 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: // SERVER_ERROR + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -26765,121 +26518,101 @@ 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(getLectureList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLecture_result.class, metaDataMap); } - public getLectureList_result() { + public updateLecture_result() { } - public getLectureList_result( - List success, + 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 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; - } + 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 getLectureList_result deepCopy() { - return new getLectureList_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 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 TAuthorizationException getAuthError() { + return this.authError; } - public getLectureList_result setSuccess(List 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 getLectureList_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; } } @@ -26887,7 +26620,7 @@ public class SatelliteServer { return this.serverError; } - public getLectureList_result setServerError(TInternalServerError serverError) { + public updateLecture_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -26909,19 +26642,19 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case AUTH_ERROR: if (value == null) { - unsetSuccess(); + unsetAuthError(); } else { - setSuccess((List)value); + setAuthError((TAuthorizationException)value); } break; - case AUTH_ERROR: + case NOT_FOUND: if (value == null) { - unsetAuthError(); + unsetNotFound(); } else { - setAuthError((TAuthorizationException)value); + setNotFound((TNotFoundException)value); } break; @@ -26938,12 +26671,12 @@ 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(); @@ -26958,10 +26691,10 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -26972,24 +26705,15 @@ 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 updateLecture_result) + return this.equals((updateLecture_result)that); return false; } - public boolean equals(getLectureList_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) { @@ -26999,6 +26723,15 @@ 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) { @@ -27017,29 +26750,29 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureList_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 (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; } @@ -27071,22 +26804,22 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureList_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(", "); @@ -27122,15 +26855,15 @@ public class SatelliteServer { } } - private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { - public getLectureList_resultStandardScheme getScheme() { - return new getLectureList_resultStandardScheme(); + private static class updateLecture_resultStandardSchemeFactory implements SchemeFactory { + public updateLecture_resultStandardScheme getScheme() { + return new updateLecture_resultStandardScheme(); } } - private static class getLectureList_resultStandardScheme extends StandardScheme { + private static class updateLecture_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, updateLecture_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27140,25 +26873,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 _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); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -27168,7 +26882,16 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // SERVER_ERROR + 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); @@ -27188,27 +26911,20 @@ 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, updateLecture_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(); - } - 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); @@ -27220,68 +26936,53 @@ public class SatelliteServer { } - private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { - public getLectureList_resultTupleScheme getScheme() { - return new getLectureList_resultTupleScheme(); + private static class updateLecture_resultTupleSchemeFactory implements SchemeFactory { + public updateLecture_resultTupleScheme getScheme() { + return new updateLecture_resultTupleScheme(); } } - private static class getLectureList_resultTupleScheme extends TupleScheme { + private static class updateLecture_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, 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); } if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - { - 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, getLectureList_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(3); 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.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); @@ -27292,25 +26993,25 @@ public class SatelliteServer { } - 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 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 PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (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 getLectureList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_argsTupleSchemeFactory()); } public String userToken; // required - public String lectureId; // required + public int page; // 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"); + PAGE((short)2, "page"); private static final Map byName = new HashMap(); @@ -27327,8 +27028,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // LECTURE_ID - return LECTURE_ID; + case 2: // PAGE + return PAGE; default: return null; } @@ -27369,56 +27070,59 @@ public class SatelliteServer { } // isset id assignments + private static final int __PAGE_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.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.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureDetails_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLectureList_args.class, metaDataMap); } - public getLectureDetails_args() { + public getLectureList_args() { } - public getLectureDetails_args( + public getLectureList_args( String userToken, - String lectureId) + int page) { this(); this.userToken = userToken; - this.lectureId = lectureId; + this.page = page; + setPageIsSet(true); } /** * Performs a deep copy on other. */ - public getLectureDetails_args(getLectureDetails_args other) { + public getLectureList_args(getLectureList_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetLectureId()) { - this.lectureId = other.lectureId; - } + this.page = other.page; } - public getLectureDetails_args deepCopy() { - return new getLectureDetails_args(this); + public getLectureList_args deepCopy() { + return new getLectureList_args(this); } @Override public void clear() { this.userToken = null; - this.lectureId = null; + setPageIsSet(false); + this.page = 0; } public String getUserToken() { return this.userToken; } - public getLectureDetails_args setUserToken(String userToken) { + public getLectureList_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -27438,28 +27142,27 @@ public class SatelliteServer { } } - public String getLectureId() { - return this.lectureId; + public int getPage() { + return this.page; } - public getLectureDetails_args setLectureId(String lectureId) { - this.lectureId = lectureId; + public getLectureList_args setPage(int page) { + this.page = page; + setPageIsSet(true); return this; } - public void unsetLectureId() { - this.lectureId = null; + public void unsetPage() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); } - /** 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 page is set (has been assigned a value) and false otherwise */ + public boolean isSetPage() { + return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); } - public void setLectureIdIsSet(boolean value) { - if (!value) { - this.lectureId = null; - } + public void setPageIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -27472,11 +27175,11 @@ public class SatelliteServer { } break; - case LECTURE_ID: + case PAGE: if (value == null) { - unsetLectureId(); + unsetPage(); } else { - setLectureId((String)value); + setPage((Integer)value); } break; @@ -27488,8 +27191,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case LECTURE_ID: - return getLectureId(); + case PAGE: + return Integer.valueOf(getPage()); } throw new IllegalStateException(); @@ -27504,8 +27207,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case LECTURE_ID: - return isSetLectureId(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -27514,12 +27217,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 getLectureList_args) + return this.equals((getLectureList_args)that); return false; } - public boolean equals(getLectureDetails_args that) { + public boolean equals(getLectureList_args that) { if (that == null) return false; @@ -27532,12 +27235,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_page = true; + boolean that_present_page = true; + if (this_present_page || that_present_page) { + if (!(this_present_page && that_present_page)) return false; - if (!this.lectureId.equals(that.lectureId)) + if (this.page != that.page) return false; } @@ -27550,7 +27253,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureDetails_args other) { + public int compareTo(getLectureList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -27567,12 +27270,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); if (lastComparison != 0) { return lastComparison; } - if (isSetLectureId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureId, other.lectureId); + if (isSetPage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); if (lastComparison != 0) { return lastComparison; } @@ -27594,7 +27297,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureDetails_args("); + StringBuilder sb = new StringBuilder("getLectureList_args("); boolean first = true; sb.append("userToken:"); @@ -27605,12 +27308,8 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("lectureId:"); - if (this.lectureId == null) { - sb.append("null"); - } else { - sb.append(this.lectureId); - } + sb.append("page:"); + sb.append(this.page); first = false; sb.append(")"); return sb.toString(); @@ -27631,21 +27330,23 @@ 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 getLectureDetails_argsStandardSchemeFactory implements SchemeFactory { - public getLectureDetails_argsStandardScheme getScheme() { - return new getLectureDetails_argsStandardScheme(); + private static class getLectureList_argsStandardSchemeFactory implements SchemeFactory { + public getLectureList_argsStandardScheme getScheme() { + return new getLectureList_argsStandardScheme(); } } - private static class getLectureDetails_argsStandardScheme extends StandardScheme { + private static class getLectureList_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, getLectureList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27663,10 +27364,10 @@ 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); + case 2: // PAGE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27682,55 +27383,53 @@ 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, getLectureList_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.lectureId != null) { - oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); - oprot.writeString(struct.lectureId); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getLectureDetails_argsTupleSchemeFactory implements SchemeFactory { - public getLectureDetails_argsTupleScheme getScheme() { - return new getLectureDetails_argsTupleScheme(); + private static class getLectureList_argsTupleSchemeFactory implements SchemeFactory { + public getLectureList_argsTupleScheme getScheme() { + return new getLectureList_argsTupleScheme(); } } - private static class getLectureDetails_argsTupleScheme extends TupleScheme { + private static class getLectureList_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, 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()) { + if (struct.isSetPage()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetLectureId()) { - oprot.writeString(struct.lectureId); + if (struct.isSetPage()) { + oprot.writeI32(struct.page); } } @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, getLectureList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -27738,39 +27437,36 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.lectureId = iprot.readString(); - struct.setLectureIdIsSet(true); + struct.page = iprot.readI32(); + struct.setPageIsSet(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 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.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 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 getLectureDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLectureDetails_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getLectureList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureList_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"), - SERVER_ERROR((short)3, "serverError"); + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -27789,9 +27485,7 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // NOT_FOUND - return NOT_FOUND; - case 3: // SERVER_ERROR + case 2: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -27837,68 +27531,80 @@ 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(getLectureList_result.class, metaDataMap); } - public getLectureDetails_result() { + public getLectureList_result() { } - public getLectureDetails_result( - LectureRead success, + public getLectureList_result( + List 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 getLectureDetails_result(getLectureDetails_result other) { + public getLectureList_result(getLectureList_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); } - 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 getLectureList_result deepCopy() { + return new getLectureList_result(this); } @Override public void clear() { 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 getLectureList_result setSuccess(List success) { this.success = success; return this; } @@ -27922,7 +27628,7 @@ public class SatelliteServer { return this.authError; } - public getLectureDetails_result setAuthError(TAuthorizationException authError) { + public getLectureList_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -27942,35 +27648,11 @@ 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) { + public getLectureList_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -27996,7 +27678,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((LectureRead)value); + setSuccess((List)value); } break; @@ -28008,14 +27690,6 @@ public class SatelliteServer { } break; - case NOT_FOUND: - if (value == null) { - unsetNotFound(); - } else { - setNotFound((TNotFoundException)value); - } - break; - case SERVER_ERROR: if (value == null) { unsetServerError(); @@ -28035,9 +27709,6 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); - case NOT_FOUND: - return getNotFound(); - case SERVER_ERROR: return getServerError(); @@ -28056,8 +27727,6 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -28068,12 +27737,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 getLectureList_result) + return this.equals((getLectureList_result)that); return false; } - public boolean equals(getLectureDetails_result that) { + public boolean equals(getLectureList_result that) { if (that == null) return false; @@ -28095,15 +27764,6 @@ 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) { @@ -28122,7 +27782,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLectureDetails_result other) { + public int compareTo(getLectureList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28149,16 +27809,6 @@ 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; @@ -28186,7 +27836,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLectureDetails_result("); + StringBuilder sb = new StringBuilder("getLectureList_result("); boolean first = true; sb.append("success:"); @@ -28205,14 +27855,6 @@ public class SatelliteServer { } 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"); @@ -28227,9 +27869,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 { @@ -28248,15 +27887,15 @@ public class SatelliteServer { } } - private static class getLectureDetails_resultStandardSchemeFactory implements SchemeFactory { - public getLectureDetails_resultStandardScheme getScheme() { - return new getLectureDetails_resultStandardScheme(); + private static class getLectureList_resultStandardSchemeFactory implements SchemeFactory { + public getLectureList_resultStandardScheme getScheme() { + return new getLectureList_resultStandardScheme(); } } - private static class getLectureDetails_resultStandardScheme extends StandardScheme { + private static class getLectureList_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, getLectureList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28267,9 +27906,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 _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); @@ -28284,16 +27933,7 @@ 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 + case 2: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); @@ -28313,13 +27953,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, getLectureList_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 _iter185 : struct.success) + { + _iter185.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -28327,11 +27974,6 @@ 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); @@ -28343,16 +27985,16 @@ public class SatelliteServer { } - private static class getLectureDetails_resultTupleSchemeFactory implements SchemeFactory { - public getLectureDetails_resultTupleScheme getScheme() { - return new getLectureDetails_resultTupleScheme(); + private static class getLectureList_resultTupleSchemeFactory implements SchemeFactory { + public getLectureList_resultTupleScheme getScheme() { + return new getLectureList_resultTupleScheme(); } } - private static class getLectureDetails_resultTupleScheme extends TupleScheme { + private static class getLectureList_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, getLectureList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -28361,34 +28003,43 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetNotFound()) { - optionals.set(2); - } if (struct.isSetServerError()) { - optionals.set(3); + optionals.set(2); } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + 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, getLectureDetails_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(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new LectureRead(); - struct.success.read(iprot); + { + 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)) { @@ -28397,11 +28048,6 @@ public class SatelliteServer { 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); @@ -28411,25 +28057,25 @@ public class SatelliteServer { } - 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 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 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 getLectureDetails_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getLectureDetails_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(); @@ -28446,8 +28092,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; } @@ -28493,51 +28139,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(getLectureDetails_args.class, metaDataMap); } - public getLecturesByImageVersion_args() { + public getLectureDetails_args() { } - public getLecturesByImageVersion_args( + public getLectureDetails_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 getLectureDetails_args(getLectureDetails_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 getLectureDetails_args deepCopy() { + return new getLectureDetails_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 getLectureDetails_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -28557,27 +28203,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 getLectureDetails_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; } } @@ -28591,11 +28237,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; @@ -28607,8 +28253,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case LECTURE_ID: + return getLectureId(); } throw new IllegalStateException(); @@ -28623,8 +28269,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(); } @@ -28633,12 +28279,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 getLectureDetails_args) + return this.equals((getLectureDetails_args)that); return false; } - public boolean equals(getLecturesByImageVersion_args that) { + public boolean equals(getLectureDetails_args that) { if (that == null) return false; @@ -28651,12 +28297,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; } @@ -28669,7 +28315,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLecturesByImageVersion_args other) { + public int compareTo(getLectureDetails_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28686,12 +28332,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; } @@ -28713,7 +28359,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLecturesByImageVersion_args("); + StringBuilder sb = new StringBuilder("getLectureDetails_args("); boolean first = true; sb.append("userToken:"); @@ -28724,11 +28370,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(")"); @@ -28756,15 +28402,15 @@ public class SatelliteServer { } } - private static class getLecturesByImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_argsStandardScheme getScheme() { - return new getLecturesByImageVersion_argsStandardScheme(); + private static class getLectureDetails_argsStandardSchemeFactory implements SchemeFactory { + public getLectureDetails_argsStandardScheme getScheme() { + return new getLectureDetails_argsStandardScheme(); } } - private static class getLecturesByImageVersion_argsStandardScheme extends StandardScheme { + private static class getLectureDetails_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, getLectureDetails_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28782,10 +28428,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); } @@ -28801,7 +28447,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, getLectureDetails_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28810,9 +28456,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(); @@ -28821,35 +28467,35 @@ public class SatelliteServer { } - private static class getLecturesByImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_argsTupleScheme getScheme() { - return new getLecturesByImageVersion_argsTupleScheme(); + private static class getLectureDetails_argsTupleSchemeFactory implements SchemeFactory { + public getLectureDetails_argsTupleScheme getScheme() { + return new getLectureDetails_argsTupleScheme(); } } - private static class getLecturesByImageVersion_argsTupleScheme extends TupleScheme { + private static class getLectureDetails_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, getLectureDetails_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, getLectureDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -28857,29 +28503,29 @@ 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 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 getLecturesByImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getLecturesByImageVersion_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 @@ -28956,8 +28602,7 @@ 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, @@ -28965,14 +28610,14 @@ public class SatelliteServer { 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(getLectureDetails_result.class, metaDataMap); } - public getLecturesByImageVersion_result() { + public getLectureDetails_result() { } - public getLecturesByImageVersion_result( - List success, + public getLectureDetails_result( + LectureRead success, TAuthorizationException authError, TNotFoundException notFound, TInternalServerError serverError) @@ -28987,13 +28632,9 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getLecturesByImageVersion_result(getLecturesByImageVersion_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); @@ -29006,8 +28647,8 @@ public class SatelliteServer { } } - public getLecturesByImageVersion_result deepCopy() { - return new getLecturesByImageVersion_result(this); + public getLectureDetails_result deepCopy() { + return new getLectureDetails_result(this); } @Override @@ -29018,26 +28659,11 @@ public class SatelliteServer { 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 getLecturesByImageVersion_result setSuccess(List success) { + public getLectureDetails_result setSuccess(LectureRead success) { this.success = success; return this; } @@ -29061,7 +28687,7 @@ public class SatelliteServer { return this.authError; } - public getLecturesByImageVersion_result setAuthError(TAuthorizationException authError) { + public getLectureDetails_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -29085,7 +28711,7 @@ public class SatelliteServer { return this.notFound; } - public getLecturesByImageVersion_result setNotFound(TNotFoundException notFound) { + public getLectureDetails_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -29109,7 +28735,7 @@ public class SatelliteServer { return this.serverError; } - public getLecturesByImageVersion_result setServerError(TInternalServerError serverError) { + public getLectureDetails_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -29135,7 +28761,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((LectureRead)value); } break; @@ -29207,12 +28833,12 @@ 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 getLectureDetails_result) + return this.equals((getLectureDetails_result)that); return false; } - public boolean equals(getLecturesByImageVersion_result that) { + public boolean equals(getLectureDetails_result that) { if (that == null) return false; @@ -29261,7 +28887,7 @@ public class SatelliteServer { } @Override - public int compareTo(getLecturesByImageVersion_result other) { + public int compareTo(getLectureDetails_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -29325,7 +28951,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getLecturesByImageVersion_result("); + StringBuilder sb = new StringBuilder("getLectureDetails_result("); boolean first = true; sb.append("success:"); @@ -29366,6 +28992,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 { @@ -29384,15 +29013,15 @@ public class SatelliteServer { } } - private static class getLecturesByImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_resultStandardScheme getScheme() { - return new getLecturesByImageVersion_resultStandardScheme(); + private static class getLectureDetails_resultStandardSchemeFactory implements SchemeFactory { + public getLectureDetails_resultStandardScheme getScheme() { + return new getLectureDetails_resultStandardScheme(); } } - private static class getLecturesByImageVersion_resultStandardScheme extends StandardScheme { + private static class getLectureDetails_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, getLectureDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29403,19 +29032,9 @@ public class SatelliteServer { } 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(); - } + 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); @@ -29459,20 +29078,13 @@ 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, 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 _iter193 : struct.success) - { - _iter193.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -29496,16 +29108,16 @@ public class SatelliteServer { } - private static class getLecturesByImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public getLecturesByImageVersion_resultTupleScheme getScheme() { - return new getLecturesByImageVersion_resultTupleScheme(); + private static class getLectureDetails_resultTupleSchemeFactory implements SchemeFactory { + public getLectureDetails_resultTupleScheme getScheme() { + return new getLectureDetails_resultTupleScheme(); } } - private static class getLecturesByImageVersion_resultTupleScheme extends TupleScheme { + private static class getLectureDetails_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, getLectureDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -29522,13 +29134,7 @@ public class SatelliteServer { } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (LectureSummary _iter194 : struct.success) - { - _iter194.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetAuthError()) { struct.authError.write(oprot); @@ -29542,21 +29148,12 @@ public class SatelliteServer { } @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, getLectureDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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.success = new LectureRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -31077,16 +30674,16 @@ public class SatelliteServer { 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) + org.apache.thrift.protocol.TMap _map190 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map190.size); + for (int _i191 = 0; _i191 < _map190.size; ++_i191) { - String _key200; - LecturePermissions _val201; - _key200 = iprot.readString(); - _val201 = new LecturePermissions(); - _val201.read(iprot); - struct.permissions.put(_key200, _val201); + String _key192; + LecturePermissions _val193; + _key192 = iprot.readString(); + _val193 = new LecturePermissions(); + _val193.read(iprot); + struct.permissions.put(_key192, _val193); } iprot.readMapEnd(); } @@ -31124,10 +30721,10 @@ public class SatelliteServer { 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()) + for (Map.Entry _iter194 : struct.permissions.entrySet()) { - oprot.writeString(_iter202.getKey()); - _iter202.getValue().write(oprot); + oprot.writeString(_iter194.getKey()); + _iter194.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -31170,10 +30767,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter203 : struct.permissions.entrySet()) + for (Map.Entry _iter195 : struct.permissions.entrySet()) { - oprot.writeString(_iter203.getKey()); - _iter203.getValue().write(oprot); + oprot.writeString(_iter195.getKey()); + _iter195.getValue().write(oprot); } } } @@ -31193,16 +30790,16 @@ public class SatelliteServer { } 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) + org.apache.thrift.protocol.TMap _map196 = 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*_map196.size); + for (int _i197 = 0; _i197 < _map196.size; ++_i197) { - String _key206; - LecturePermissions _val207; - _key206 = iprot.readString(); - _val207 = new LecturePermissions(); - _val207.read(iprot); - struct.permissions.put(_key206, _val207); + String _key198; + LecturePermissions _val199; + _key198 = iprot.readString(); + _val199 = new LecturePermissions(); + _val199.read(iprot); + struct.permissions.put(_key198, _val199); } } struct.setPermissionsIsSet(true); @@ -32771,16 +32368,16 @@ public class SatelliteServer { 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) + org.apache.thrift.protocol.TMap _map200 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map200.size); + for (int _i201 = 0; _i201 < _map200.size; ++_i201) { - String _key210; - LecturePermissions _val211; - _key210 = iprot.readString(); - _val211 = new LecturePermissions(); - _val211.read(iprot); - struct.success.put(_key210, _val211); + String _key202; + LecturePermissions _val203; + _key202 = iprot.readString(); + _val203 = new LecturePermissions(); + _val203.read(iprot); + struct.success.put(_key202, _val203); } iprot.readMapEnd(); } @@ -32835,10 +32432,10 @@ public class SatelliteServer { 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()) + for (Map.Entry _iter204 : struct.success.entrySet()) { - oprot.writeString(_iter212.getKey()); - _iter212.getValue().write(oprot); + oprot.writeString(_iter204.getKey()); + _iter204.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -32893,10 +32490,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter213 : struct.success.entrySet()) + for (Map.Entry _iter205 : struct.success.entrySet()) { - oprot.writeString(_iter213.getKey()); - _iter213.getValue().write(oprot); + oprot.writeString(_iter205.getKey()); + _iter205.getValue().write(oprot); } } } @@ -32917,16 +32514,16 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(4); 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) + org.apache.thrift.protocol.TMap _map206 = 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*_map206.size); + for (int _i207 = 0; _i207 < _map206.size; ++_i207) { - String _key216; - LecturePermissions _val217; - _key216 = iprot.readString(); - _val217 = new LecturePermissions(); - _val217.read(iprot); - struct.success.put(_key216, _val217); + String _key208; + LecturePermissions _val209; + _key208 = iprot.readString(); + _val209 = new LecturePermissions(); + _val209.read(iprot); + struct.success.put(_key208, _val209); } } struct.setSuccessIsSet(true); diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java b/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java index 668d513..8e4486c 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ShareMode.java @@ -14,7 +14,8 @@ import org.apache.thrift.TEnum; public enum ShareMode implements org.apache.thrift.TEnum { LOCAL(0), PUBLISH(1), - DOWNLOAD(2); + DOWNLOAD(2), + FROZEN(3); private final int value; @@ -41,6 +42,8 @@ public enum ShareMode implements org.apache.thrift.TEnum { return PUBLISH; case 2: return DOWNLOAD; + case 3: + return FROZEN; default: return null; } -- cgit v1.2.3-55-g7522