From 9569e8c98cf650de74ccd9f2a13a82041f76b218 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 19 Aug 2015 17:18:30 +0200 Subject: Extend ThriftAPI: delete imaghe base, update hash list for running upload --- .../openslx/bwlp/thrift/iface/SatelliteServer.java | 10319 +++++++++++-------- 1 file changed, 6251 insertions(+), 4068 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java index eeafb1d..f3f80ab 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -42,6 +42,8 @@ public class SatelliteServer { public TransferInformation requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription) throws TTransferRejectedException, TAuthorizationException, TInternalServerError, TNotFoundException, org.apache.thrift.TException; + public void updateBlockHashes(String uploadToken, List blockHashes) throws TInvalidTokenException, org.apache.thrift.TException; + public void cancelUpload(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; public TransferStatus queryUploadStatus(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException; @@ -78,6 +80,8 @@ public class SatelliteServer { public void deleteImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; + public void deleteImageBase(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; + public void writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; public Map getImagePermissions(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException; @@ -112,6 +116,8 @@ public class SatelliteServer { public void requestImageVersionUpload(String userToken, String imageBaseId, long fileSize, List blockHashes, ByteBuffer machineDescription, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void updateBlockHashes(String uploadToken, 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; public void queryUploadStatus(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -148,6 +154,8 @@ public class SatelliteServer { public void deleteImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void deleteImageBase(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void writeImagePermissions(String userToken, String imageBaseId, Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getImagePermissions(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -277,6 +285,30 @@ public class SatelliteServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestImageVersionUpload failed: unknown result"); } + public void updateBlockHashes(String uploadToken, List blockHashes) throws TInvalidTokenException, org.apache.thrift.TException + { + send_updateBlockHashes(uploadToken, blockHashes); + recv_updateBlockHashes(); + } + + public void send_updateBlockHashes(String uploadToken, List blockHashes) throws org.apache.thrift.TException + { + updateBlockHashes_args args = new updateBlockHashes_args(); + args.setUploadToken(uploadToken); + args.setBlockHashes(blockHashes); + sendBase("updateBlockHashes", args); + } + + public void recv_updateBlockHashes() throws TInvalidTokenException, org.apache.thrift.TException + { + updateBlockHashes_result result = new updateBlockHashes_result(); + receiveBase(result, "updateBlockHashes"); + if (result.ex1 != null) { + throw result.ex1; + } + return; + } + public void cancelUpload(String uploadToken) throws TInvalidTokenException, org.apache.thrift.TException { send_cancelUpload(uploadToken); @@ -784,6 +816,36 @@ public class SatelliteServer { return; } + public void deleteImageBase(String userToken, String imageBaseId) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException + { + send_deleteImageBase(userToken, imageBaseId); + recv_deleteImageBase(); + } + + public void send_deleteImageBase(String userToken, String imageBaseId) throws org.apache.thrift.TException + { + deleteImageBase_args args = new deleteImageBase_args(); + args.setUserToken(userToken); + args.setImageBaseId(imageBaseId); + sendBase("deleteImageBase", args); + } + + public void recv_deleteImageBase() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException + { + deleteImageBase_result result = new deleteImageBase_result(); + receiveBase(result, "deleteImageBase"); + if (result.authError != null) { + throw result.authError; + } + if (result.notFound != null) { + throw result.notFound; + } + if (result.serverError != null) { + throw result.serverError; + } + return; + } + public void writeImagePermissions(String userToken, String imageBaseId, Map permissions) throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { send_writeImagePermissions(userToken, imageBaseId, permissions); @@ -1288,6 +1350,41 @@ public class SatelliteServer { } } + public void updateBlockHashes(String uploadToken, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + updateBlockHashes_call method_call = new updateBlockHashes_call(uploadToken, blockHashes, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class updateBlockHashes_call extends org.apache.thrift.async.TAsyncMethodCall { + private String uploadToken; + private List blockHashes; + public updateBlockHashes_call(String uploadToken, List blockHashes, 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.uploadToken = uploadToken; + this.blockHashes = blockHashes; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateBlockHashes", org.apache.thrift.protocol.TMessageType.CALL, 0)); + updateBlockHashes_args args = new updateBlockHashes_args(); + args.setUploadToken(uploadToken); + args.setBlockHashes(blockHashes); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws TInvalidTokenException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + (new Client(prot)).recv_updateBlockHashes(); + } + } + public void cancelUpload(String uploadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cancelUpload_call method_call = new cancelUpload_call(uploadToken, resultHandler, this, ___protocolFactory, ___transport); @@ -1891,6 +1988,41 @@ public class SatelliteServer { } } + public void deleteImageBase(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + deleteImageBase_call method_call = new deleteImageBase_call(userToken, imageBaseId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class deleteImageBase_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userToken; + private String imageBaseId; + public deleteImageBase_call(String userToken, String imageBaseId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userToken = userToken; + this.imageBaseId = imageBaseId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteImageBase", org.apache.thrift.protocol.TMessageType.CALL, 0)); + deleteImageBase_args args = new deleteImageBase_args(); + args.setUserToken(userToken); + args.setImageBaseId(imageBaseId); + args.write(prot); + prot.writeMessageEnd(); + } + + public void getResult() throws TAuthorizationException, TNotFoundException, TInternalServerError, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + (new Client(prot)).recv_deleteImageBase(); + } + } + public void writeImagePermissions(String userToken, String imageBaseId, Map permissions, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); writeImagePermissions_call method_call = new writeImagePermissions_call(userToken, imageBaseId, permissions, resultHandler, this, ___protocolFactory, ___transport); @@ -2345,6 +2477,7 @@ public class SatelliteServer { processMap.put("getVersion", new getVersion()); processMap.put("getConfiguration", new getConfiguration()); processMap.put("requestImageVersionUpload", new requestImageVersionUpload()); + processMap.put("updateBlockHashes", new updateBlockHashes()); processMap.put("cancelUpload", new cancelUpload()); processMap.put("queryUploadStatus", new queryUploadStatus()); processMap.put("requestDownload", new requestDownload()); @@ -2363,6 +2496,7 @@ public class SatelliteServer { processMap.put("updateImageBase", new updateImageBase()); processMap.put("updateImageVersion", new updateImageVersion()); processMap.put("deleteImageVersion", new deleteImageVersion()); + processMap.put("deleteImageBase", new deleteImageBase()); processMap.put("writeImagePermissions", new writeImagePermissions()); processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); @@ -2449,6 +2583,30 @@ public class SatelliteServer { } } + public static class updateBlockHashes extends org.apache.thrift.ProcessFunction { + public updateBlockHashes() { + super("updateBlockHashes"); + } + + public updateBlockHashes_args getEmptyArgsInstance() { + return new updateBlockHashes_args(); + } + + protected boolean isOneway() { + return false; + } + + public updateBlockHashes_result getResult(I iface, updateBlockHashes_args args) throws org.apache.thrift.TException { + updateBlockHashes_result result = new updateBlockHashes_result(); + try { + iface.updateBlockHashes(args.uploadToken, args.blockHashes); + } catch (TInvalidTokenException ex1) { + result.ex1 = ex1; + } + return result; + } + } + public static class cancelUpload extends org.apache.thrift.ProcessFunction { public cancelUpload() { super("cancelUpload"); @@ -2907,6 +3065,34 @@ public class SatelliteServer { } } + public static class deleteImageBase extends org.apache.thrift.ProcessFunction { + public deleteImageBase() { + super("deleteImageBase"); + } + + public deleteImageBase_args getEmptyArgsInstance() { + return new deleteImageBase_args(); + } + + protected boolean isOneway() { + return false; + } + + public deleteImageBase_result getResult(I iface, deleteImageBase_args args) throws org.apache.thrift.TException { + deleteImageBase_result result = new deleteImageBase_result(); + try { + iface.deleteImageBase(args.userToken, args.imageBaseId); + } catch (TAuthorizationException authError) { + result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TInternalServerError serverError) { + result.serverError = serverError; + } + return result; + } + } + public static class writeImagePermissions extends org.apache.thrift.ProcessFunction { public writeImagePermissions() { super("writeImagePermissions"); @@ -3261,6 +3447,7 @@ public class SatelliteServer { processMap.put("getVersion", new getVersion()); processMap.put("getConfiguration", new getConfiguration()); processMap.put("requestImageVersionUpload", new requestImageVersionUpload()); + processMap.put("updateBlockHashes", new updateBlockHashes()); processMap.put("cancelUpload", new cancelUpload()); processMap.put("queryUploadStatus", new queryUploadStatus()); processMap.put("requestDownload", new requestDownload()); @@ -3279,6 +3466,7 @@ public class SatelliteServer { processMap.put("updateImageBase", new updateImageBase()); processMap.put("updateImageVersion", new updateImageVersion()); processMap.put("deleteImageVersion", new deleteImageVersion()); + processMap.put("deleteImageBase", new deleteImageBase()); processMap.put("writeImagePermissions", new writeImagePermissions()); processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); @@ -3469,6 +3657,62 @@ public class SatelliteServer { } } + public static class updateBlockHashes extends org.apache.thrift.AsyncProcessFunction { + public updateBlockHashes() { + super("updateBlockHashes"); + } + + public updateBlockHashes_args getEmptyArgsInstance() { + return new updateBlockHashes_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateBlockHashes_result result = new updateBlockHashes_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + updateBlockHashes_result result = new updateBlockHashes_result(); + if (e instanceof TInvalidTokenException) { + result.ex1 = (TInvalidTokenException) e; + result.setEx1IsSet(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, updateBlockHashes_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateBlockHashes(args.uploadToken, args.blockHashes,resultHandler); + } + } + public static class cancelUpload extends org.apache.thrift.AsyncProcessFunction { public cancelUpload() { super("cancelUpload"); @@ -4569,20 +4813,20 @@ public class SatelliteServer { } } - public static class writeImagePermissions extends org.apache.thrift.AsyncProcessFunction { - public writeImagePermissions() { - super("writeImagePermissions"); + public static class deleteImageBase extends org.apache.thrift.AsyncProcessFunction { + public deleteImageBase() { + super("deleteImageBase"); } - public writeImagePermissions_args getEmptyArgsInstance() { - return new writeImagePermissions_args(); + public deleteImageBase_args getEmptyArgsInstance() { + return new deleteImageBase_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { - writeImagePermissions_result result = new writeImagePermissions_result(); + deleteImageBase_result result = new deleteImageBase_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4594,7 +4838,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - writeImagePermissions_result result = new writeImagePermissions_result(); + deleteImageBase_result result = new deleteImageBase_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -4630,26 +4874,25 @@ public class SatelliteServer { return false; } - public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.writeImagePermissions(args.userToken, args.imageBaseId, args.permissions,resultHandler); + public void start(I iface, deleteImageBase_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteImageBase(args.userToken, args.imageBaseId,resultHandler); } } - public static class getImagePermissions extends org.apache.thrift.AsyncProcessFunction> { - public getImagePermissions() { - super("getImagePermissions"); + public static class writeImagePermissions extends org.apache.thrift.AsyncProcessFunction { + public writeImagePermissions() { + super("writeImagePermissions"); } - public getImagePermissions_args getEmptyArgsInstance() { - return new getImagePermissions_args(); + public writeImagePermissions_args getEmptyArgsInstance() { + return new writeImagePermissions_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getImagePermissions_result result = new getImagePermissions_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + writeImagePermissions_result result = new writeImagePermissions_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4661,7 +4904,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getImagePermissions_result result = new getImagePermissions_result(); + writeImagePermissions_result result = new writeImagePermissions_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -4697,25 +4940,26 @@ public class SatelliteServer { return false; } - public void start(I iface, getImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getImagePermissions(args.userToken, args.imageBaseId,resultHandler); + public void start(I iface, writeImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.writeImagePermissions(args.userToken, args.imageBaseId, args.permissions,resultHandler); } } - public static class setImageOwner extends org.apache.thrift.AsyncProcessFunction { - public setImageOwner() { - super("setImageOwner"); + public static class getImagePermissions extends org.apache.thrift.AsyncProcessFunction> { + public getImagePermissions() { + super("getImagePermissions"); } - public setImageOwner_args getEmptyArgsInstance() { - return new setImageOwner_args(); + public getImagePermissions_args getEmptyArgsInstance() { + return new getImagePermissions_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - setImageOwner_result result = new setImageOwner_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getImagePermissions_result result = new getImagePermissions_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4727,7 +4971,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - setImageOwner_result result = new setImageOwner_result(); + getImagePermissions_result result = new getImagePermissions_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -4763,25 +5007,25 @@ public class SatelliteServer { return false; } - public void start(I iface, setImageOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.setImageOwner(args.userToken, args.imageBaseId, args.newOwnerId,resultHandler); + public void start(I iface, getImagePermissions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getImagePermissions(args.userToken, args.imageBaseId,resultHandler); } } - public static class setImageVersionExpiry extends org.apache.thrift.AsyncProcessFunction { - public setImageVersionExpiry() { - super("setImageVersionExpiry"); + public static class setImageOwner extends org.apache.thrift.AsyncProcessFunction { + public setImageOwner() { + super("setImageOwner"); } - public setImageVersionExpiry_args getEmptyArgsInstance() { - return new setImageVersionExpiry_args(); + public setImageOwner_args getEmptyArgsInstance() { + return new setImageOwner_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { - setImageVersionExpiry_result result = new setImageVersionExpiry_result(); + setImageOwner_result result = new setImageOwner_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -4793,7 +5037,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - setImageVersionExpiry_result result = new setImageVersionExpiry_result(); + setImageOwner_result result = new setImageOwner_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -4808,11 +5052,77 @@ public class SatelliteServer { result.serverError = (TInternalServerError) e; result.setServerErrorIsSet(true); msg = result; - } - else if (e instanceof TInvalidDateParam) { - result.dateError = (TInvalidDateParam) e; - result.setDateErrorIsSet(true); - msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, setImageOwner_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.setImageOwner(args.userToken, args.imageBaseId, args.newOwnerId,resultHandler); + } + } + + public static class setImageVersionExpiry extends org.apache.thrift.AsyncProcessFunction { + public setImageVersionExpiry() { + super("setImageVersionExpiry"); + } + + public setImageVersionExpiry_args getEmptyArgsInstance() { + return new setImageVersionExpiry_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + setImageVersionExpiry_result result = new setImageVersionExpiry_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + setImageVersionExpiry_result result = new setImageVersionExpiry_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 if (e instanceof TInvalidDateParam) { + result.dateError = (TInvalidDateParam) e; + result.setDateErrorIsSet(true); + msg = result; } else { @@ -8157,22 +8467,25 @@ public class SatelliteServer { } - 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 updateBlockHashes_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("updateBlockHashes_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 BLOCK_HASHES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockHashes", org.apache.thrift.protocol.TType.LIST, (short)2); 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 updateBlockHashes_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateBlockHashes_argsTupleSchemeFactory()); } public String uploadToken; // 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"); + UPLOAD_TOKEN((short)1, "uploadToken"), + BLOCK_HASHES((short)2, "blockHashes"); private static final Map byName = new HashMap(); @@ -8189,6 +8502,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // UPLOAD_TOKEN return UPLOAD_TOKEN; + case 2: // BLOCK_HASHES + return BLOCK_HASHES; default: return null; } @@ -8234,43 +8549,53 @@ 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.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"))); + 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(updateBlockHashes_args.class, metaDataMap); } - public cancelUpload_args() { + public updateBlockHashes_args() { } - public cancelUpload_args( - String uploadToken) + public updateBlockHashes_args( + String uploadToken, + List blockHashes) { this(); this.uploadToken = uploadToken; + this.blockHashes = blockHashes; } /** * Performs a deep copy on other. */ - public cancelUpload_args(cancelUpload_args other) { + public updateBlockHashes_args(updateBlockHashes_args other) { if (other.isSetUploadToken()) { this.uploadToken = other.uploadToken; } + if (other.isSetBlockHashes()) { + List __this__blockHashes = new ArrayList(other.blockHashes); + this.blockHashes = __this__blockHashes; + } } - public cancelUpload_args deepCopy() { - return new cancelUpload_args(this); + public updateBlockHashes_args deepCopy() { + return new updateBlockHashes_args(this); } @Override public void clear() { this.uploadToken = null; + this.blockHashes = null; } public String getUploadToken() { return this.uploadToken; } - public cancelUpload_args setUploadToken(String uploadToken) { + public updateBlockHashes_args setUploadToken(String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -8290,6 +8615,45 @@ public class SatelliteServer { } } + 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 updateBlockHashes_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: @@ -8300,6 +8664,14 @@ public class SatelliteServer { } break; + case BLOCK_HASHES: + if (value == null) { + unsetBlockHashes(); + } else { + setBlockHashes((List)value); + } + break; + } } @@ -8308,6 +8680,9 @@ public class SatelliteServer { case UPLOAD_TOKEN: return getUploadToken(); + case BLOCK_HASHES: + return getBlockHashes(); + } throw new IllegalStateException(); } @@ -8321,6 +8696,8 @@ public class SatelliteServer { switch (field) { case UPLOAD_TOKEN: return isSetUploadToken(); + case BLOCK_HASHES: + return isSetBlockHashes(); } throw new IllegalStateException(); } @@ -8329,12 +8706,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof cancelUpload_args) - return this.equals((cancelUpload_args)that); + if (that instanceof updateBlockHashes_args) + return this.equals((updateBlockHashes_args)that); return false; } - public boolean equals(cancelUpload_args that) { + public boolean equals(updateBlockHashes_args that) { if (that == null) return false; @@ -8347,6 +8724,15 @@ public class SatelliteServer { 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; } @@ -8356,7 +8742,7 @@ public class SatelliteServer { } @Override - public int compareTo(cancelUpload_args other) { + public int compareTo(updateBlockHashes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -8373,6 +8759,16 @@ public class SatelliteServer { 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; } @@ -8390,7 +8786,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("cancelUpload_args("); + StringBuilder sb = new StringBuilder("updateBlockHashes_args("); boolean first = true; sb.append("uploadToken:"); @@ -8400,6 +8796,14 @@ public class SatelliteServer { sb.append(this.uploadToken); } 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(")"); return sb.toString(); } @@ -8425,15 +8829,15 @@ public class SatelliteServer { } } - private static class cancelUpload_argsStandardSchemeFactory implements SchemeFactory { - public cancelUpload_argsStandardScheme getScheme() { - return new cancelUpload_argsStandardScheme(); + private static class updateBlockHashes_argsStandardSchemeFactory implements SchemeFactory { + public updateBlockHashes_argsStandardScheme getScheme() { + return new updateBlockHashes_argsStandardScheme(); } } - private static class cancelUpload_argsStandardScheme extends StandardScheme { + private static class updateBlockHashes_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, updateBlockHashes_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8451,6 +8855,24 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // BLOCK_HASHES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list146.size); + for (int _i147 = 0; _i147 < _list146.size; ++_i147) + { + ByteBuffer _elem148; + _elem148 = iprot.readBinary(); + struct.blockHashes.add(_elem148); + } + 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); } @@ -8462,7 +8884,7 @@ 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, updateBlockHashes_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8471,55 +8893,92 @@ public class SatelliteServer { oprot.writeString(struct.uploadToken); 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 _iter149 : struct.blockHashes) + { + oprot.writeBinary(_iter149); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class cancelUpload_argsTupleSchemeFactory implements SchemeFactory { - public cancelUpload_argsTupleScheme getScheme() { - return new cancelUpload_argsTupleScheme(); + private static class updateBlockHashes_argsTupleSchemeFactory implements SchemeFactory { + public updateBlockHashes_argsTupleScheme getScheme() { + return new updateBlockHashes_argsTupleScheme(); } } - private static class cancelUpload_argsTupleScheme extends TupleScheme { + private static class updateBlockHashes_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, updateBlockHashes_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUploadToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetBlockHashes()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUploadToken()) { oprot.writeString(struct.uploadToken); } + if (struct.isSetBlockHashes()) { + { + oprot.writeI32(struct.blockHashes.size()); + for (ByteBuffer _iter150 : struct.blockHashes) + { + oprot.writeBinary(_iter150); + } + } + } } @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, updateBlockHashes_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.uploadToken = iprot.readString(); struct.setUploadTokenIsSet(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.blockHashes = new ArrayList(_list151.size); + for (int _i152 = 0; _i152 < _list151.size; ++_i152) + { + ByteBuffer _elem153; + _elem153 = iprot.readBinary(); + struct.blockHashes.add(_elem153); + } + } + 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 updateBlockHashes_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("updateBlockHashes_result"); 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 cancelUpload_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new cancelUpload_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateBlockHashes_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateBlockHashes_resultTupleSchemeFactory()); } public TInvalidTokenException ex1; // required @@ -8589,13 +9048,13 @@ public class SatelliteServer { 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(cancelUpload_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateBlockHashes_result.class, metaDataMap); } - public cancelUpload_result() { + public updateBlockHashes_result() { } - public cancelUpload_result( + public updateBlockHashes_result( TInvalidTokenException ex1) { this(); @@ -8605,14 +9064,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public cancelUpload_result(cancelUpload_result other) { + public updateBlockHashes_result(updateBlockHashes_result other) { if (other.isSetEx1()) { this.ex1 = new TInvalidTokenException(other.ex1); } } - public cancelUpload_result deepCopy() { - return new cancelUpload_result(this); + public updateBlockHashes_result deepCopy() { + return new updateBlockHashes_result(this); } @Override @@ -8624,7 +9083,7 @@ public class SatelliteServer { return this.ex1; } - public cancelUpload_result setEx1(TInvalidTokenException ex1) { + public updateBlockHashes_result setEx1(TInvalidTokenException ex1) { this.ex1 = ex1; return this; } @@ -8683,12 +9142,12 @@ 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 updateBlockHashes_result) + return this.equals((updateBlockHashes_result)that); return false; } - public boolean equals(cancelUpload_result that) { + public boolean equals(updateBlockHashes_result that) { if (that == null) return false; @@ -8710,7 +9169,7 @@ public class SatelliteServer { } @Override - public int compareTo(cancelUpload_result other) { + public int compareTo(updateBlockHashes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -8744,7 +9203,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("cancelUpload_result("); + StringBuilder sb = new StringBuilder("updateBlockHashes_result("); boolean first = true; sb.append("ex1:"); @@ -8779,15 +9238,15 @@ public class SatelliteServer { } } - private static class cancelUpload_resultStandardSchemeFactory implements SchemeFactory { - public cancelUpload_resultStandardScheme getScheme() { - return new cancelUpload_resultStandardScheme(); + private static class updateBlockHashes_resultStandardSchemeFactory implements SchemeFactory { + public updateBlockHashes_resultStandardScheme getScheme() { + return new updateBlockHashes_resultStandardScheme(); } } - private static class cancelUpload_resultStandardScheme extends StandardScheme { + private static class updateBlockHashes_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, updateBlockHashes_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -8817,7 +9276,7 @@ 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, updateBlockHashes_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -8832,16 +9291,16 @@ public class SatelliteServer { } - private static class cancelUpload_resultTupleSchemeFactory implements SchemeFactory { - public cancelUpload_resultTupleScheme getScheme() { - return new cancelUpload_resultTupleScheme(); + private static class updateBlockHashes_resultTupleSchemeFactory implements SchemeFactory { + public updateBlockHashes_resultTupleScheme getScheme() { + return new updateBlockHashes_resultTupleScheme(); } } - private static class cancelUpload_resultTupleScheme extends TupleScheme { + private static class updateBlockHashes_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, updateBlockHashes_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEx1()) { @@ -8854,7 +9313,7 @@ public class SatelliteServer { } @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, updateBlockHashes_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -8867,15 +9326,15 @@ public class SatelliteServer { } - 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 @@ -8945,13 +9404,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(); @@ -8961,14 +9420,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 @@ -8980,7 +9439,7 @@ public class SatelliteServer { return this.uploadToken; } - public queryUploadStatus_args setUploadToken(String uploadToken) { + public cancelUpload_args setUploadToken(String uploadToken) { this.uploadToken = uploadToken; return this; } @@ -9039,12 +9498,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; @@ -9066,7 +9525,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()); } @@ -9100,7 +9559,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:"); @@ -9135,15 +9594,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) @@ -9172,7 +9631,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); @@ -9187,16 +9646,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()) { @@ -9209,7 +9668,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)) { @@ -9221,24 +9680,21 @@ 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 TransferStatus 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(); @@ -9254,8 +9710,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // EX1 return EX1; default: @@ -9301,77 +9755,45 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferStatus.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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(cancelUpload_result.class, metaDataMap); } - public queryUploadStatus_result() { + public cancelUpload_result() { } - public queryUploadStatus_result( - TransferStatus success, + public cancelUpload_result( 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 TransferStatus(other.success); - } + public cancelUpload_result(cancelUpload_result other) { if (other.isSetEx1()) { this.ex1 = new TInvalidTokenException(other.ex1); } } - public queryUploadStatus_result deepCopy() { - return new queryUploadStatus_result(this); + public cancelUpload_result deepCopy() { + return new cancelUpload_result(this); } @Override public void clear() { - this.success = null; this.ex1 = null; } - public TransferStatus getSuccess() { - return this.success; - } - - public queryUploadStatus_result setSuccess(TransferStatus 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; } - public queryUploadStatus_result setEx1(TInvalidTokenException ex1) { + public cancelUpload_result setEx1(TInvalidTokenException ex1) { this.ex1 = ex1; return this; } @@ -9393,14 +9815,6 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((TransferStatus)value); - } - break; - case EX1: if (value == null) { unsetEx1(); @@ -9414,9 +9828,6 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case EX1: return getEx1(); @@ -9431,8 +9842,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case EX1: return isSetEx1(); } @@ -9443,24 +9852,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) { @@ -9479,23 +9879,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; @@ -9523,17 +9913,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"); @@ -9548,9 +9930,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 { @@ -9569,15 +9948,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) @@ -9587,15 +9966,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TransferStatus(); - 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(); @@ -9616,15 +9986,10 @@ 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); @@ -9636,43 +10001,32 @@ public class SatelliteServer { } - 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); + optionals.set(0); } + oprot.writeBitSet(optionals, 1); 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); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new TransferStatus(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.ex1 = new TInvalidTokenException(); struct.ex1.read(iprot); struct.setEx1IsSet(true); @@ -9682,25 +10036,22 @@ public class SatelliteServer { } - 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(); @@ -9715,10 +10066,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; } @@ -9762,111 +10111,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, + 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"))); - 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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(queryUploadStatus_args.class, metaDataMap); } - public requestDownload_args() { + public queryUploadStatus_args() { } - public requestDownload_args( - String userToken, - String imageVersionId) + public queryUploadStatus_args( + String uploadToken) { this(); - this.userToken = userToken; - this.imageVersionId = imageVersionId; + this.uploadToken = uploadToken; } /** * 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 queryUploadStatus_args(queryUploadStatus_args other) { + if (other.isSetUploadToken()) { + this.uploadToken = other.uploadToken; } } - public requestDownload_args deepCopy() { - return new requestDownload_args(this); + public queryUploadStatus_args deepCopy() { + return new queryUploadStatus_args(this); } @Override public void clear() { - this.userToken = null; - this.imageVersionId = null; - } - - public String getUserToken() { - return this.userToken; - } - - public requestDownload_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; - } + 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; @@ -9875,11 +10184,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(); @@ -9892,10 +10198,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(); } @@ -9904,30 +10208,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; } @@ -9940,29 +10235,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; } @@ -9984,22 +10269,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(")"); @@ -10027,15 +10304,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) @@ -10045,18 +10322,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); } @@ -10072,18 +10341,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(); @@ -10092,78 +10356,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 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 FFFF_FIELD_DESC = new org.apache.thrift.protocol.TField("ffff", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField SDF_FIELD_DESC = new org.apache.thrift.protocol.TField("sdf", org.apache.thrift.protocol.TType.STRUCT, (short)4); + 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 TTransferRejectedException rejection; // required - public TAuthorizationException authError; // required - public TInternalServerError ffff; // required - public TNotFoundException sdf; // required + public TransferStatus 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"), - REJECTION((short)1, "rejection"), - AUTH_ERROR((short)2, "authError"), - FFFF((short)3, "ffff"), - SDF((short)4, "sdf"); + EX1((short)1, "ex1"); private static final Map byName = new HashMap(); @@ -10180,14 +10425,8 @@ public class SatelliteServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // REJECTION - return REJECTION; - case 2: // AUTH_ERROR - return AUTH_ERROR; - case 3: // FFFF - return FFFF; - case 4: // SDF - return SDF; + case 1: // EX1 + return EX1; default: return null; } @@ -10232,76 +10471,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.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))); - tmpMap.put(_Fields.FFFF, new org.apache.thrift.meta_data.FieldMetaData("ffff", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.SDF, new org.apache.thrift.meta_data.FieldMetaData("sdf", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferStatus.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, - TTransferRejectedException rejection, - TAuthorizationException authError, - TInternalServerError ffff, - TNotFoundException sdf) + public queryUploadStatus_result( + TransferStatus success, + TInvalidTokenException ex1) { this(); this.success = success; - this.rejection = rejection; - this.authError = authError; - this.ffff = ffff; - this.sdf = sdf; + 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); - } - if (other.isSetRejection()) { - this.rejection = new TTransferRejectedException(other.rejection); - } - if (other.isSetAuthError()) { - this.authError = new TAuthorizationException(other.authError); - } - if (other.isSetFfff()) { - this.ffff = new TInternalServerError(other.ffff); + this.success = new TransferStatus(other.success); } - if (other.isSetSdf()) { - this.sdf = new TNotFoundException(other.sdf); + 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.rejection = null; - this.authError = null; - this.ffff = null; - this.sdf = null; + this.ex1 = null; } - public TransferInformation getSuccess() { + public TransferStatus getSuccess() { return this.success; } - public requestDownload_result setSuccess(TransferInformation success) { + public queryUploadStatus_result setSuccess(TransferStatus success) { this.success = success; return this; } @@ -10321,99 +10536,27 @@ public class SatelliteServer { } } - public TTransferRejectedException getRejection() { - return this.rejection; - } - - public requestDownload_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 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 TInternalServerError getFfff() { - return this.ffff; - } - - public requestDownload_result setFfff(TInternalServerError ffff) { - this.ffff = ffff; - return this; - } - - public void unsetFfff() { - this.ffff = null; - } - - /** Returns true if field ffff is set (has been assigned a value) and false otherwise */ - public boolean isSetFfff() { - return this.ffff != null; - } - - public void setFfffIsSet(boolean value) { - if (!value) { - this.ffff = null; - } - } - - public TNotFoundException getSdf() { - return this.sdf; + public TInvalidTokenException getEx1() { + return this.ex1; } - public requestDownload_result setSdf(TNotFoundException sdf) { - this.sdf = sdf; + public queryUploadStatus_result setEx1(TInvalidTokenException ex1) { + this.ex1 = ex1; return this; } - public void unsetSdf() { - this.sdf = null; + public void unsetEx1() { + this.ex1 = null; } - /** Returns true if field sdf is set (has been assigned a value) and false otherwise */ - public boolean isSetSdf() { - return this.sdf != 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 setSdfIsSet(boolean value) { + public void setEx1IsSet(boolean value) { if (!value) { - this.sdf = null; + this.ex1 = null; } } @@ -10423,39 +10566,15 @@ 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); - } - break; - - case FFFF: - if (value == null) { - unsetFfff(); - } else { - setFfff((TInternalServerError)value); + setSuccess((TransferStatus)value); } break; - case SDF: + case EX1: if (value == null) { - unsetSdf(); + unsetEx1(); } else { - setSdf((TNotFoundException)value); + setEx1((TInvalidTokenException)value); } break; @@ -10467,17 +10586,8 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); - case REJECTION: - return getRejection(); - - case AUTH_ERROR: - return getAuthError(); - - case FFFF: - return getFfff(); - - case SDF: - return getSdf(); + case EX1: + return getEx1(); } throw new IllegalStateException(); @@ -10492,14 +10602,8 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); - case REJECTION: - return isSetRejection(); - case AUTH_ERROR: - return isSetAuthError(); - case FFFF: - return isSetFfff(); - case SDF: - return isSetSdf(); + case EX1: + return isSetEx1(); } throw new IllegalStateException(); } @@ -10508,12 +10612,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; @@ -10526,39 +10630,12 @@ public class SatelliteServer { 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; - } - - boolean this_present_ffff = true && this.isSetFfff(); - boolean that_present_ffff = true && that.isSetFfff(); - if (this_present_ffff || that_present_ffff) { - if (!(this_present_ffff && that_present_ffff)) - return false; - if (!this.ffff.equals(that.ffff)) - return false; - } - - boolean this_present_sdf = true && this.isSetSdf(); - boolean that_present_sdf = true && that.isSetSdf(); - if (this_present_sdf || that_present_sdf) { - if (!(this_present_sdf && that_present_sdf)) + 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.sdf.equals(that.sdf)) + if (!this.ex1.equals(that.ex1)) return false; } @@ -10571,7 +10648,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()); } @@ -10588,42 +10665,12 @@ 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; - } - } - lastComparison = Boolean.valueOf(isSetFfff()).compareTo(other.isSetFfff()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFfff()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ffff, other.ffff); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSdf()).compareTo(other.isSetSdf()); + lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSdf()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sdf, other.sdf); + if (isSetEx1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex1, other.ex1); if (lastComparison != 0) { return lastComparison; } @@ -10645,7 +10692,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:"); @@ -10656,35 +10703,11 @@ public class SatelliteServer { } 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; - if (!first) sb.append(", "); - sb.append("ffff:"); - if (this.ffff == null) { - sb.append("null"); - } else { - sb.append(this.ffff); - } - first = false; - if (!first) sb.append(", "); - sb.append("sdf:"); - if (this.sdf == null) { + sb.append("ex1:"); + if (this.ex1 == null) { sb.append("null"); } else { - sb.append(this.sdf); + sb.append(this.ex1); } first = false; sb.append(")"); @@ -10715,15 +10738,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) @@ -10735,45 +10758,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 TransferStatus(); 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; - case 3: // FFFF - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ffff = new TInternalServerError(); - struct.ffff.read(iprot); - struct.setFfffIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // SDF + case 1: // EX1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sdf = new TNotFoundException(); - struct.sdf.read(iprot); - struct.setSdfIsSet(true); + struct.ex1 = new TInvalidTokenException(); + struct.ex1.read(iprot); + struct.setEx1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -10789,7 +10785,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); @@ -10798,24 +10794,9 @@ public class SatelliteServer { 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(); - } - if (struct.ffff != null) { - oprot.writeFieldBegin(FFFF_FIELD_DESC); - struct.ffff.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.sdf != null) { - oprot.writeFieldBegin(SDF_FIELD_DESC); - struct.sdf.write(oprot); + if (struct.ex1 != null) { + oprot.writeFieldBegin(EX1_FIELD_DESC); + struct.ex1.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -10824,101 +10805,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.isSetRejection()) { + if (struct.isSetEx1()) { optionals.set(1); } - if (struct.isSetAuthError()) { - optionals.set(2); - } - if (struct.isSetFfff()) { - optionals.set(3); - } - if (struct.isSetSdf()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { struct.success.write(oprot); } - if (struct.isSetRejection()) { - struct.rejection.write(oprot); - } - if (struct.isSetAuthError()) { - struct.authError.write(oprot); - } - if (struct.isSetFfff()) { - struct.ffff.write(oprot); - } - if (struct.isSetSdf()) { - struct.sdf.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(5); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new TransferInformation(); + struct.success = new TransferStatus(); 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); - } - if (incoming.get(3)) { - struct.ffff = new TInternalServerError(); - struct.ffff.read(iprot); - struct.setFfffIsSet(true); - } - if (incoming.get(4)) { - struct.sdf = new TNotFoundException(); - struct.sdf.read(iprot); - struct.setSdfIsSet(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(); @@ -10933,8 +10884,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; } @@ -10978,71 +10931,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; @@ -11051,8 +11044,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(); @@ -11065,8 +11061,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(); } @@ -11075,21 +11073,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; } @@ -11102,19 +11109,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; } @@ -11136,14 +11153,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(")"); @@ -11171,15 +11196,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) @@ -11189,10 +11214,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); } @@ -11208,13 +11241,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(); @@ -11223,56 +11261,78 @@ 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 EX1_FIELD_DESC = new org.apache.thrift.protocol.TField("ex1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + 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 FFFF_FIELD_DESC = new org.apache.thrift.protocol.TField("ffff", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SDF_FIELD_DESC = new org.apache.thrift.protocol.TField("sdf", org.apache.thrift.protocol.TType.STRUCT, (short)4); 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 TInvalidTokenException ex1; // required + public TransferInformation success; // required + public TTransferRejectedException rejection; // required + public TAuthorizationException authError; // required + public TInternalServerError ffff; // required + public TNotFoundException sdf; // 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 { - EX1((short)1, "ex1"); + SUCCESS((short)0, "success"), + REJECTION((short)1, "rejection"), + AUTH_ERROR((short)2, "authError"), + FFFF((short)3, "ffff"), + SDF((short)4, "sdf"); private static final Map byName = new HashMap(); @@ -11287,8 +11347,16 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // EX1 - return EX1; + case 0: // SUCCESS + return SUCCESS; + case 1: // REJECTION + return REJECTION; + case 2: // AUTH_ERROR + return AUTH_ERROR; + case 3: // FFFF + return FFFF; + case 4: // SDF + return SDF; default: return null; } @@ -11332,130 +11400,1231 @@ 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.EX1, new org.apache.thrift.meta_data.FieldMetaData("ex1", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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))); + tmpMap.put(_Fields.FFFF, new org.apache.thrift.meta_data.FieldMetaData("ffff", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SDF, new org.apache.thrift.meta_data.FieldMetaData("sdf", 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 cancelDownload_result( - TInvalidTokenException ex1) + public requestDownload_result( + TransferInformation success, + TTransferRejectedException rejection, + TAuthorizationException authError, + TInternalServerError ffff, + TNotFoundException sdf) { this(); - this.ex1 = ex1; + this.success = success; + this.rejection = rejection; + this.authError = authError; + this.ffff = ffff; + this.sdf = sdf; } /** * Performs a deep copy on other. */ - public cancelDownload_result(cancelDownload_result other) { - if (other.isSetEx1()) { - this.ex1 = new TInvalidTokenException(other.ex1); + public requestDownload_result(requestDownload_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); + } + if (other.isSetFfff()) { + this.ffff = new TInternalServerError(other.ffff); + } + if (other.isSetSdf()) { + this.sdf = new TNotFoundException(other.sdf); } } - public cancelDownload_result deepCopy() { - return new cancelDownload_result(this); + public requestDownload_result deepCopy() { + return new requestDownload_result(this); } @Override public void clear() { - this.ex1 = null; + this.success = null; + this.rejection = null; + this.authError = null; + this.ffff = null; + this.sdf = null; } - public TInvalidTokenException getEx1() { - return this.ex1; + public TransferInformation getSuccess() { + return this.success; } - public cancelDownload_result setEx1(TInvalidTokenException ex1) { - this.ex1 = ex1; + public requestDownload_result setSuccess(TransferInformation success) { + this.success = success; return this; } - public void unsetEx1() { - this.ex1 = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field ex1 is set (has been assigned a value) and false otherwise */ - public boolean isSetEx1() { - return this.ex1 != 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 setEx1IsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.ex1 = null; + this.success = null; } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case EX1: - if (value == null) { - unsetEx1(); - } else { - setEx1((TInvalidTokenException)value); - } - break; + public TTransferRejectedException getRejection() { + return this.rejection; + } - } + public requestDownload_result setRejection(TTransferRejectedException rejection) { + this.rejection = rejection; + return this; } - public Object getFieldValue(_Fields field) { - switch (field) { - case EX1: - return getEx1(); + public void unsetRejection() { + this.rejection = null; + } - } - throw new IllegalStateException(); + /** Returns true if field rejection is set (has been assigned a value) and false otherwise */ + public boolean isSetRejection() { + return this.rejection != null; } - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); + public void setRejectionIsSet(boolean value) { + if (!value) { + this.rejection = null; } + } - switch (field) { - case EX1: - return isSetEx1(); - } - throw new IllegalStateException(); + public TAuthorizationException getAuthError() { + return this.authError; } - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof cancelDownload_result) - return this.equals((cancelDownload_result)that); - return false; + public requestDownload_result setAuthError(TAuthorizationException authError) { + this.authError = authError; + return this; } - public boolean equals(cancelDownload_result that) { - if (that == null) - return false; + public void unsetAuthError() { + this.authError = null; + } - 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; + /** 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; } + } - return true; + public TInternalServerError getFfff() { + return this.ffff; } - @Override - public int hashCode() { - return 0; + public requestDownload_result setFfff(TInternalServerError ffff) { + this.ffff = ffff; + return this; } - @Override + public void unsetFfff() { + this.ffff = null; + } + + /** Returns true if field ffff is set (has been assigned a value) and false otherwise */ + public boolean isSetFfff() { + return this.ffff != null; + } + + public void setFfffIsSet(boolean value) { + if (!value) { + this.ffff = null; + } + } + + public TNotFoundException getSdf() { + return this.sdf; + } + + public requestDownload_result setSdf(TNotFoundException sdf) { + this.sdf = sdf; + return this; + } + + public void unsetSdf() { + this.sdf = null; + } + + /** Returns true if field sdf is set (has been assigned a value) and false otherwise */ + public boolean isSetSdf() { + return this.sdf != null; + } + + public void setSdfIsSet(boolean value) { + if (!value) { + this.sdf = 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; + + case FFFF: + if (value == null) { + unsetFfff(); + } else { + setFfff((TInternalServerError)value); + } + break; + + case SDF: + if (value == null) { + unsetSdf(); + } else { + setSdf((TNotFoundException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case REJECTION: + return getRejection(); + + case AUTH_ERROR: + return getAuthError(); + + case FFFF: + return getFfff(); + + case SDF: + return getSdf(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case REJECTION: + return isSetRejection(); + case AUTH_ERROR: + return isSetAuthError(); + case FFFF: + return isSetFfff(); + case SDF: + return isSetSdf(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof requestDownload_result) + return this.equals((requestDownload_result)that); + return false; + } + + 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_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; + } + + boolean this_present_ffff = true && this.isSetFfff(); + boolean that_present_ffff = true && that.isSetFfff(); + if (this_present_ffff || that_present_ffff) { + if (!(this_present_ffff && that_present_ffff)) + return false; + if (!this.ffff.equals(that.ffff)) + return false; + } + + boolean this_present_sdf = true && this.isSetSdf(); + boolean that_present_sdf = true && that.isSetSdf(); + if (this_present_sdf || that_present_sdf) { + if (!(this_present_sdf && that_present_sdf)) + return false; + if (!this.sdf.equals(that.sdf)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + 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(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; + } + } + lastComparison = Boolean.valueOf(isSetFfff()).compareTo(other.isSetFfff()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFfff()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ffff, other.ffff); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSdf()).compareTo(other.isSetSdf()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSdf()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sdf, other.sdf); + 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("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("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; + if (!first) sb.append(", "); + sb.append("ffff:"); + if (this.ffff == null) { + sb.append("null"); + } else { + sb.append(this.ffff); + } + first = false; + if (!first) sb.append(", "); + sb.append("sdf:"); + if (this.sdf == null) { + sb.append("null"); + } else { + sb.append(this.sdf); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class requestDownload_resultStandardSchemeFactory implements SchemeFactory { + public requestDownload_resultStandardScheme getScheme() { + return new requestDownload_resultStandardScheme(); + } + } + + private static class requestDownload_resultStandardScheme extends StandardScheme { + + 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) + { + 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.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; + case 3: // FFFF + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ffff = new TInternalServerError(); + struct.ffff.read(iprot); + struct.setFfffIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // SDF + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sdf = new TNotFoundException(); + struct.sdf.read(iprot); + struct.setSdfIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, 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.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(); + } + if (struct.ffff != null) { + oprot.writeFieldBegin(FFFF_FIELD_DESC); + struct.ffff.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.sdf != null) { + oprot.writeFieldBegin(SDF_FIELD_DESC); + struct.sdf.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class requestDownload_resultTupleSchemeFactory implements SchemeFactory { + public requestDownload_resultTupleScheme getScheme() { + return new requestDownload_resultTupleScheme(); + } + } + + private static class requestDownload_resultTupleScheme extends TupleScheme { + + @Override + 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.isSetRejection()) { + optionals.set(1); + } + if (struct.isSetAuthError()) { + optionals.set(2); + } + if (struct.isSetFfff()) { + optionals.set(3); + } + if (struct.isSetSdf()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetRejection()) { + struct.rejection.write(oprot); + } + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } + if (struct.isSetFfff()) { + struct.ffff.write(oprot); + } + if (struct.isSetSdf()) { + struct.sdf.write(oprot); + } + } + + @Override + 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(5); + 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); + } + if (incoming.get(3)) { + struct.ffff = new TInternalServerError(); + struct.ffff.read(iprot); + struct.setFfffIsSet(true); + } + if (incoming.get(4)) { + struct.sdf = new TNotFoundException(); + struct.sdf.read(iprot); + struct.setSdfIsSet(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"); + + 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 cancelDownload_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cancelDownload_argsTupleSchemeFactory()); + } + + 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 { + DOWNLOAD_TOKEN((short)1, "downloadToken"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DOWNLOAD_TOKEN + return DOWNLOAD_TOKEN; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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(cancelDownload_args.class, metaDataMap); + } + + public cancelDownload_args() { + } + + public cancelDownload_args( + String downloadToken) + { + this(); + this.downloadToken = downloadToken; + } + + /** + * Performs a deep copy on other. + */ + public cancelDownload_args(cancelDownload_args other) { + if (other.isSetDownloadToken()) { + this.downloadToken = other.downloadToken; + } + } + + public cancelDownload_args deepCopy() { + return new cancelDownload_args(this); + } + + @Override + public void clear() { + this.downloadToken = null; + } + + public String getDownloadToken() { + return this.downloadToken; + } + + public cancelDownload_args setDownloadToken(String downloadToken) { + this.downloadToken = downloadToken; + return this; + } + + public void unsetDownloadToken() { + this.downloadToken = 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 setDownloadTokenIsSet(boolean value) { + if (!value) { + this.downloadToken = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DOWNLOAD_TOKEN: + if (value == null) { + unsetDownloadToken(); + } else { + setDownloadToken((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DOWNLOAD_TOKEN: + return getDownloadToken(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DOWNLOAD_TOKEN: + return isSetDownloadToken(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof cancelDownload_args) + return this.equals((cancelDownload_args)that); + return false; + } + + public boolean equals(cancelDownload_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)) + return false; + if (!this.downloadToken.equals(that.downloadToken)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(cancelDownload_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDownloadToken()).compareTo(other.isSetDownloadToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDownloadToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.downloadToken, other.downloadToken); + 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("cancelDownload_args("); + boolean first = true; + + sb.append("downloadToken:"); + if (this.downloadToken == null) { + sb.append("null"); + } else { + sb.append(this.downloadToken); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class cancelDownload_argsStandardSchemeFactory implements SchemeFactory { + public cancelDownload_argsStandardScheme getScheme() { + return new cancelDownload_argsStandardScheme(); + } + } + + private static class cancelDownload_argsStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DOWNLOAD_TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.downloadToken = iprot.readString(); + struct.setDownloadTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_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); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class cancelDownload_argsTupleSchemeFactory implements SchemeFactory { + public cancelDownload_argsTupleScheme getScheme() { + return new cancelDownload_argsTupleScheme(); + } + } + + private static class cancelDownload_argsTupleScheme extends TupleScheme { + + @Override + 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.isSetDownloadToken()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetDownloadToken()) { + oprot.writeString(struct.downloadToken); + } + } + + @Override + 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.downloadToken = iprot.readString(); + struct.setDownloadTokenIsSet(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"); + + 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 cancelDownload_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new cancelDownload_resultTupleSchemeFactory()); + } + + 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 { + EX1((short)1, "ex1"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // EX1 + return EX1; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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(cancelDownload_result.class, metaDataMap); + } + + public cancelDownload_result() { + } + + public cancelDownload_result( + TInvalidTokenException ex1) + { + this(); + this.ex1 = ex1; + } + + /** + * Performs a deep copy on other. + */ + public cancelDownload_result(cancelDownload_result other) { + if (other.isSetEx1()) { + this.ex1 = new TInvalidTokenException(other.ex1); + } + } + + public cancelDownload_result deepCopy() { + return new cancelDownload_result(this); + } + + @Override + public void clear() { + this.ex1 = null; + } + + public TInvalidTokenException getEx1() { + return this.ex1; + } + + public cancelDownload_result setEx1(TInvalidTokenException ex1) { + this.ex1 = ex1; + return this; + } + + public void unsetEx1() { + this.ex1 = 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 setEx1IsSet(boolean value) { + if (!value) { + this.ex1 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case EX1: + if (value == null) { + unsetEx1(); + } else { + setEx1((TInvalidTokenException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case EX1: + return getEx1(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case EX1: + return isSetEx1(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof cancelDownload_result) + return this.equals((cancelDownload_result)that); + return false; + } + + public boolean equals(cancelDownload_result that) { + if (that == null) + 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; + } + + @Override + public int hashCode() { + return 0; + } + + @Override public int compareTo(cancelDownload_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); @@ -11463,12 +12632,1040 @@ public class SatelliteServer { int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetEx1()).compareTo(other.isSetEx1()); + 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; + } + + 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("cancelDownload_result("); + boolean first = true; + + sb.append("ex1:"); + if (this.ex1 == null) { + sb.append("null"); + } else { + sb.append(this.ex1); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class cancelDownload_resultStandardSchemeFactory implements SchemeFactory { + public cancelDownload_resultStandardScheme getScheme() { + return new cancelDownload_resultStandardScheme(); + } + } + + private static class cancelDownload_resultStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + 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); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, cancelDownload_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.ex1 != null) { + oprot.writeFieldBegin(EX1_FIELD_DESC); + struct.ex1.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 cancelDownload_resultTupleScheme extends TupleScheme { + + @Override + 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.isSetEx1()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetEx1()) { + struct.ex1.write(oprot); + } + } + + @Override + 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.ex1 = new TInvalidTokenException(); + struct.ex1.read(iprot); + struct.setEx1IsSet(true); + } + } + } + + } + + public static class getMachineDescription_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("getMachineDescription_args"); + + private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getMachineDescription_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getMachineDescription_argsTupleSchemeFactory()); + } + + public String userToken; // required + public String imageVersionId; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_TOKEN((short)1, "userToken"), + IMAGE_VERSION_ID((short)2, "imageVersionId"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_TOKEN + return USER_TOKEN; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMachineDescription_args.class, metaDataMap); + } + + public getMachineDescription_args() { + } + + public getMachineDescription_args( + String userToken, + String imageVersionId) + { + this(); + this.userToken = userToken; + this.imageVersionId = imageVersionId; + } + + /** + * Performs a deep copy on other. + */ + public getMachineDescription_args(getMachineDescription_args other) { + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; + } + } + + public getMachineDescription_args deepCopy() { + return new getMachineDescription_args(this); + } + + @Override + public void clear() { + this.userToken = null; + this.imageVersionId = null; + } + + public String getUserToken() { + return this.userToken; + } + + public getMachineDescription_args setUserToken(String userToken) { + this.userToken = userToken; + return this; + } + + public void unsetUserToken() { + this.userToken = null; + } + + /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUserToken() { + return this.userToken != null; + } + + public void setUserTokenIsSet(boolean value) { + if (!value) { + this.userToken = null; + } + } + + public String getImageVersionId() { + return this.imageVersionId; + } + + public getMachineDescription_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; + return this; + } + + public void unsetImageVersionId() { + this.imageVersionId = null; + } + + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; + } + + public void setImageVersionIdIsSet(boolean value) { + if (!value) { + this.imageVersionId = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_TOKEN: + if (value == null) { + unsetUserToken(); + } else { + setUserToken((String)value); + } + break; + + case IMAGE_VERSION_ID: + if (value == null) { + unsetImageVersionId(); + } else { + setImageVersionId((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_TOKEN: + return getUserToken(); + + case IMAGE_VERSION_ID: + return getImageVersionId(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getMachineDescription_args) + return this.equals((getMachineDescription_args)that); + return false; + } + + public boolean equals(getMachineDescription_args that) { + if (that == null) + return false; + + boolean this_present_userToken = true && this.isSetUserToken(); + boolean that_present_userToken = true && that.isSetUserToken(); + if (this_present_userToken || that_present_userToken) { + if (!(this_present_userToken && that_present_userToken)) + return false; + if (!this.userToken.equals(that.userToken)) + return false; + } + + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) + return false; + if (!this.imageVersionId.equals(that.imageVersionId)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getMachineDescription_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getMachineDescription_args("); + boolean first = true; + + sb.append("userToken:"); + if (this.userToken == null) { + sb.append("null"); + } else { + sb.append(this.userToken); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { + sb.append("null"); + } else { + sb.append(this.imageVersionId); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class getMachineDescription_argsStandardSchemeFactory implements SchemeFactory { + public getMachineDescription_argsStandardScheme getScheme() { + return new getMachineDescription_argsStandardScheme(); + } + } + + private static class getMachineDescription_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, getMachineDescription_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IMAGE_VERSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, getMachineDescription_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); + oprot.writeFieldEnd(); + } + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class getMachineDescription_argsTupleSchemeFactory implements SchemeFactory { + public getMachineDescription_argsTupleScheme getScheme() { + return new getMachineDescription_argsTupleScheme(); + } + } + + private static class getMachineDescription_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserToken()) { + optionals.set(0); + } + if (struct.isSetImageVersionId()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); + } + } + } + + } + + public static class getMachineDescription_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("getMachineDescription_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 FFFF_FIELD_DESC = new org.apache.thrift.protocol.TField("ffff", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SDF_FIELD_DESC = new org.apache.thrift.protocol.TField("sdf", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getMachineDescription_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getMachineDescription_resultTupleSchemeFactory()); + } + + public ByteBuffer success; // required + public TAuthorizationException authError; // required + public TInternalServerError ffff; // required + public TNotFoundException sdf; // 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"), + FFFF((short)2, "ffff"), + SDF((short)3, "sdf"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // AUTH_ERROR + return AUTH_ERROR; + case 2: // FFFF + return FFFF; + case 3: // SDF + return SDF; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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 , true))); + 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.FFFF, new org.apache.thrift.meta_data.FieldMetaData("ffff", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SDF, new org.apache.thrift.meta_data.FieldMetaData("sdf", 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(getMachineDescription_result.class, metaDataMap); + } + + public getMachineDescription_result() { + } + + public getMachineDescription_result( + ByteBuffer success, + TAuthorizationException authError, + TInternalServerError ffff, + TNotFoundException sdf) + { + this(); + this.success = success; + this.authError = authError; + this.ffff = ffff; + this.sdf = sdf; + } + + /** + * Performs a deep copy on other. + */ + public getMachineDescription_result(getMachineDescription_result other) { + if (other.isSetSuccess()) { + this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success); +; + } + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } + if (other.isSetFfff()) { + this.ffff = new TInternalServerError(other.ffff); + } + if (other.isSetSdf()) { + this.sdf = new TNotFoundException(other.sdf); + } + } + + public getMachineDescription_result deepCopy() { + return new getMachineDescription_result(this); + } + + @Override + public void clear() { + this.success = null; + this.authError = null; + this.ffff = null; + this.sdf = null; + } + + public byte[] getSuccess() { + setSuccess(org.apache.thrift.TBaseHelper.rightSize(success)); + return success == null ? null : success.array(); + } + + public ByteBuffer bufferForSuccess() { + return success; + } + + public getMachineDescription_result setSuccess(byte[] success) { + setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success)); + return this; + } + + public getMachineDescription_result setSuccess(ByteBuffer 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 getMachineDescription_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 getFfff() { + return this.ffff; + } + + public getMachineDescription_result setFfff(TInternalServerError ffff) { + this.ffff = ffff; + return this; + } + + public void unsetFfff() { + this.ffff = null; + } + + /** Returns true if field ffff is set (has been assigned a value) and false otherwise */ + public boolean isSetFfff() { + return this.ffff != null; + } + + public void setFfffIsSet(boolean value) { + if (!value) { + this.ffff = null; + } + } + + public TNotFoundException getSdf() { + return this.sdf; + } + + public getMachineDescription_result setSdf(TNotFoundException sdf) { + this.sdf = sdf; + return this; + } + + public void unsetSdf() { + this.sdf = null; + } + + /** Returns true if field sdf is set (has been assigned a value) and false otherwise */ + public boolean isSetSdf() { + return this.sdf != null; + } + + public void setSdfIsSet(boolean value) { + if (!value) { + this.sdf = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((ByteBuffer)value); + } + break; + + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + + case FFFF: + if (value == null) { + unsetFfff(); + } else { + setFfff((TInternalServerError)value); + } + break; + + case SDF: + if (value == null) { + unsetSdf(); + } else { + setSdf((TNotFoundException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case AUTH_ERROR: + return getAuthError(); + + case FFFF: + return getFfff(); + + case SDF: + return getSdf(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case AUTH_ERROR: + return isSetAuthError(); + case FFFF: + return isSetFfff(); + case SDF: + return isSetSdf(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getMachineDescription_result) + return this.equals((getMachineDescription_result)that); + return false; + } + + public boolean equals(getMachineDescription_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_ffff = true && this.isSetFfff(); + boolean that_present_ffff = true && that.isSetFfff(); + if (this_present_ffff || that_present_ffff) { + if (!(this_present_ffff && that_present_ffff)) + return false; + if (!this.ffff.equals(that.ffff)) + return false; + } + + boolean this_present_sdf = true && this.isSetSdf(); + boolean that_present_sdf = true && that.isSetSdf(); + if (this_present_sdf || that_present_sdf) { + if (!(this_present_sdf && that_present_sdf)) + return false; + if (!this.sdf.equals(that.sdf)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(getMachineDescription_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 (isSetEx1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex1, other.ex1); + 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; + } + } + lastComparison = Boolean.valueOf(isSetFfff()).compareTo(other.isSetFfff()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFfff()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ffff, other.ffff); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSdf()).compareTo(other.isSetSdf()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSdf()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sdf, other.sdf); if (lastComparison != 0) { return lastComparison; } @@ -11490,14 +13687,38 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("cancelDownload_result("); + StringBuilder sb = new StringBuilder("getMachineDescription_result("); boolean first = true; - sb.append("ex1:"); - if (this.ex1 == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.ex1); + org.apache.thrift.TBaseHelper.toString(this.success, sb); + } + 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("ffff:"); + if (this.ffff == null) { + sb.append("null"); + } else { + sb.append(this.ffff); + } + first = false; + if (!first) sb.append(", "); + sb.append("sdf:"); + if (this.sdf == null) { + sb.append("null"); + } else { + sb.append(this.sdf); } first = false; sb.append(")"); @@ -11525,15 +13746,15 @@ public class SatelliteServer { } } - private static class cancelDownload_resultStandardSchemeFactory implements SchemeFactory { - public cancelDownload_resultStandardScheme getScheme() { - return new cancelDownload_resultStandardScheme(); + private static class getMachineDescription_resultStandardSchemeFactory implements SchemeFactory { + public getMachineDescription_resultStandardScheme getScheme() { + return new getMachineDescription_resultStandardScheme(); } } - private static class cancelDownload_resultStandardScheme extends StandardScheme { + private static class getMachineDescription_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, getMachineDescription_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -11543,11 +13764,37 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // EX1 + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readBinary(); + 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.ex1 = new TInvalidTokenException(); - struct.ex1.read(iprot); - struct.setEx1IsSet(true); + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // FFFF + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.ffff = new TInternalServerError(); + struct.ffff.read(iprot); + struct.setFfffIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SDF + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.sdf = new TNotFoundException(); + struct.sdf.read(iprot); + struct.setSdfIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -11563,13 +13810,28 @@ 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, getMachineDescription_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.ex1 != null) { - oprot.writeFieldBegin(EX1_FIELD_DESC); - struct.ex1.write(oprot); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBinary(struct.success); + oprot.writeFieldEnd(); + } + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.ffff != null) { + oprot.writeFieldBegin(FFFF_FIELD_DESC); + struct.ffff.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.sdf != null) { + oprot.writeFieldBegin(SDF_FIELD_DESC); + struct.sdf.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -11578,60 +13840,89 @@ public class SatelliteServer { } - private static class cancelDownload_resultTupleSchemeFactory implements SchemeFactory { - public cancelDownload_resultTupleScheme getScheme() { - return new cancelDownload_resultTupleScheme(); + private static class getMachineDescription_resultTupleSchemeFactory implements SchemeFactory { + public getMachineDescription_resultTupleScheme getScheme() { + return new getMachineDescription_resultTupleScheme(); } } - private static class cancelDownload_resultTupleScheme extends TupleScheme { + private static class getMachineDescription_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, getMachineDescription_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetEx1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetEx1()) { - struct.ex1.write(oprot); + if (struct.isSetAuthError()) { + optionals.set(1); + } + if (struct.isSetFfff()) { + optionals.set(2); + } + if (struct.isSetSdf()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + oprot.writeBinary(struct.success); + } + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } + if (struct.isSetFfff()) { + struct.ffff.write(oprot); + } + if (struct.isSetSdf()) { + struct.sdf.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, getMachineDescription_result 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.ex1 = new TInvalidTokenException(); - struct.ex1.read(iprot); - struct.setEx1IsSet(true); + struct.success = iprot.readBinary(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } + if (incoming.get(2)) { + struct.ffff = new TInternalServerError(); + struct.ffff.read(iprot); + struct.setFfffIsSet(true); + } + if (incoming.get(3)) { + struct.sdf = new TNotFoundException(); + struct.sdf.read(iprot); + struct.setSdfIsSet(true); } } } } - public static class getMachineDescription_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("getMachineDescription_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 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 getMachineDescription_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMachineDescription_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isAuthenticated_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isAuthenticated_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"); + USER_TOKEN((short)1, "userToken"); private static final Map byName = new HashMap(); @@ -11648,8 +13939,6 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; default: return null; } @@ -11695,51 +13984,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.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(getMachineDescription_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_args.class, metaDataMap); } - public getMachineDescription_args() { + public isAuthenticated_args() { } - public getMachineDescription_args( - String userToken, - String imageVersionId) + public isAuthenticated_args( + String userToken) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public getMachineDescription_args(getMachineDescription_args other) { + public isAuthenticated_args(isAuthenticated_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; - } } - public getMachineDescription_args deepCopy() { - return new getMachineDescription_args(this); + public isAuthenticated_args deepCopy() { + return new isAuthenticated_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public getMachineDescription_args setUserToken(String userToken) { + public isAuthenticated_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -11759,30 +14040,6 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; - } - - public getMachineDescription_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; - return this; - } - - public void unsetImageVersionId() { - this.imageVersionId = null; - } - - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; - } - - public void setImageVersionIdIsSet(boolean value) { - if (!value) { - this.imageVersionId = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -11793,14 +14050,6 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: - if (value == null) { - unsetImageVersionId(); - } else { - setImageVersionId((String)value); - } - break; - } } @@ -11809,9 +14058,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); - } throw new IllegalStateException(); } @@ -11825,8 +14071,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -11835,12 +14079,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getMachineDescription_args) - return this.equals((getMachineDescription_args)that); + if (that instanceof isAuthenticated_args) + return this.equals((isAuthenticated_args)that); return false; } - public boolean equals(getMachineDescription_args that) { + public boolean equals(isAuthenticated_args that) { if (that == null) return false; @@ -11853,15 +14097,6 @@ 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)) - return false; - if (!this.imageVersionId.equals(that.imageVersionId)) - return false; - } - return true; } @@ -11871,7 +14106,7 @@ public class SatelliteServer { } @Override - public int compareTo(getMachineDescription_args other) { + public int compareTo(isAuthenticated_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -11888,16 +14123,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -11915,7 +14140,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getMachineDescription_args("); + StringBuilder sb = new StringBuilder("isAuthenticated_args("); boolean first = true; sb.append("userToken:"); @@ -11925,14 +14150,6 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; - if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { - sb.append("null"); - } else { - sb.append(this.imageVersionId); - } - first = false; sb.append(")"); return sb.toString(); } @@ -11958,15 +14175,15 @@ public class SatelliteServer { } } - private static class getMachineDescription_argsStandardSchemeFactory implements SchemeFactory { - public getMachineDescription_argsStandardScheme getScheme() { - return new getMachineDescription_argsStandardScheme(); + private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory { + public isAuthenticated_argsStandardScheme getScheme() { + return new isAuthenticated_argsStandardScheme(); } } - private static class getMachineDescription_argsStandardScheme extends StandardScheme { + private static class isAuthenticated_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getMachineDescription_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) @@ -11984,14 +14201,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12003,7 +14212,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getMachineDescription_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); @@ -12012,86 +14221,65 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getMachineDescription_argsTupleSchemeFactory implements SchemeFactory { - public getMachineDescription_argsTupleScheme getScheme() { - return new getMachineDescription_argsTupleScheme(); + private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory { + public isAuthenticated_argsTupleScheme getScheme() { + return new isAuthenticated_argsTupleScheme(); } } - private static class getMachineDescription_argsTupleScheme extends TupleScheme { + private static class isAuthenticated_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_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()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_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(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); - } } } } - public static class getMachineDescription_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("getMachineDescription_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.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 FFFF_FIELD_DESC = new org.apache.thrift.protocol.TField("ffff", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField SDF_FIELD_DESC = new org.apache.thrift.protocol.TField("sdf", 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 getMachineDescription_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMachineDescription_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isAuthenticated_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isAuthenticated_resultTupleSchemeFactory()); } - public ByteBuffer success; // required public TAuthorizationException authError; // required - public TInternalServerError ffff; // required - public TNotFoundException sdf; // 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"), - FFFF((short)2, "ffff"), - SDF((short)3, "sdf"); + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -12106,14 +14294,10 @@ 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: // FFFF - return FFFF; - case 3: // SDF - return SDF; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -12157,104 +14341,53 @@ 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 , true))); 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.FFFF, new org.apache.thrift.meta_data.FieldMetaData("ffff", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.SDF, new org.apache.thrift.meta_data.FieldMetaData("sdf", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMachineDescription_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_result.class, metaDataMap); } - public getMachineDescription_result() { + public isAuthenticated_result() { } - public getMachineDescription_result( - ByteBuffer success, + public isAuthenticated_result( TAuthorizationException authError, - TInternalServerError ffff, - TNotFoundException sdf) + TInternalServerError serverError) { this(); - this.success = success; this.authError = authError; - this.ffff = ffff; - this.sdf = sdf; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getMachineDescription_result(getMachineDescription_result other) { - if (other.isSetSuccess()) { - this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success); -; - } + public isAuthenticated_result(isAuthenticated_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetFfff()) { - this.ffff = new TInternalServerError(other.ffff); - } - if (other.isSetSdf()) { - this.sdf = new TNotFoundException(other.sdf); + if (other.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); } } - public getMachineDescription_result deepCopy() { - return new getMachineDescription_result(this); + public isAuthenticated_result deepCopy() { + return new isAuthenticated_result(this); } @Override public void clear() { - this.success = null; this.authError = null; - this.ffff = null; - this.sdf = null; - } - - public byte[] getSuccess() { - setSuccess(org.apache.thrift.TBaseHelper.rightSize(success)); - return success == null ? null : success.array(); - } - - public ByteBuffer bufferForSuccess() { - return success; - } - - public getMachineDescription_result setSuccess(byte[] success) { - setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success)); - return this; - } - - public getMachineDescription_result setSuccess(ByteBuffer success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + this.serverError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public getMachineDescription_result setAuthError(TAuthorizationException authError) { + public isAuthenticated_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -12274,64 +14407,32 @@ public class SatelliteServer { } } - public TInternalServerError getFfff() { - return this.ffff; - } - - public getMachineDescription_result setFfff(TInternalServerError ffff) { - this.ffff = ffff; - return this; - } - - public void unsetFfff() { - this.ffff = null; - } - - /** Returns true if field ffff is set (has been assigned a value) and false otherwise */ - public boolean isSetFfff() { - return this.ffff != null; - } - - public void setFfffIsSet(boolean value) { - if (!value) { - this.ffff = null; - } - } - - public TNotFoundException getSdf() { - return this.sdf; + public TInternalServerError getServerError() { + return this.serverError; } - public getMachineDescription_result setSdf(TNotFoundException sdf) { - this.sdf = sdf; + public isAuthenticated_result setServerError(TInternalServerError serverError) { + this.serverError = serverError; return this; } - public void unsetSdf() { - this.sdf = null; + public void unsetServerError() { + this.serverError = null; } - /** Returns true if field sdf is set (has been assigned a value) and false otherwise */ - public boolean isSetSdf() { - return this.sdf != 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 setSdfIsSet(boolean value) { + public void setServerErrorIsSet(boolean value) { if (!value) { - this.sdf = null; + this.serverError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((ByteBuffer)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -12340,19 +14441,11 @@ public class SatelliteServer { } break; - case FFFF: - if (value == null) { - unsetFfff(); - } else { - setFfff((TInternalServerError)value); - } - break; - - case SDF: + case SERVER_ERROR: if (value == null) { - unsetSdf(); + unsetServerError(); } else { - setSdf((TNotFoundException)value); + setServerError((TInternalServerError)value); } break; @@ -12361,17 +14454,11 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); - case FFFF: - return getFfff(); - - case SDF: - return getSdf(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -12384,14 +14471,10 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case FFFF: - return isSetFfff(); - case SDF: - return isSetSdf(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -12400,24 +14483,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getMachineDescription_result) - return this.equals((getMachineDescription_result)that); + if (that instanceof isAuthenticated_result) + return this.equals((isAuthenticated_result)that); return false; } - public boolean equals(getMachineDescription_result that) { + public boolean equals(isAuthenticated_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) { @@ -12427,21 +14501,12 @@ public class SatelliteServer { return false; } - boolean this_present_ffff = true && this.isSetFfff(); - boolean that_present_ffff = true && that.isSetFfff(); - if (this_present_ffff || that_present_ffff) { - if (!(this_present_ffff && that_present_ffff)) - return false; - if (!this.ffff.equals(that.ffff)) - return false; - } - - boolean this_present_sdf = true && this.isSetSdf(); - boolean that_present_sdf = true && that.isSetSdf(); - if (this_present_sdf || that_present_sdf) { - if (!(this_present_sdf && that_present_sdf)) + 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.sdf.equals(that.sdf)) + if (!this.serverError.equals(that.serverError)) return false; } @@ -12454,23 +14519,13 @@ public class SatelliteServer { } @Override - public int compareTo(getMachineDescription_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; - } - } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -12481,22 +14536,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFfff()).compareTo(other.isSetFfff()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFfff()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ffff, other.ffff); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSdf()).compareTo(other.isSetSdf()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSdf()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sdf, other.sdf); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -12518,17 +14563,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getMachineDescription_result("); + StringBuilder sb = new StringBuilder("isAuthenticated_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.success, sb); - } - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -12537,19 +14574,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("ffff:"); - if (this.ffff == null) { - sb.append("null"); - } else { - sb.append(this.ffff); - } - first = false; - if (!first) sb.append(", "); - sb.append("sdf:"); - if (this.sdf == null) { + sb.append("serverError:"); + if (this.serverError == null) { sb.append("null"); } else { - sb.append(this.sdf); + sb.append(this.serverError); } first = false; sb.append(")"); @@ -12577,15 +14606,15 @@ public class SatelliteServer { } } - private static class getMachineDescription_resultStandardSchemeFactory implements SchemeFactory { - public getMachineDescription_resultStandardScheme getScheme() { - return new getMachineDescription_resultStandardScheme(); + private static class isAuthenticated_resultStandardSchemeFactory implements SchemeFactory { + public isAuthenticated_resultStandardScheme getScheme() { + return new isAuthenticated_resultStandardScheme(); } } - private static class getMachineDescription_resultStandardScheme extends StandardScheme { + private static class isAuthenticated_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getMachineDescription_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) @@ -12595,14 +14624,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readBinary(); - 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(); @@ -12612,20 +14633,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // FFFF - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ffff = new TInternalServerError(); - struct.ffff.read(iprot); - struct.setFfffIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SDF + case 2: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sdf = new TNotFoundException(); - struct.sdf.read(iprot); - struct.setSdfIsSet(true); + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12641,28 +14653,18 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getMachineDescription_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.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBinary(struct.success); - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.ffff != null) { - oprot.writeFieldBegin(FFFF_FIELD_DESC); - struct.ffff.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.sdf != null) { - oprot.writeFieldBegin(SDF_FIELD_DESC); - struct.sdf.write(oprot); + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -12671,82 +14673,61 @@ public class SatelliteServer { } - private static class getMachineDescription_resultTupleSchemeFactory implements SchemeFactory { - public getMachineDescription_resultTupleScheme getScheme() { - return new getMachineDescription_resultTupleScheme(); + private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory { + public isAuthenticated_resultTupleScheme getScheme() { + return new isAuthenticated_resultTupleScheme(); } } - private static class getMachineDescription_resultTupleScheme extends TupleScheme { + private static class isAuthenticated_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_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()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetServerError()) { optionals.set(1); } - if (struct.isSetFfff()) { - optionals.set(2); - } - if (struct.isSetSdf()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - oprot.writeBinary(struct.success); - } + oprot.writeBitSet(optionals, 2); if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetFfff()) { - struct.ffff.write(oprot); - } - if (struct.isSetSdf()) { - struct.sdf.write(oprot); + if (struct.isSetServerError()) { + struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_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(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBinary(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { - struct.ffff = new TInternalServerError(); - struct.ffff.read(iprot); - struct.setFfffIsSet(true); - } - if (incoming.get(3)) { - struct.sdf = new TNotFoundException(); - struct.sdf.read(iprot); - struct.setSdfIsSet(true); + if (incoming.get(1)) { + struct.serverError = new TInternalServerError(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(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 whoami_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("whoami_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 isAuthenticated_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isAuthenticated_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new whoami_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new whoami_argsTupleSchemeFactory()); } public String userToken; // required @@ -12816,13 +14797,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(isAuthenticated_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_args.class, metaDataMap); } - public isAuthenticated_args() { + public whoami_args() { } - public isAuthenticated_args( + public whoami_args( String userToken) { this(); @@ -12832,14 +14813,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public isAuthenticated_args(isAuthenticated_args other) { + public whoami_args(whoami_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } } - public isAuthenticated_args deepCopy() { - return new isAuthenticated_args(this); + public whoami_args deepCopy() { + return new whoami_args(this); } @Override @@ -12851,7 +14832,7 @@ public class SatelliteServer { return this.userToken; } - public isAuthenticated_args setUserToken(String userToken) { + public whoami_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -12910,12 +14891,12 @@ 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 whoami_args) + return this.equals((whoami_args)that); return false; } - public boolean equals(isAuthenticated_args that) { + public boolean equals(whoami_args that) { if (that == null) return false; @@ -12937,7 +14918,7 @@ public class SatelliteServer { } @Override - public int compareTo(isAuthenticated_args other) { + public int compareTo(whoami_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12971,7 +14952,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_args("); + StringBuilder sb = new StringBuilder("whoami_args("); boolean first = true; sb.append("userToken:"); @@ -13006,15 +14987,15 @@ public class SatelliteServer { } } - private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory { - public isAuthenticated_argsStandardScheme getScheme() { - return new isAuthenticated_argsStandardScheme(); + private static class whoami_argsStandardSchemeFactory implements SchemeFactory { + public whoami_argsStandardScheme getScheme() { + return new whoami_argsStandardScheme(); } } - private static class isAuthenticated_argsStandardScheme extends StandardScheme { + private static class whoami_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, whoami_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13043,7 +15024,7 @@ 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, whoami_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13058,16 +15039,16 @@ public class SatelliteServer { } - private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory { - public isAuthenticated_argsTupleScheme getScheme() { - return new isAuthenticated_argsTupleScheme(); + private static class whoami_argsTupleSchemeFactory implements SchemeFactory { + public whoami_argsTupleScheme getScheme() { + return new whoami_argsTupleScheme(); } } - private static class isAuthenticated_argsTupleScheme extends TupleScheme { + private static class whoami_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, whoami_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -13080,7 +15061,7 @@ public class SatelliteServer { } @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, whoami_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -13092,23 +15073,26 @@ public class SatelliteServer { } - 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 whoami_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("whoami_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 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 isAuthenticated_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isAuthenticated_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new whoami_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new whoami_resultTupleSchemeFactory()); } + public WhoamiInfo success; // required public TAuthorizationException authError; // required public TInternalServerError serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), SERVER_ERROR((short)2, "serverError"); @@ -13125,6 +15109,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: // SERVER_ERROR @@ -13172,22 +15158,26 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WhoamiInfo.class))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_result.class, metaDataMap); } - public isAuthenticated_result() { + public whoami_result() { } - public isAuthenticated_result( + public whoami_result( + WhoamiInfo success, TAuthorizationException authError, TInternalServerError serverError) { this(); + this.success = success; this.authError = authError; this.serverError = serverError; } @@ -13195,7 +15185,10 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public isAuthenticated_result(isAuthenticated_result other) { + public whoami_result(whoami_result other) { + if (other.isSetSuccess()) { + this.success = new WhoamiInfo(other.success); + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -13204,21 +15197,46 @@ public class SatelliteServer { } } - public isAuthenticated_result deepCopy() { - return new isAuthenticated_result(this); + public whoami_result deepCopy() { + return new whoami_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.serverError = null; } + public WhoamiInfo getSuccess() { + return this.success; + } + + public whoami_result setSuccess(WhoamiInfo 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 isAuthenticated_result setAuthError(TAuthorizationException authError) { + public whoami_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -13242,7 +15260,7 @@ public class SatelliteServer { return this.serverError; } - public isAuthenticated_result setServerError(TInternalServerError serverError) { + public whoami_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -13264,6 +15282,14 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((WhoamiInfo)value); + } + break; + case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -13285,6 +15311,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -13302,6 +15331,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case SERVER_ERROR: @@ -13314,15 +15345,24 @@ 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 whoami_result) + return this.equals((whoami_result)that); return false; } - public boolean equals(isAuthenticated_result that) { + public boolean equals(whoami_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) { @@ -13350,13 +15390,23 @@ public class SatelliteServer { } @Override - public int compareTo(isAuthenticated_result other) { + public int compareTo(whoami_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; @@ -13394,9 +15444,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_result("); + StringBuilder sb = new StringBuilder("whoami_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"); @@ -13419,6 +15477,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 { @@ -13437,15 +15498,15 @@ public class SatelliteServer { } } - private static class isAuthenticated_resultStandardSchemeFactory implements SchemeFactory { - public isAuthenticated_resultStandardScheme getScheme() { - return new isAuthenticated_resultStandardScheme(); + private static class whoami_resultStandardSchemeFactory implements SchemeFactory { + public whoami_resultStandardScheme getScheme() { + return new whoami_resultStandardScheme(); } } - private static class isAuthenticated_resultStandardScheme extends StandardScheme { + private static class whoami_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, whoami_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13455,6 +15516,15 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new WhoamiInfo(); + 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(); @@ -13484,10 +15554,15 @@ 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, whoami_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); @@ -13504,25 +15579,31 @@ public class SatelliteServer { } - private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory { - public isAuthenticated_resultTupleScheme getScheme() { - return new isAuthenticated_resultTupleScheme(); + private static class whoami_resultTupleSchemeFactory implements SchemeFactory { + public whoami_resultTupleScheme getScheme() { + return new whoami_resultTupleScheme(); } } - private static class isAuthenticated_resultTupleScheme extends TupleScheme { + private static class whoami_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, whoami_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.isSetServerError()) { + if (struct.isSetAuthError()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -13532,15 +15613,20 @@ public class SatelliteServer { } @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, whoami_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { + struct.success = new WhoamiInfo(); + struct.success.read(iprot); + 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.serverError = new TInternalServerError(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -13550,15 +15636,15 @@ public class SatelliteServer { } - public static class whoami_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("whoami_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new whoami_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new whoami_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new invalidateSession_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory()); } public String userToken; // required @@ -13628,13 +15714,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(whoami_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap); } - public whoami_args() { + public invalidateSession_args() { } - public whoami_args( + public invalidateSession_args( String userToken) { this(); @@ -13644,14 +15730,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public whoami_args(whoami_args other) { + public invalidateSession_args(invalidateSession_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } } - public whoami_args deepCopy() { - return new whoami_args(this); + public invalidateSession_args deepCopy() { + return new invalidateSession_args(this); } @Override @@ -13663,7 +15749,7 @@ public class SatelliteServer { return this.userToken; } - public whoami_args setUserToken(String userToken) { + public invalidateSession_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -13722,12 +15808,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof whoami_args) - return this.equals((whoami_args)that); + if (that instanceof invalidateSession_args) + return this.equals((invalidateSession_args)that); return false; } - public boolean equals(whoami_args that) { + public boolean equals(invalidateSession_args that) { if (that == null) return false; @@ -13749,7 +15835,7 @@ public class SatelliteServer { } @Override - public int compareTo(whoami_args other) { + public int compareTo(invalidateSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13783,7 +15869,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("whoami_args("); + StringBuilder sb = new StringBuilder("invalidateSession_args("); boolean first = true; sb.append("userToken:"); @@ -13818,15 +15904,15 @@ public class SatelliteServer { } } - private static class whoami_argsStandardSchemeFactory implements SchemeFactory { - public whoami_argsStandardScheme getScheme() { - return new whoami_argsStandardScheme(); + private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory { + public invalidateSession_argsStandardScheme getScheme() { + return new invalidateSession_argsStandardScheme(); } } - private static class whoami_argsStandardScheme extends StandardScheme { + private static class invalidateSession_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_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) @@ -13855,7 +15941,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_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); @@ -13870,16 +15956,16 @@ public class SatelliteServer { } - private static class whoami_argsTupleSchemeFactory implements SchemeFactory { - public whoami_argsTupleScheme getScheme() { - return new whoami_argsTupleScheme(); + private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory { + public invalidateSession_argsTupleScheme getScheme() { + return new invalidateSession_argsTupleScheme(); } } - private static class whoami_argsTupleScheme extends TupleScheme { + private static class invalidateSession_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, whoami_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()) { @@ -13892,7 +15978,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, whoami_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(1); if (incoming.get(0)) { @@ -13904,28 +15990,20 @@ public class SatelliteServer { } - public static class whoami_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("whoami_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.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 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 whoami_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new whoami_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new invalidateSession_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); } - public WhoamiInfo success; // required - public TAuthorizationException authError; // required - public TInternalServerError serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - AUTH_ERROR((short)1, "authError"), - SERVER_ERROR((short)2, "serverError"); +; private static final Map byName = new HashMap(); @@ -13940,12 +16018,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: // SERVER_ERROR - return SERVER_ERROR; default: return null; } @@ -13984,173 +16056,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, WhoamiInfo.class))); - tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_result.class, metaDataMap); - } - - public whoami_result() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); } - public whoami_result( - WhoamiInfo success, - TAuthorizationException authError, - TInternalServerError serverError) - { - this(); - this.success = success; - this.authError = authError; - this.serverError = serverError; + public invalidateSession_result() { } /** * Performs a deep copy on other. */ - public whoami_result(whoami_result other) { - if (other.isSetSuccess()) { - this.success = new WhoamiInfo(other.success); - } - if (other.isSetAuthError()) { - this.authError = new TAuthorizationException(other.authError); - } - if (other.isSetServerError()) { - this.serverError = new TInternalServerError(other.serverError); - } + public invalidateSession_result(invalidateSession_result other) { } - public whoami_result deepCopy() { - return new whoami_result(this); + public invalidateSession_result deepCopy() { + return new invalidateSession_result(this); } @Override public void clear() { - this.success = null; - this.authError = null; - this.serverError = null; - } - - public WhoamiInfo getSuccess() { - return this.success; - } - - public whoami_result setSuccess(WhoamiInfo 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 whoami_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 whoami_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((WhoamiInfo)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); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - - case AUTH_ERROR: - return getAuthError(); - - case SERVER_ERROR: - return getServerError(); - } throw new IllegalStateException(); } @@ -14162,12 +16098,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case AUTH_ERROR: - return isSetAuthError(); - case SERVER_ERROR: - return isSetServerError(); } throw new IllegalStateException(); } @@ -14176,42 +16106,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof whoami_result) - return this.equals((whoami_result)that); + if (that instanceof invalidateSession_result) + return this.equals((invalidateSession_result)that); return false; } - public boolean equals(whoami_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_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)) - return false; - if (!this.serverError.equals(that.serverError)) - return false; - } - return true; } @@ -14221,43 +16124,13 @@ public class SatelliteServer { } @Override - public int compareTo(whoami_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(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; } @@ -14275,32 +16148,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("whoami_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("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(); } @@ -14308,9 +16158,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 { @@ -14329,15 +16176,15 @@ public class SatelliteServer { } } - private static class whoami_resultStandardSchemeFactory implements SchemeFactory { - public whoami_resultStandardScheme getScheme() { - return new whoami_resultStandardScheme(); + private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory { + public invalidateSession_resultStandardScheme getScheme() { + return new invalidateSession_resultStandardScheme(); } } - private static class whoami_resultStandardScheme extends StandardScheme { + private static class invalidateSession_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_result struct) throws org.apache.thrift.TException { + 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) @@ -14347,33 +16194,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new WhoamiInfo(); - 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; - 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); } @@ -14385,104 +16205,56 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_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); - struct.success.write(oprot); - 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 whoami_resultTupleSchemeFactory implements SchemeFactory { - public whoami_resultTupleScheme getScheme() { - return new whoami_resultTupleScheme(); + private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory { + public invalidateSession_resultTupleScheme getScheme() { + return new invalidateSession_resultTupleScheme(); } } - private static class whoami_resultTupleScheme extends TupleScheme { + private static class invalidateSession_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, whoami_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.isSetAuthError()) { - optionals.set(1); - } - if (struct.isSetServerError()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - struct.success.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, whoami_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)) { - struct.success = new WhoamiInfo(); - struct.success.read(iprot); - 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 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 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 invalidateSession_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_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"); + USER_TOKEN((short)1, "userToken"), + PAGE((short)2, "page"); private static final Map byName = new HashMap(); @@ -14499,6 +16271,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; + case 2: // PAGE + return PAGE; default: return null; } @@ -14539,48 +16313,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.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(invalidateSession_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_args.class, metaDataMap); } - public invalidateSession_args() { + public getUserList_args() { } - public invalidateSession_args( - String userToken) + public getUserList_args( + String userToken, + int page) { this(); this.userToken = userToken; + this.page = page; + setPageIsSet(true); } /** * Performs a deep copy on other. */ - public invalidateSession_args(invalidateSession_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 invalidateSession_args deepCopy() { - return new invalidateSession_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 invalidateSession_args setUserToken(String userToken) { + public getUserList_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -14600,6 +16385,29 @@ public class SatelliteServer { } } + 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: @@ -14610,6 +16418,14 @@ public class SatelliteServer { } break; + case PAGE: + if (value == null) { + unsetPage(); + } else { + setPage((Integer)value); + } + break; + } } @@ -14618,6 +16434,9 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case PAGE: + return Integer.valueOf(getPage()); + } throw new IllegalStateException(); } @@ -14631,6 +16450,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -14639,12 +16460,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 getUserList_args) + return this.equals((getUserList_args)that); return false; } - public boolean equals(invalidateSession_args that) { + public boolean equals(getUserList_args that) { if (that == null) return false; @@ -14657,6 +16478,15 @@ 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; } @@ -14666,7 +16496,7 @@ public class SatelliteServer { } @Override - public int compareTo(invalidateSession_args other) { + public int compareTo(getUserList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -14683,6 +16513,16 @@ 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; } @@ -14700,7 +16540,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_args("); + StringBuilder sb = new StringBuilder("getUserList_args("); boolean first = true; sb.append("userToken:"); @@ -14710,6 +16550,10 @@ 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(); } @@ -14729,21 +16573,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_argsStandardSchemeFactory implements SchemeFactory { - public invalidateSession_argsStandardScheme getScheme() { - return new invalidateSession_argsStandardScheme(); + private static class getUserList_argsStandardSchemeFactory implements SchemeFactory { + public getUserList_argsStandardScheme getScheme() { + return new getUserList_argsStandardScheme(); } } - private static class invalidateSession_argsStandardScheme extends StandardScheme { + private static class getUserList_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, getUserList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14761,6 +16607,14 @@ 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); } @@ -14772,7 +16626,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, getUserList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14781,60 +16635,81 @@ 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 invalidateSession_argsTupleSchemeFactory implements SchemeFactory { - public invalidateSession_argsTupleScheme getScheme() { - return new invalidateSession_argsTupleScheme(); + private static class getUserList_argsTupleSchemeFactory implements SchemeFactory { + public getUserList_argsTupleScheme getScheme() { + return new getUserList_argsTupleScheme(); } } - private static class invalidateSession_argsTupleScheme extends TupleScheme { + private static class getUserList_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, getUserList_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.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, invalidateSession_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(1); + 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 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 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 invalidateSession_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserList_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(); @@ -14849,6 +16724,12 @@ 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; } @@ -14887,37 +16768,193 @@ 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.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(invalidateSession_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_result.class, metaDataMap); } - public invalidateSession_result() { + 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 invalidateSession_result(invalidateSession_result 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 invalidateSession_result deepCopy() { - return new invalidateSession_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() { + 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; + } + } + + 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); + } + 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(); } @@ -14929,6 +16966,12 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); + case FAILURE: + return isSetFailure(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -14937,15 +16980,42 @@ 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 getUserList_result) + return this.equals((getUserList_result)that); return false; } - public boolean equals(invalidateSession_result that) { + public boolean equals(getUserList_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; } @@ -14955,13 +17025,43 @@ public class SatelliteServer { } @Override - public int compareTo(invalidateSession_result other) { + public int compareTo(getUserList_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; } @@ -14979,9 +17079,32 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_result("); + StringBuilder sb = new StringBuilder("getUserList_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(); } @@ -15007,15 +17130,15 @@ public class SatelliteServer { } } - private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory { - public invalidateSession_resultStandardScheme getScheme() { - return new invalidateSession_resultStandardScheme(); + private static class getUserList_resultStandardSchemeFactory implements SchemeFactory { + public getUserList_resultStandardScheme getScheme() { + return new getUserList_resultStandardScheme(); } } - private static class invalidateSession_resultStandardScheme extends StandardScheme { + private static class getUserList_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, getUserList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15025,6 +17148,43 @@ public class SatelliteServer { break; } switch (schemeField.id) { + 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) + { + UserInfo _elem156; + _elem156 = new UserInfo(); + _elem156.read(iprot); + struct.success.add(_elem156); + } + 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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15036,56 +17196,124 @@ 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, getUserList_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 _iter157 : struct.success) + { + _iter157.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 invalidateSession_resultTupleSchemeFactory implements SchemeFactory { - public invalidateSession_resultTupleScheme getScheme() { - return new invalidateSession_resultTupleScheme(); + private static class getUserList_resultTupleSchemeFactory implements SchemeFactory { + public getUserList_resultTupleScheme getScheme() { + return new getUserList_resultTupleScheme(); } } - private static class invalidateSession_resultTupleScheme extends TupleScheme { + private static class getUserList_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, getUserList_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 _iter158 : struct.success) + { + _iter158.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, invalidateSession_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(3); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list159.size); + for (int _i160 = 0; _i160 < _list159.size; ++_i160) + { + UserInfo _elem161; + _elem161 = new UserInfo(); + _elem161.read(iprot); + struct.success.add(_elem161); + } + } + 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 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 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 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 getOperatingSystems_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_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(); @@ -15100,10 +17328,6 @@ 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; } @@ -15142,132 +17366,37 @@ 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(getUserList_args.class, metaDataMap); - } - - public getUserList_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); } - public getUserList_args( - String userToken, - int page) - { - this(); - this.userToken = userToken; - this.page = page; - setPageIsSet(true); + public getOperatingSystems_args() { } /** * Performs a deep copy on 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(getOperatingSystems_args other) { } - public getUserList_args deepCopy() { - return new getUserList_args(this); + public getOperatingSystems_args deepCopy() { + return new getOperatingSystems_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(); } @@ -15279,10 +17408,6 @@ public class SatelliteServer { } switch (field) { - case USER_TOKEN: - return isSetUserToken(); - case PAGE: - return isSetPage(); } throw new IllegalStateException(); } @@ -15291,33 +17416,15 @@ 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 getOperatingSystems_args) + return this.equals((getOperatingSystems_args)that); return false; } - public boolean equals(getUserList_args that) { + public boolean equals(getOperatingSystems_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; } @@ -15327,33 +17434,13 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_args other) { + public int compareTo(getOperatingSystems_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; } @@ -15371,20 +17458,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_args("); + StringBuilder sb = new StringBuilder("getOperatingSystems_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(); } @@ -15404,23 +17480,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 getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsStandardScheme getScheme() { + return new getOperatingSystems_argsStandardScheme(); } } - private static class getUserList_argsStandardScheme extends StandardScheme { + private static class getOperatingSystems_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, getOperatingSystems_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15430,22 +17504,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: // 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); } @@ -15457,90 +17515,53 @@ 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, getOperatingSystems_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 getUserList_argsTupleSchemeFactory implements SchemeFactory { - public getUserList_argsTupleScheme getScheme() { - return new getUserList_argsTupleScheme(); + private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsTupleScheme getScheme() { + return new getOperatingSystems_argsTupleScheme(); } } - private static class getUserList_argsTupleScheme extends TupleScheme { + private static class getOperatingSystems_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, getOperatingSystems_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, getUserList_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; - 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 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 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 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 getOperatingSystems_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory()); } - public List success; // required - public TAuthorizationException failure; // 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"), - FAILURE((short)1, "failure"), - SERVER_ERROR((short)2, "serverError"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -15557,10 +17578,6 @@ 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; } @@ -15606,79 +17623,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, 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))); + 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(getUserList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap); } - public getUserList_result() { + public getOperatingSystems_result() { } - public getUserList_result( - List success, - TAuthorizationException failure, - TInternalServerError serverError) + public getOperatingSystems_result( + List success) { this(); this.success = success; - this.failure = failure; - this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getUserList_result(getUserList_result other) { + public getOperatingSystems_result(getOperatingSystems_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)); + 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; } - 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); + public getOperatingSystems_result deepCopy() { + return new getOperatingSystems_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(UserInfo 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 getUserList_result setSuccess(List success) { + public getOperatingSystems_result setSuccess(List success) { this.success = success; return this; } @@ -15698,77 +17699,13 @@ 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); - } - break; - - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((TAuthorizationException)value); - } - break; - - case SERVER_ERROR: - if (value == null) { - unsetServerError(); - } else { - setServerError((TInternalServerError)value); + setSuccess((List)value); } break; @@ -15780,12 +17717,6 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); - case FAILURE: - return getFailure(); - - case SERVER_ERROR: - return getServerError(); - } throw new IllegalStateException(); } @@ -15799,10 +17730,6 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); - case FAILURE: - return isSetFailure(); - case SERVER_ERROR: - return isSetServerError(); } throw new IllegalStateException(); } @@ -15811,12 +17738,12 @@ 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 getOperatingSystems_result) + return this.equals((getOperatingSystems_result)that); return false; } - public boolean equals(getUserList_result that) { + public boolean equals(getOperatingSystems_result that) { if (that == null) return false; @@ -15829,24 +17756,6 @@ 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; } @@ -15856,7 +17765,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_result other) { + public int compareTo(getOperatingSystems_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15873,26 +17782,6 @@ 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; } @@ -15910,7 +17799,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_result("); + StringBuilder sb = new StringBuilder("getOperatingSystems_result("); boolean first = true; sb.append("success:"); @@ -15920,22 +17809,6 @@ 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(); } @@ -15961,15 +17834,15 @@ public class SatelliteServer { } } - private static class getUserList_resultStandardSchemeFactory implements SchemeFactory { - public getUserList_resultStandardScheme getScheme() { - return new getUserList_resultStandardScheme(); + private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultStandardScheme getScheme() { + return new getOperatingSystems_resultStandardScheme(); } } - private static class getUserList_resultStandardScheme extends StandardScheme { + private static class getOperatingSystems_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_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) @@ -15982,14 +17855,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); - struct.success = new ArrayList(_list146.size); - for (int _i147 = 0; _i147 < _list146.size; ++_i147) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.success = new ArrayList(_list162.size); + for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - UserInfo _elem148; - _elem148 = new UserInfo(); - _elem148.read(iprot); - struct.success.add(_elem148); + OperatingSystem _elem164; + _elem164 = new OperatingSystem(); + _elem164.read(iprot); + struct.success.add(_elem164); } iprot.readListEnd(); } @@ -15998,24 +17871,6 @@ 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); } @@ -16027,7 +17882,7 @@ 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, getOperatingSystems_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16035,110 +17890,78 @@ 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 (UserInfo _iter149 : struct.success) + for (OperatingSystem _iter165 : struct.success) { - _iter149.write(oprot); + _iter165.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 getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultTupleScheme getScheme() { + return new getOperatingSystems_resultTupleScheme(); } } - private static class getUserList_resultTupleScheme extends TupleScheme { + private static class getOperatingSystems_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, getOperatingSystems_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); + oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter150 : struct.success) + for (OperatingSystem _iter166 : struct.success) { - _iter150.write(oprot); + _iter166.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, getOperatingSystems_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 _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list151.size); - for (int _i152 = 0; _i152 < _list151.size; ++_i152) + org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list167.size); + for (int _i168 = 0; _i168 < _list167.size; ++_i168) { - UserInfo _elem153; - _elem153 = new UserInfo(); - _elem153.read(iprot); - struct.success.add(_elem153); + OperatingSystem _elem169; + _elem169 = new OperatingSystem(); + _elem169.read(iprot); + struct.success.add(_elem169); } } 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 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 getOperatingSystems_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getVirtualizers_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory()); } @@ -16201,20 +18024,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(getOperatingSystems_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap); } - public getOperatingSystems_args() { + public getVirtualizers_args() { } /** * Performs a deep copy on other. */ - public getOperatingSystems_args(getOperatingSystems_args other) { + public getVirtualizers_args(getVirtualizers_args other) { } - public getOperatingSystems_args deepCopy() { - return new getOperatingSystems_args(this); + public getVirtualizers_args deepCopy() { + return new getVirtualizers_args(this); } @Override @@ -16247,12 +18070,12 @@ 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 getVirtualizers_args) + return this.equals((getVirtualizers_args)that); return false; } - public boolean equals(getOperatingSystems_args that) { + public boolean equals(getVirtualizers_args that) { if (that == null) return false; @@ -16265,7 +18088,7 @@ public class SatelliteServer { } @Override - public int compareTo(getOperatingSystems_args other) { + public int compareTo(getVirtualizers_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16289,7 +18112,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_args("); + StringBuilder sb = new StringBuilder("getVirtualizers_args("); boolean first = true; sb.append(")"); @@ -16317,15 +18140,15 @@ public class SatelliteServer { } } - private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { - public getOperatingSystems_argsStandardScheme getScheme() { - return new getOperatingSystems_argsStandardScheme(); + private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { + public getVirtualizers_argsStandardScheme getScheme() { + return new getVirtualizers_argsStandardScheme(); } } - private static class getOperatingSystems_argsStandardScheme extends StandardScheme { + private static class getVirtualizers_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, getVirtualizers_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16346,7 +18169,7 @@ 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, getVirtualizers_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16356,39 +18179,39 @@ public class SatelliteServer { } - private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { - public getOperatingSystems_argsTupleScheme getScheme() { - return new getOperatingSystems_argsTupleScheme(); + private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { + public getVirtualizers_argsTupleScheme getScheme() { + return new getVirtualizers_argsTupleScheme(); } } - private static class getOperatingSystems_argsTupleScheme extends TupleScheme { + private static class getVirtualizers_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, getVirtualizers_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @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, getVirtualizers_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - 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 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 getOperatingSystems_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_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 { @@ -16454,16 +18277,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, OperatingSystem.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(getOperatingSystems_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); } - public getOperatingSystems_result() { + public getVirtualizers_result() { } - public getOperatingSystems_result( - List success) + public getVirtualizers_result( + List success) { this(); this.success = success; @@ -16472,18 +18295,18 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getOperatingSystems_result(getOperatingSystems_result other) { + public getVirtualizers_result(getVirtualizers_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 (Virtualizer other_element : other.success) { + __this__success.add(new Virtualizer(other_element)); } this.success = __this__success; } } - public getOperatingSystems_result deepCopy() { - return new getOperatingSystems_result(this); + public getVirtualizers_result deepCopy() { + return new getVirtualizers_result(this); } @Override @@ -16495,22 +18318,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(OperatingSystem 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 getOperatingSystems_result setSuccess(List success) { + public getVirtualizers_result setSuccess(List success) { this.success = success; return this; } @@ -16536,7 +18359,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -16569,12 +18392,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 getVirtualizers_result) + return this.equals((getVirtualizers_result)that); return false; } - public boolean equals(getOperatingSystems_result that) { + public boolean equals(getVirtualizers_result that) { if (that == null) return false; @@ -16596,7 +18419,7 @@ public class SatelliteServer { } @Override - public int compareTo(getOperatingSystems_result other) { + public int compareTo(getVirtualizers_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16630,7 +18453,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_result("); + StringBuilder sb = new StringBuilder("getVirtualizers_result("); boolean first = true; sb.append("success:"); @@ -16665,15 +18488,15 @@ public class SatelliteServer { } } - private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { - public getOperatingSystems_resultStandardScheme getScheme() { - return new getOperatingSystems_resultStandardScheme(); + private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { + public getVirtualizers_resultStandardScheme getScheme() { + return new getVirtualizers_resultStandardScheme(); } } - private static class getOperatingSystems_resultStandardScheme extends StandardScheme { + private static class getVirtualizers_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, getVirtualizers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16686,14 +18509,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 _list170 = iprot.readListBegin(); + struct.success = new ArrayList(_list170.size); + for (int _i171 = 0; _i171 < _list170.size; ++_i171) { - OperatingSystem _elem156; - _elem156 = new OperatingSystem(); - _elem156.read(iprot); - struct.success.add(_elem156); + Virtualizer _elem172; + _elem172 = new Virtualizer(); + _elem172.read(iprot); + struct.success.add(_elem172); } iprot.readListEnd(); } @@ -16713,7 +18536,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, getVirtualizers_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16721,9 +18544,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 (OperatingSystem _iter157 : struct.success) + for (Virtualizer _iter173 : struct.success) { - _iter157.write(oprot); + _iter173.write(oprot); } oprot.writeListEnd(); } @@ -16735,16 +18558,16 @@ public class SatelliteServer { } - private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { - public getOperatingSystems_resultTupleScheme getScheme() { - return new getOperatingSystems_resultTupleScheme(); + private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { + public getVirtualizers_resultTupleScheme getScheme() { + return new getVirtualizers_resultTupleScheme(); } } - private static class getOperatingSystems_resultTupleScheme extends TupleScheme { + private static class getVirtualizers_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, getVirtualizers_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -16754,28 +18577,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter158 : struct.success) + for (Virtualizer _iter174 : struct.success) { - _iter158.write(oprot); + _iter174.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, 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 _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 _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list175.size); + for (int _i176 = 0; _i176 < _list175.size; ++_i176) { - OperatingSystem _elem161; - _elem161 = new OperatingSystem(); - _elem161.read(iprot); - struct.success.add(_elem161); + Virtualizer _elem177; + _elem177 = new Virtualizer(); + _elem177.read(iprot); + struct.success.add(_elem177); } } struct.setSuccessIsSet(true); @@ -16785,14 +18608,14 @@ public class SatelliteServer { } - 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 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 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 getAllOrganizations_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); } @@ -16855,20 +18678,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(getAllOrganizations_args.class, metaDataMap); } - public getVirtualizers_args() { + public getAllOrganizations_args() { } /** * Performs a deep copy on other. */ - public getVirtualizers_args(getVirtualizers_args other) { + public getAllOrganizations_args(getAllOrganizations_args other) { } - public getVirtualizers_args deepCopy() { - return new getVirtualizers_args(this); + public getAllOrganizations_args deepCopy() { + return new getAllOrganizations_args(this); } @Override @@ -16901,12 +18724,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 getAllOrganizations_args) + return this.equals((getAllOrganizations_args)that); return false; } - public boolean equals(getVirtualizers_args that) { + public boolean equals(getAllOrganizations_args that) { if (that == null) return false; @@ -16919,7 +18742,7 @@ public class SatelliteServer { } @Override - public int compareTo(getVirtualizers_args other) { + public int compareTo(getAllOrganizations_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16943,7 +18766,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_args("); + StringBuilder sb = new StringBuilder("getAllOrganizations_args("); boolean first = true; sb.append(")"); @@ -16971,15 +18794,15 @@ public class SatelliteServer { } } - private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { - public getVirtualizers_argsStandardScheme getScheme() { - return new getVirtualizers_argsStandardScheme(); + private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { + public getAllOrganizations_argsStandardScheme getScheme() { + return new getAllOrganizations_argsStandardScheme(); } } - private static class getVirtualizers_argsStandardScheme extends StandardScheme { + private static class getAllOrganizations_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, getAllOrganizations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17000,7 +18823,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, getAllOrganizations_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17010,39 +18833,39 @@ public class SatelliteServer { } - private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { - public getVirtualizers_argsTupleScheme getScheme() { - return new getVirtualizers_argsTupleScheme(); + private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { + public getAllOrganizations_argsTupleScheme getScheme() { + return new getAllOrganizations_argsTupleScheme(); } } - private static class getVirtualizers_argsTupleScheme extends TupleScheme { + private static class getAllOrganizations_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, getAllOrganizations_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, getAllOrganizations_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 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 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 getAllOrganizations_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOrganizations_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 { @@ -17108,16 +18931,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, Organization.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); } - public getVirtualizers_result() { + public getAllOrganizations_result() { } - public getVirtualizers_result( - List success) + public getAllOrganizations_result( + List success) { this(); this.success = success; @@ -17126,18 +18949,18 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getVirtualizers_result(getVirtualizers_result other) { + public getAllOrganizations_result(getAllOrganizations_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 (Organization other_element : other.success) { + __this__success.add(new Organization(other_element)); } this.success = __this__success; } } - public getVirtualizers_result deepCopy() { - return new getVirtualizers_result(this); + public getAllOrganizations_result deepCopy() { + return new getAllOrganizations_result(this); } @Override @@ -17149,22 +18972,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(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 getVirtualizers_result setSuccess(List success) { + public getAllOrganizations_result setSuccess(List success) { this.success = success; return this; } @@ -17190,7 +19013,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -17223,12 +19046,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 getAllOrganizations_result) + return this.equals((getAllOrganizations_result)that); return false; } - public boolean equals(getVirtualizers_result that) { + public boolean equals(getAllOrganizations_result that) { if (that == null) return false; @@ -17250,7 +19073,7 @@ public class SatelliteServer { } @Override - public int compareTo(getVirtualizers_result other) { + public int compareTo(getAllOrganizations_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17284,7 +19107,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_result("); + StringBuilder sb = new StringBuilder("getAllOrganizations_result("); boolean first = true; sb.append("success:"); @@ -17319,15 +19142,15 @@ public class SatelliteServer { } } - private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { - public getVirtualizers_resultStandardScheme getScheme() { - return new getVirtualizers_resultStandardScheme(); + private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { + public getAllOrganizations_resultStandardScheme getScheme() { + return new getAllOrganizations_resultStandardScheme(); } } - private static class getVirtualizers_resultStandardScheme extends StandardScheme { + private static class getAllOrganizations_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, getAllOrganizations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17340,14 +19163,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); - struct.success = new ArrayList(_list162.size); - for (int _i163 = 0; _i163 < _list162.size; ++_i163) + org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); + struct.success = new ArrayList(_list178.size); + for (int _i179 = 0; _i179 < _list178.size; ++_i179) { - Virtualizer _elem164; - _elem164 = new Virtualizer(); - _elem164.read(iprot); - struct.success.add(_elem164); + Organization _elem180; + _elem180 = new Organization(); + _elem180.read(iprot); + struct.success.add(_elem180); } iprot.readListEnd(); } @@ -17367,7 +19190,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, getAllOrganizations_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17375,9 +19198,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 _iter165 : struct.success) + for (Organization _iter181 : struct.success) { - _iter165.write(oprot); + _iter181.write(oprot); } oprot.writeListEnd(); } @@ -17389,16 +19212,16 @@ public class SatelliteServer { } - private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { - public getVirtualizers_resultTupleScheme getScheme() { - return new getVirtualizers_resultTupleScheme(); + private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { + public getAllOrganizations_resultTupleScheme getScheme() { + return new getAllOrganizations_resultTupleScheme(); } } - private static class getVirtualizers_resultTupleScheme extends TupleScheme { + private static class getAllOrganizations_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, getAllOrganizations_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -17408,28 +19231,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter166 : struct.success) + for (Organization _iter182 : struct.success) { - _iter166.write(oprot); + _iter182.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, getAllOrganizations_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 _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list167.size); - for (int _i168 = 0; _i168 < _list167.size; ++_i168) + org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list183.size); + for (int _i184 = 0; _i184 < _list183.size; ++_i184) { - Virtualizer _elem169; - _elem169 = new Virtualizer(); - _elem169.read(iprot); - struct.success.add(_elem169); + Organization _elem185; + _elem185 = new Organization(); + _elem185.read(iprot); + struct.success.add(_elem185); } } struct.setSuccessIsSet(true); @@ -17439,20 +19262,28 @@ 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 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 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 getAllOrganizations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); } + public String userToken; // 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"), + TAG_SEARCH((short)2, "tagSearch"), + PAGE((short)3, "page"); private static final Map byName = new HashMap(); @@ -17467,6 +19298,12 @@ 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; + case 3: // PAGE + return PAGE; default: return null; } @@ -17497,45 +19334,200 @@ public class SatelliteServer { _fieldName = fieldName; } - public short getThriftFieldId() { - return _thriftId; - } + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + 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.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(getImageList_args.class, metaDataMap); + } + + public getImageList_args() { + } + + public getImageList_args( + String userToken, + List tagSearch, + int page) + { + this(); + this.userToken = userToken; + this.tagSearch = tagSearch; + this.page = page; + setPageIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public getImageList_args(getImageList_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetTagSearch()) { + List __this__tagSearch = new ArrayList(other.tagSearch); + this.tagSearch = __this__tagSearch; + } + this.page = other.page; + } + + public getImageList_args deepCopy() { + return new getImageList_args(this); + } + + @Override + public void clear() { + this.userToken = null; + this.tagSearch = null; + setPageIsSet(false); + this.page = 0; + } + + 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 String getFieldName() { - return _fieldName; + public void setTagSearchIsSet(boolean value) { + if (!value) { + this.tagSearch = null; } } - 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(getAllOrganizations_args.class, metaDataMap); + + public int getPage() { + return this.page; } - public getAllOrganizations_args() { + public getImageList_args setPage(int page) { + this.page = page; + setPageIsSet(true); + return this; } - /** - * Performs a deep copy on other. - */ - public getAllOrganizations_args(getAllOrganizations_args other) { + public void unsetPage() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); } - public getAllOrganizations_args deepCopy() { - return new getAllOrganizations_args(this); + /** 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); } - @Override - public void clear() { + 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 TAG_SEARCH: + if (value == null) { + unsetTagSearch(); + } else { + setTagSearch((List)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 TAG_SEARCH: + return getTagSearch(); + + case PAGE: + return Integer.valueOf(getPage()); + } throw new IllegalStateException(); } @@ -17547,6 +19539,12 @@ public class SatelliteServer { } switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case TAG_SEARCH: + return isSetTagSearch(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -17555,15 +19553,42 @@ 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 getImageList_args) + return this.equals((getImageList_args)that); return false; } - public boolean equals(getAllOrganizations_args that) { + public boolean equals(getImageList_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; + } + + 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; } @@ -17573,13 +19598,43 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_args other) { + public int compareTo(getImageList_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; + } + } + 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; } @@ -17597,9 +19652,28 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_args("); + StringBuilder sb = new StringBuilder("getImageList_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; + if (!first) sb.append(", "); + sb.append("page:"); + sb.append(this.page); + first = false; sb.append(")"); return sb.toString(); } @@ -17619,21 +19693,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 getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsStandardScheme getScheme() { - return new getAllOrganizations_argsStandardScheme(); + private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { + public getImageList_argsStandardScheme getScheme() { + return new getImageList_argsStandardScheme(); } } - private static class getAllOrganizations_argsStandardScheme extends StandardScheme { + private static class getImageList_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, getImageList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17643,6 +19719,40 @@ 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: // TAG_SEARCH + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(); + struct.tagSearch = new ArrayList(_list186.size); + for (int _i187 = 0; _i187 < _list186.size; ++_i187) + { + String _elem188; + _elem188 = iprot.readString(); + struct.tagSearch.add(_elem188); + } + 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); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17654,53 +19764,127 @@ 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, getImageList_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 _iter189 : struct.tagSearch) + { + oprot.writeString(_iter189); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsTupleScheme getScheme() { - return new getAllOrganizations_argsTupleScheme(); + private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { + public getImageList_argsTupleScheme getScheme() { + return new getImageList_argsTupleScheme(); } } - private static class getAllOrganizations_argsTupleScheme extends TupleScheme { + private static class getImageList_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, getImageList_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); + } + if (struct.isSetPage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetTagSearch()) { + { + oprot.writeI32(struct.tagSearch.size()); + for (String _iter190 : struct.tagSearch) + { + oprot.writeString(_iter190); + } + } + } + if (struct.isSetPage()) { + oprot.writeI32(struct.page); + } } @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, getImageList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tagSearch = new ArrayList(_list191.size); + for (int _i192 = 0; _i192 < _list191.size; ++_i192) + { + String _elem193; + _elem193 = iprot.readString(); + struct.tagSearch.add(_elem193); + } + } + struct.setTagSearchIsSet(true); + } + if (incoming.get(2)) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); + } } } } - 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 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.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 getAllOrganizations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required + public TAuthorizationException authError; // required + public TInternalServerError serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); + SUCCESS((short)0, "success"), + AUTH_ERROR((short)1, "authError"), + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -17717,6 +19901,10 @@ 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; } @@ -17762,63 +19950,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, Organization.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageSummaryRead.class)))); + tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); } - public getAllOrganizations_result() { + public getImageList_result() { } - public getAllOrganizations_result( - List success) + public getImageList_result( + List success, + TAuthorizationException authError, + TInternalServerError serverError) { this(); this.success = success; + this.authError = authError; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getAllOrganizations_result(getAllOrganizations_result other) { + public getImageList_result(getImageList_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 (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.isSetServerError()) { + this.serverError = new TInternalServerError(other.serverError); + } } - public getAllOrganizations_result deepCopy() { - return new getAllOrganizations_result(this); + public getImageList_result deepCopy() { + return new getImageList_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(Organization elem) { + public void addToSuccess(ImageSummaryRead 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 getImageList_result setSuccess(List success) { this.success = success; return this; } @@ -17838,13 +20042,77 @@ 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); + 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); } break; @@ -17856,6 +20124,12 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); + case AUTH_ERROR: + return getAuthError(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -17869,6 +20143,10 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); + case AUTH_ERROR: + return isSetAuthError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -17877,12 +20155,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 getImageList_result) + return this.equals((getImageList_result)that); return false; } - public boolean equals(getAllOrganizations_result that) { + public boolean equals(getImageList_result that) { if (that == null) return false; @@ -17895,6 +20173,24 @@ 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)) + 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)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -17904,7 +20200,7 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_result other) { + public int compareTo(getImageList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17921,6 +20217,26 @@ 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; } @@ -17938,7 +20254,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_result("); + StringBuilder sb = new StringBuilder("getImageList_result("); boolean first = true; sb.append("success:"); @@ -17948,6 +20264,22 @@ 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(); } @@ -17973,15 +20305,15 @@ public class SatelliteServer { } } - private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultStandardScheme getScheme() { - return new getAllOrganizations_resultStandardScheme(); + private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { + public getImageList_resultStandardScheme getScheme() { + return new getImageList_resultStandardScheme(); } } - private static class getAllOrganizations_resultStandardScheme extends StandardScheme { + private static class getImageList_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, getImageList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17994,14 +20326,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list170 = iprot.readListBegin(); - struct.success = new ArrayList(_list170.size); - for (int _i171 = 0; _i171 < _list170.size; ++_i171) + org.apache.thrift.protocol.TList _list194 = iprot.readListBegin(); + struct.success = new ArrayList(_list194.size); + for (int _i195 = 0; _i195 < _list194.size; ++_i195) { - Organization _elem172; - _elem172 = new Organization(); - _elem172.read(iprot); - struct.success.add(_elem172); + ImageSummaryRead _elem196; + _elem196 = new ImageSummaryRead(); + _elem196.read(iprot); + struct.success.add(_elem196); } iprot.readListEnd(); } @@ -18010,6 +20342,24 @@ 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); } @@ -18021,7 +20371,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, getImageList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18029,92 +20379,121 @@ 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 _iter173 : struct.success) + for (ImageSummaryRead _iter197 : struct.success) { - _iter173.write(oprot); + _iter197.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 getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultTupleScheme getScheme() { - return new getAllOrganizations_resultTupleScheme(); + private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { + public getImageList_resultTupleScheme getScheme() { + return new getImageList_resultTupleScheme(); } } - private static class getAllOrganizations_resultTupleScheme extends TupleScheme { + private static class getImageList_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, getImageList_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.isSetAuthError()) { + optionals.set(1); + } + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter174 : struct.success) + for (ImageSummaryRead _iter198 : struct.success) { - _iter174.write(oprot); + _iter198.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, getAllOrganizations_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(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list175.size); - for (int _i176 = 0; _i176 < _list175.size; ++_i176) + org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list199.size); + for (int _i200 = 0; _i200 < _list199.size; ++_i200) { - Organization _elem177; - _elem177 = new Organization(); - _elem177.read(iprot); - struct.success.add(_elem177); + ImageSummaryRead _elem201; + _elem201 = new ImageSummaryRead(); + _elem201.read(iprot); + struct.success.add(_elem201); } } 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 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 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 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 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 getImageList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); } public String userToken; // required - public List tagSearch; // required - public int page; // 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"), - TAG_SEARCH((short)2, "tagSearch"), - PAGE((short)3, "page"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -18131,10 +20510,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // TAG_SEARCH - return TAG_SEARCH; - case 3: // PAGE - return PAGE; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; default: return null; } @@ -18175,69 +20552,56 @@ 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.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))); + 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(getImageList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap); } - public getImageList_args() { + public getImageDetails_args() { } - public getImageList_args( + public getImageDetails_args( String userToken, - List tagSearch, - int page) + String imageBaseId) { this(); this.userToken = userToken; - this.tagSearch = tagSearch; - this.page = page; - setPageIsSet(true); + this.imageBaseId = imageBaseId; } /** * Performs a deep copy on other. */ - public getImageList_args(getImageList_args other) { - __isset_bitfield = other.__isset_bitfield; + public getImageDetails_args(getImageDetails_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetTagSearch()) { - List __this__tagSearch = new ArrayList(other.tagSearch); - this.tagSearch = __this__tagSearch; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } - this.page = other.page; } - public getImageList_args deepCopy() { - return new getImageList_args(this); + public getImageDetails_args deepCopy() { + return new getImageDetails_args(this); } @Override public void clear() { this.userToken = null; - this.tagSearch = null; - setPageIsSet(false); - this.page = 0; + this.imageBaseId = null; } public String getUserToken() { return this.userToken; } - public getImageList_args setUserToken(String userToken) { + public getImageDetails_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -18257,68 +20621,30 @@ public class SatelliteServer { } } - 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 String getImageBaseId() { + return this.imageBaseId; } - public getImageList_args setTagSearch(List tagSearch) { - this.tagSearch = tagSearch; + public getImageDetails_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetTagSearch() { - this.tagSearch = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field tagSearch is set (has been assigned a value) and false otherwise */ - public boolean isSetTagSearch() { - return this.tagSearch != 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 setTagSearchIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.tagSearch = null; + this.imageBaseId = null; } } - public int getPage() { - return this.page; - } - - public getImageList_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: @@ -18329,19 +20655,11 @@ public class SatelliteServer { } break; - case TAG_SEARCH: - if (value == null) { - unsetTagSearch(); - } else { - setTagSearch((List)value); - } - break; - - case PAGE: + case IMAGE_BASE_ID: if (value == null) { - unsetPage(); + unsetImageBaseId(); } else { - setPage((Integer)value); + setImageBaseId((String)value); } break; @@ -18353,11 +20671,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case TAG_SEARCH: - return getTagSearch(); - - case PAGE: - return Integer.valueOf(getPage()); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -18372,10 +20687,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case TAG_SEARCH: - return isSetTagSearch(); - case PAGE: - return isSetPage(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); } throw new IllegalStateException(); } @@ -18384,12 +20697,12 @@ 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 getImageDetails_args) + return this.equals((getImageDetails_args)that); return false; } - public boolean equals(getImageList_args that) { + public boolean equals(getImageDetails_args that) { if (that == null) return false; @@ -18402,21 +20715,12 @@ public class SatelliteServer { 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; - } - - boolean this_present_page = true; - boolean that_present_page = true; - if (this_present_page || that_present_page) { - if (!(this_present_page && that_present_page)) + 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.page != that.page) + if (!this.imageBaseId.equals(that.imageBaseId)) return false; } @@ -18429,7 +20733,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageList_args other) { + public int compareTo(getImageDetails_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -18446,22 +20750,12 @@ public class SatelliteServer { 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; - } - } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetPage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } @@ -18483,7 +20777,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_args("); + StringBuilder sb = new StringBuilder("getImageDetails_args("); boolean first = true; sb.append("userToken:"); @@ -18494,17 +20788,13 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("tagSearch:"); - if (this.tagSearch == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.tagSearch); + sb.append(this.imageBaseId); } first = false; - if (!first) sb.append(", "); - sb.append("page:"); - sb.append(this.page); - first = false; sb.append(")"); return sb.toString(); } @@ -18524,23 +20814,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 getImageList_argsStandardSchemeFactory implements SchemeFactory { - public getImageList_argsStandardScheme getScheme() { - return new getImageList_argsStandardScheme(); + private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory { + public getImageDetails_argsStandardScheme getScheme() { + return new getImageDetails_argsStandardScheme(); } } - private static class getImageList_argsStandardScheme extends StandardScheme { + private static class getImageDetails_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_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) @@ -18558,28 +20846,10 @@ public class SatelliteServer { 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 _list178 = iprot.readListBegin(); - struct.tagSearch = new ArrayList(_list178.size); - for (int _i179 = 0; _i179 < _list178.size; ++_i179) - { - String _elem180; - _elem180 = iprot.readString(); - struct.tagSearch.add(_elem180); - } - 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); + 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); } @@ -18595,7 +20865,7 @@ 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, getImageDetails_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18604,118 +20874,86 @@ public class SatelliteServer { 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 _iter181 : struct.tagSearch) - { - oprot.writeString(_iter181); - } - oprot.writeListEnd(); - } + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(PAGE_FIELD_DESC); - oprot.writeI32(struct.page); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { - public getImageList_argsTupleScheme getScheme() { - return new getImageList_argsTupleScheme(); + private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { + public getImageDetails_argsTupleScheme getScheme() { + return new getImageDetails_argsTupleScheme(); } } - private static class getImageList_argsTupleScheme extends TupleScheme { + private static class getImageDetails_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, getImageDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetTagSearch()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetPage()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetTagSearch()) { - { - oprot.writeI32(struct.tagSearch.size()); - for (String _iter182 : struct.tagSearch) - { - oprot.writeString(_iter182); - } - } - } - if (struct.isSetPage()) { - oprot.writeI32(struct.page); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } } @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, getImageDetails_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)) { - { - org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tagSearch = new ArrayList(_list183.size); - for (int _i184 = 0; _i184 < _list183.size; ++_i184) - { - String _elem185; - _elem185 = iprot.readString(); - struct.tagSearch.add(_elem185); - } - } - struct.setTagSearchIsSet(true); - } - if (incoming.get(2)) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(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 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.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 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 getImageList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageDetails_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); } - public List success; // required + public ImageDetailsRead success; // required public TAuthorizationException authError; // required + public TNotFoundException notFound; // required public TInternalServerError serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), - SERVER_ERROR((short)2, "serverError"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -18734,7 +20972,9 @@ public class SatelliteServer { 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; @@ -18780,80 +21020,68 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageSummaryRead.class)))); + 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.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(getImageList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap); } - public getImageList_result() { + public getImageDetails_result() { } - public getImageList_result( - List success, + public getImageDetails_result( + ImageDetailsRead 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 getImageList_result(getImageList_result other) { + public getImageDetails_result(getImageDetails_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)); - } - this.success = __this__success; + this.success = new ImageDetailsRead(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 getImageList_result deepCopy() { - return new getImageList_result(this); + public getImageDetails_result deepCopy() { + return new getImageDetails_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(ImageSummaryRead elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public ImageDetailsRead getSuccess() { return this.success; } - public getImageList_result setSuccess(List success) { + public getImageDetails_result setSuccess(ImageDetailsRead success) { this.success = success; return this; } @@ -18877,7 +21105,7 @@ public class SatelliteServer { return this.authError; } - public getImageList_result setAuthError(TAuthorizationException authError) { + public getImageDetails_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -18897,11 +21125,35 @@ 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 getImageList_result setServerError(TInternalServerError serverError) { + public getImageDetails_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -18927,7 +21179,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((ImageDetailsRead)value); } break; @@ -18939,6 +21191,14 @@ public class SatelliteServer { } break; + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + case SERVER_ERROR: if (value == null) { unsetServerError(); @@ -18958,6 +21218,9 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); + case NOT_FOUND: + return getNotFound(); + case SERVER_ERROR: return getServerError(); @@ -18976,6 +21239,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -18986,12 +21251,12 @@ 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 getImageDetails_result) + return this.equals((getImageDetails_result)that); return false; } - public boolean equals(getImageList_result that) { + public boolean equals(getImageDetails_result that) { if (that == null) return false; @@ -19013,6 +21278,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) { @@ -19031,7 +21305,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageList_result other) { + public int compareTo(getImageDetails_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19058,6 +21332,16 @@ 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; @@ -19085,7 +21369,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_result("); + StringBuilder sb = new StringBuilder("getImageDetails_result("); boolean first = true; sb.append("success:"); @@ -19104,6 +21388,14 @@ 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"); @@ -19118,6 +21410,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 { @@ -19136,15 +21431,15 @@ public class SatelliteServer { } } - private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { - public getImageList_resultStandardScheme getScheme() { - return new getImageList_resultStandardScheme(); + private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { + public getImageDetails_resultStandardScheme getScheme() { + return new getImageDetails_resultStandardScheme(); } } - private static class getImageList_resultStandardScheme extends StandardScheme { + private static class getImageDetails_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, getImageDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19155,19 +21450,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(); - struct.success = new ArrayList(_list186.size); - for (int _i187 = 0; _i187 < _list186.size; ++_i187) - { - ImageSummaryRead _elem188; - _elem188 = new ImageSummaryRead(); - _elem188.read(iprot); - struct.success.add(_elem188); - } - iprot.readListEnd(); - } + 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); @@ -19182,7 +21467,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); @@ -19202,20 +21496,13 @@ 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, getImageDetails_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 (ImageSummaryRead _iter189 : struct.success) - { - _iter189.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -19223,6 +21510,11 @@ 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); @@ -19234,16 +21526,16 @@ public class SatelliteServer { } - private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { - public getImageList_resultTupleScheme getScheme() { - return new getImageList_resultTupleScheme(); + private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { + public getImageDetails_resultTupleScheme getScheme() { + return new getImageDetails_resultTupleScheme(); } } - private static class getImageList_resultTupleScheme extends TupleScheme { + private static class getImageDetails_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, getImageDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -19252,43 +21544,34 @@ public class SatelliteServer { 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 (ImageSummaryRead _iter190 : struct.success) - { - _iter190.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } if (struct.isSetServerError()) { struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_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(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list191.size); - for (int _i192 = 0; _i192 < _list191.size; ++_i192) - { - ImageSummaryRead _elem193; - _elem193 = new ImageSummaryRead(); - _elem193.read(iprot); - struct.success.add(_elem193); - } - } + struct.success = new ImageDetailsRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -19297,6 +21580,11 @@ 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); @@ -19306,25 +21594,25 @@ public class SatelliteServer { } - 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 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_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 getImageDetails_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createImage_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // 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_NAME((short)2, "imageName"); private static final Map byName = new HashMap(); @@ -19341,8 +21629,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; + case 2: // IMAGE_NAME + return IMAGE_NAME; default: return null; } @@ -19388,51 +21676,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_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(getImageDetails_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_args.class, metaDataMap); } - public getImageDetails_args() { + public createImage_args() { } - public getImageDetails_args( + public createImage_args( String userToken, - String imageBaseId) + String imageName) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; + this.imageName = imageName; } /** * Performs a deep copy on other. */ - public getImageDetails_args(getImageDetails_args other) { + public createImage_args(createImage_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetImageName()) { + this.imageName = other.imageName; } } - public getImageDetails_args deepCopy() { - return new getImageDetails_args(this); + public createImage_args deepCopy() { + return new createImage_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; + this.imageName = null; } public String getUserToken() { return this.userToken; } - public getImageDetails_args setUserToken(String userToken) { + public createImage_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -19452,27 +21740,27 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public String getImageName() { + return this.imageName; } - public getImageDetails_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public createImage_args setImageName(String imageName) { + this.imageName = imageName; return this; } - public void unsetImageBaseId() { - this.imageBaseId = null; + public void unsetImageName() { + 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; + /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ + public boolean isSetImageName() { + return this.imageName != null; } - public void setImageBaseIdIsSet(boolean value) { + public void setImageNameIsSet(boolean value) { if (!value) { - this.imageBaseId = null; + this.imageName = null; } } @@ -19486,11 +21774,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: + case IMAGE_NAME: if (value == null) { - unsetImageBaseId(); + unsetImageName(); } else { - setImageBaseId((String)value); + setImageName((String)value); } break; @@ -19502,8 +21790,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case IMAGE_NAME: + return getImageName(); } throw new IllegalStateException(); @@ -19518,8 +21806,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); + case IMAGE_NAME: + return isSetImageName(); } throw new IllegalStateException(); } @@ -19528,12 +21816,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 createImage_args) + return this.equals((createImage_args)that); return false; } - public boolean equals(getImageDetails_args that) { + public boolean equals(createImage_args that) { if (that == null) return false; @@ -19546,12 +21834,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) + boolean this_present_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.imageBaseId.equals(that.imageBaseId)) + if (!this.imageName.equals(that.imageName)) return false; } @@ -19564,7 +21852,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageDetails_args other) { + public int compareTo(createImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19581,12 +21869,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (isSetImageName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); if (lastComparison != 0) { return lastComparison; } @@ -19608,7 +21896,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_args("); + StringBuilder sb = new StringBuilder("createImage_args("); boolean first = true; sb.append("userToken:"); @@ -19619,11 +21907,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { + sb.append("imageName:"); + if (this.imageName == null) { sb.append("null"); } else { - sb.append(this.imageBaseId); + sb.append(this.imageName); } first = false; sb.append(")"); @@ -19651,15 +21939,15 @@ public class SatelliteServer { } } - private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory { - public getImageDetails_argsStandardScheme getScheme() { - return new getImageDetails_argsStandardScheme(); + private static class createImage_argsStandardSchemeFactory implements SchemeFactory { + public createImage_argsStandardScheme getScheme() { + return new createImage_argsStandardScheme(); } } - private static class getImageDetails_argsStandardScheme extends StandardScheme { + private static class createImage_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, createImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19677,10 +21965,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); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19696,7 +21984,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, createImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19705,9 +21993,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); + if (struct.imageName != null) { + oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); + oprot.writeString(struct.imageName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -19716,35 +22004,35 @@ public class SatelliteServer { } - private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { - public getImageDetails_argsTupleScheme getScheme() { - return new getImageDetails_argsTupleScheme(); + private static class createImage_argsTupleSchemeFactory implements SchemeFactory { + public createImage_argsTupleScheme getScheme() { + return new createImage_argsTupleScheme(); } } - private static class getImageDetails_argsTupleScheme extends TupleScheme { + private static class createImage_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, 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); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); + if (struct.isSetImageName()) { + oprot.writeString(struct.imageName); } } @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, createImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -19752,38 +22040,38 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(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 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.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.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)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 getImageDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); } - public ImageDetailsRead success; // required + 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)2, "imgError"), SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -19803,8 +22091,8 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // NOT_FOUND - return NOT_FOUND; + case 2: // IMG_ERROR + return IMG_ERROR; case 3: // SERVER_ERROR return SERVER_ERROR; default: @@ -19851,68 +22139,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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageDetailsRead.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.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(getImageDetails_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_result.class, metaDataMap); } - public getImageDetails_result() { + public createImage_result() { } - public getImageDetails_result( - ImageDetailsRead success, + 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; } /** * Performs a deep copy on other. */ - public getImageDetails_result(getImageDetails_result other) { + public createImage_result(createImage_result other) { if (other.isSetSuccess()) { - this.success = new ImageDetailsRead(other.success); + this.success = other.success; } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetNotFound()) { - this.notFound = new TNotFoundException(other.notFound); + if (other.isSetImgError()) { + this.imgError = new TImageDataException(other.imgError); } if (other.isSetServerError()) { this.serverError = new TInternalServerError(other.serverError); } } - public getImageDetails_result deepCopy() { - return new getImageDetails_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 ImageDetailsRead getSuccess() { + public String getSuccess() { return this.success; } - public getImageDetails_result setSuccess(ImageDetailsRead success) { + public createImage_result setSuccess(String success) { this.success = success; return this; } @@ -19936,7 +22224,7 @@ public class SatelliteServer { return this.authError; } - public getImageDetails_result setAuthError(TAuthorizationException authError) { + public createImage_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -19956,27 +22244,27 @@ public class SatelliteServer { } } - public TNotFoundException getNotFound() { - return this.notFound; + public TImageDataException getImgError() { + return this.imgError; } - public getImageDetails_result setNotFound(TNotFoundException notFound) { - this.notFound = notFound; + public createImage_result setImgError(TImageDataException imgError) { + this.imgError = imgError; return this; } - public void unsetNotFound() { - this.notFound = null; + public void unsetImgError() { + 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; + /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ + public boolean isSetImgError() { + return this.imgError != null; } - public void setNotFoundIsSet(boolean value) { + public void setImgErrorIsSet(boolean value) { if (!value) { - this.notFound = null; + this.imgError = null; } } @@ -19984,7 +22272,7 @@ public class SatelliteServer { return this.serverError; } - public getImageDetails_result setServerError(TInternalServerError serverError) { + public createImage_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -20010,7 +22298,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((ImageDetailsRead)value); + setSuccess((String)value); } break; @@ -20022,11 +22310,11 @@ public class SatelliteServer { } break; - case NOT_FOUND: + case IMG_ERROR: if (value == null) { - unsetNotFound(); + unsetImgError(); } else { - setNotFound((TNotFoundException)value); + setImgError((TImageDataException)value); } break; @@ -20049,8 +22337,8 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); - case NOT_FOUND: - return getNotFound(); + case IMG_ERROR: + return getImgError(); case SERVER_ERROR: return getServerError(); @@ -20070,8 +22358,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); case SERVER_ERROR: return isSetServerError(); } @@ -20082,12 +22370,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 createImage_result) + return this.equals((createImage_result)that); return false; } - public boolean equals(getImageDetails_result that) { + public boolean equals(createImage_result that) { if (that == null) return false; @@ -20109,12 +22397,12 @@ public class SatelliteServer { return false; } - boolean this_present_notFound = true && this.isSetNotFound(); - boolean that_present_notFound = true && that.isSetNotFound(); - if (this_present_notFound || that_present_notFound) { - if (!(this_present_notFound && that_present_notFound)) + boolean this_present_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.notFound.equals(that.notFound)) + if (!this.imgError.equals(that.imgError)) return false; } @@ -20136,7 +22424,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageDetails_result other) { + public int compareTo(createImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20163,12 +22451,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); if (lastComparison != 0) { return lastComparison; } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); if (lastComparison != 0) { return lastComparison; } @@ -20200,7 +22488,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_result("); + StringBuilder sb = new StringBuilder("createImage_result("); boolean first = true; sb.append("success:"); @@ -20219,11 +22507,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("notFound:"); - if (this.notFound == null) { + sb.append("imgError:"); + if (this.imgError == null) { sb.append("null"); } else { - sb.append(this.notFound); + sb.append(this.imgError); } first = false; if (!first) sb.append(", "); @@ -20241,9 +22529,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 { @@ -20262,15 +22547,15 @@ public class SatelliteServer { } } - private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { - public getImageDetails_resultStandardScheme getScheme() { - return new getImageDetails_resultStandardScheme(); + private static class createImage_resultStandardSchemeFactory implements SchemeFactory { + public createImage_resultStandardScheme getScheme() { + return new createImage_resultStandardScheme(); } } - private static class getImageDetails_resultStandardScheme extends StandardScheme { + private static class createImage_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, createImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20281,9 +22566,8 @@ 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.STRING) { + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -20298,11 +22582,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NOT_FOUND + case 2: // IMG_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20327,13 +22611,13 @@ 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, createImage_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.writeString(struct.success); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -20341,9 +22625,9 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.notFound != null) { - oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); - struct.notFound.write(oprot); + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); oprot.writeFieldEnd(); } if (struct.serverError != null) { @@ -20357,16 +22641,16 @@ public class SatelliteServer { } - private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { - public getImageDetails_resultTupleScheme getScheme() { - return new getImageDetails_resultTupleScheme(); + private static class createImage_resultTupleSchemeFactory implements SchemeFactory { + public createImage_resultTupleScheme getScheme() { + return new createImage_resultTupleScheme(); } } - private static class getImageDetails_resultTupleScheme extends TupleScheme { + private static class createImage_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, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -20375,7 +22659,7 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetImgError()) { optionals.set(2); } if (struct.isSetServerError()) { @@ -20383,13 +22667,13 @@ public class SatelliteServer { } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + 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); } if (struct.isSetServerError()) { struct.serverError.write(oprot); @@ -20397,12 +22681,11 @@ public class SatelliteServer { } @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, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new ImageDetailsRead(); - struct.success.read(iprot); + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -20411,9 +22694,9 @@ public class SatelliteServer { struct.setAuthErrorIsSet(true); } if (incoming.get(2)) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); + struct.imgError = new TImageDataException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); } if (incoming.get(3)) { struct.serverError = new TInternalServerError(); @@ -20425,25 +22708,28 @@ 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 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_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 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 createImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageBase_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_argsTupleSchemeFactory()); } public String userToken; // required - public String imageName; // 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_NAME((short)2, "imageName"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + IMAGE((short)3, "image"); private static final Map byName = new HashMap(); @@ -20460,8 +22746,10 @@ 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; + case 3: // IMAGE + return IMAGE; default: return null; } @@ -20507,51 +22795,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.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"))); + 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_args.class, metaDataMap); } - public createImage_args() { + public updateImageBase_args() { } - public createImage_args( + public updateImageBase_args( String userToken, - String imageName) + String imageBaseId, + ImageBaseWrite image) { this(); this.userToken = userToken; - this.imageName = imageName; + this.imageBaseId = imageBaseId; + this.image = image; } /** * Performs a deep copy on other. */ - public createImage_args(createImage_args other) { + public updateImageBase_args(updateImageBase_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageName()) { - this.imageName = other.imageName; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; + } + if (other.isSetImage()) { + this.image = new ImageBaseWrite(other.image); } } - public createImage_args deepCopy() { - return new createImage_args(this); + public updateImageBase_args deepCopy() { + return new updateImageBase_args(this); } @Override public void clear() { this.userToken = null; - this.imageName = null; + this.imageBaseId = null; + this.image = null; } public String getUserToken() { return this.userToken; } - public createImage_args setUserToken(String userToken) { + public updateImageBase_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -20571,27 +22867,51 @@ 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 updateImageBase_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; + } + } + + public ImageBaseWrite getImage() { + return this.image; + } + + public updateImageBase_args setImage(ImageBaseWrite 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; } } @@ -20605,11 +22925,19 @@ public class SatelliteServer { } break; - case IMAGE_NAME: + case IMAGE_BASE_ID: if (value == null) { - unsetImageName(); + unsetImageBaseId(); } else { - setImageName((String)value); + setImageBaseId((String)value); + } + break; + + case IMAGE: + if (value == null) { + unsetImage(); + } else { + setImage((ImageBaseWrite)value); } break; @@ -20621,8 +22949,11 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_NAME: - return getImageName(); + case IMAGE_BASE_ID: + return getImageBaseId(); + + case IMAGE: + return getImage(); } throw new IllegalStateException(); @@ -20637,8 +22968,10 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_NAME: - return isSetImageName(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); + case IMAGE: + return isSetImage(); } throw new IllegalStateException(); } @@ -20647,12 +22980,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 updateImageBase_args) + return this.equals((updateImageBase_args)that); return false; } - public boolean equals(createImage_args that) { + public boolean equals(updateImageBase_args that) { if (that == null) return false; @@ -20665,12 +22998,21 @@ 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; + } + + 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; } @@ -20683,7 +23025,7 @@ public class SatelliteServer { } @Override - public int compareTo(createImage_args other) { + public int compareTo(updateImageBase_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20700,12 +23042,22 @@ 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; + } + } + 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; } @@ -20727,7 +23079,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createImage_args("); + StringBuilder sb = new StringBuilder("updateImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -20738,11 +23090,19 @@ 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; + if (!first) sb.append(", "); + sb.append("image:"); + if (this.image == null) { + sb.append("null"); + } else { + sb.append(this.image); } first = false; sb.append(")"); @@ -20752,6 +23112,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 { @@ -20770,15 +23133,15 @@ public class SatelliteServer { } } - private static class createImage_argsStandardSchemeFactory implements SchemeFactory { - public createImage_argsStandardScheme getScheme() { - return new createImage_argsStandardScheme(); + private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { + public updateImageBase_argsStandardScheme getScheme() { + return new updateImageBase_argsStandardScheme(); } } - private static class createImage_argsStandardScheme extends StandardScheme { + private static class updateImageBase_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, updateImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20796,10 +23159,19 @@ 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); + } + break; + case 3: // IMAGE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.image = new ImageBaseWrite(); + struct.image.read(iprot); + struct.setImageIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -20815,7 +23187,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, updateImageBase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20824,9 +23196,14 @@ 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(); + } + if (struct.image != null) { + oprot.writeFieldBegin(IMAGE_FIELD_DESC); + struct.image.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -20835,75 +23212,86 @@ public class SatelliteServer { } - private static class createImage_argsTupleSchemeFactory implements SchemeFactory { - public createImage_argsTupleScheme getScheme() { - return new createImage_argsTupleScheme(); + private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { + public updateImageBase_argsTupleScheme getScheme() { + return new updateImageBase_argsTupleScheme(); } } - private static class createImage_argsTupleScheme extends TupleScheme { + private static class updateImageBase_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, updateImageBase_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.isSetImage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageName()) { - oprot.writeString(struct.imageName); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); + } + if (struct.isSetImage()) { + struct.image.write(oprot); } } @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, updateImageBase_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.imageName = iprot.readString(); - struct.setImageNameIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } + if (incoming.get(2)) { + struct.image = new ImageBaseWrite(); + struct.image.read(iprot); + struct.setImageIsSet(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 updateImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_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"), - IMG_ERROR((short)2, "imgError"), - SERVER_ERROR((short)3, "serverError"); + NOT_FOUND((short)2, "notFound"), + IMG_ERROR((short)3, "imgError"), + SERVER_ERROR((short)4, "serverError"); private static final Map byName = new HashMap(); @@ -20918,13 +23306,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: // IMG_ERROR + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // IMG_ERROR return IMG_ERROR; - case 3: // SERVER_ERROR + case 4: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -20969,30 +23357,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(createImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_result.class, metaDataMap); } - public createImage_result() { + public updateImageBase_result() { } - public createImage_result( - String success, + public updateImageBase_result( TAuthorizationException authError, + TNotFoundException notFound, TImageDataException imgError, TInternalServerError serverError) { this(); - this.success = success; this.authError = authError; + this.notFound = notFound; this.imgError = imgError; this.serverError = serverError; } @@ -21000,13 +23388,13 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public createImage_result(createImage_result other) { - if (other.isSetSuccess()) { - this.success = other.success; - } + public updateImageBase_result(updateImageBase_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); } @@ -21015,63 +23403,63 @@ public class SatelliteServer { } } - public createImage_result deepCopy() { - return new createImage_result(this); + public updateImageBase_result deepCopy() { + return new updateImageBase_result(this); } @Override public void clear() { - this.success = null; this.authError = null; + this.notFound = null; this.imgError = null; this.serverError = null; } - public String getSuccess() { - return this.success; + public TAuthorizationException getAuthError() { + return this.authError; } - public createImage_result setSuccess(String success) { - this.success = success; + public updateImageBase_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 createImage_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public updateImageBase_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; } } @@ -21079,7 +23467,7 @@ public class SatelliteServer { return this.imgError; } - public createImage_result setImgError(TImageDataException imgError) { + public updateImageBase_result setImgError(TImageDataException imgError) { this.imgError = imgError; return this; } @@ -21103,7 +23491,7 @@ public class SatelliteServer { return this.serverError; } - public createImage_result setServerError(TInternalServerError serverError) { + public updateImageBase_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -21125,19 +23513,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; @@ -21162,12 +23550,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(); @@ -21185,10 +23573,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: @@ -21201,24 +23589,15 @@ 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 updateImageBase_result) + return this.equals((updateImageBase_result)that); return false; } - public boolean equals(createImage_result that) { + public boolean equals(updateImageBase_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) { @@ -21228,6 +23607,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_imgError = true && this.isSetImgError(); boolean that_present_imgError = true && that.isSetImgError(); if (this_present_imgError || that_present_imgError) { @@ -21255,29 +23643,29 @@ public class SatelliteServer { } @Override - public int compareTo(createImage_result other) { + public int compareTo(updateImageBase_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; } @@ -21319,22 +23707,22 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createImage_result("); + StringBuilder sb = new StringBuilder("updateImageBase_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(", "); @@ -21378,15 +23766,15 @@ public class SatelliteServer { } } - private static class createImage_resultStandardSchemeFactory implements SchemeFactory { - public createImage_resultStandardScheme getScheme() { - return new createImage_resultStandardScheme(); + private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { + public updateImageBase_resultStandardScheme getScheme() { + return new updateImageBase_resultStandardScheme(); } } - private static class createImage_resultStandardScheme extends StandardScheme { + private static class updateImageBase_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, updateImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21396,14 +23784,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(); @@ -21413,7 +23793,16 @@ 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.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMG_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.imgError = new TImageDataException(); struct.imgError.read(iprot); @@ -21422,7 +23811,7 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // SERVER_ERROR + case 4: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); @@ -21442,20 +23831,20 @@ 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, updateImageBase_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); @@ -21472,22 +23861,22 @@ public class SatelliteServer { } - private static class createImage_resultTupleSchemeFactory implements SchemeFactory { - public createImage_resultTupleScheme getScheme() { - return new createImage_resultTupleScheme(); + private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { + public updateImageBase_resultTupleScheme getScheme() { + return new updateImageBase_resultTupleScheme(); } } - private static class createImage_resultTupleScheme extends TupleScheme { + private static class updateImageBase_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, updateImageBase_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.isSetImgError()) { @@ -21497,12 +23886,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); } @@ -21512,18 +23901,19 @@ 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, updateImageBase_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); @@ -21539,27 +23929,27 @@ 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 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_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_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 updateImageBase_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public ImageBaseWrite image; // 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_BASE_ID((short)2, "imageBaseId"), + IMAGE_VERSION_ID((short)2, "imageVersionId"), IMAGE((short)3, "image"); private static final Map byName = new HashMap(); @@ -21577,8 +23967,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; case 3: // IMAGE return IMAGE; default: @@ -21626,51 +24016,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.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))); + 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(updateImageBase_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); } - public updateImageBase_args() { + public updateImageVersion_args() { } - public updateImageBase_args( + public updateImageVersion_args( String userToken, - String imageBaseId, - ImageBaseWrite image) + String imageVersionId, + ImageVersionWrite image) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; + this.imageVersionId = imageVersionId; this.image = image; } /** * Performs a deep copy on other. */ - public updateImageBase_args(updateImageBase_args other) { + public updateImageVersion_args(updateImageVersion_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } if (other.isSetImage()) { - this.image = new ImageBaseWrite(other.image); + this.image = new ImageVersionWrite(other.image); } } - public updateImageBase_args deepCopy() { - return new updateImageBase_args(this); + public updateImageVersion_args deepCopy() { + return new updateImageVersion_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; + this.imageVersionId = null; this.image = null; } @@ -21678,7 +24068,7 @@ public class SatelliteServer { return this.userToken; } - public updateImageBase_args setUserToken(String userToken) { + public updateImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -21698,35 +24088,35 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public String getImageVersionId() { + return this.imageVersionId; } - public updateImageBase_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public updateImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetImageBaseId() { - this.imageBaseId = null; + public void unsetImageVersionId() { + 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; + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setImageBaseIdIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.imageBaseId = null; + this.imageVersionId = null; } } - public ImageBaseWrite getImage() { + public ImageVersionWrite getImage() { return this.image; } - public updateImageBase_args setImage(ImageBaseWrite image) { + public updateImageVersion_args setImage(ImageVersionWrite image) { this.image = image; return this; } @@ -21756,11 +24146,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: + case IMAGE_VERSION_ID: if (value == null) { - unsetImageBaseId(); + unsetImageVersionId(); } else { - setImageBaseId((String)value); + setImageVersionId((String)value); } break; @@ -21768,7 +24158,7 @@ public class SatelliteServer { if (value == null) { unsetImage(); } else { - setImage((ImageBaseWrite)value); + setImage((ImageVersionWrite)value); } break; @@ -21780,8 +24170,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case IMAGE_VERSION_ID: + return getImageVersionId(); case IMAGE: return getImage(); @@ -21799,8 +24189,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); case IMAGE: return isSetImage(); } @@ -21811,12 +24201,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 updateImageVersion_args) + return this.equals((updateImageVersion_args)that); return false; } - public boolean equals(updateImageBase_args that) { + public boolean equals(updateImageVersion_args that) { if (that == null) return false; @@ -21829,12 +24219,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) + boolean this_present_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.imageBaseId.equals(that.imageBaseId)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -21856,7 +24246,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageBase_args other) { + public int compareTo(updateImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21873,12 +24263,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -21910,7 +24300,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_args("); + StringBuilder sb = new StringBuilder("updateImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -21921,11 +24311,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.imageBaseId); + sb.append(this.imageVersionId); } first = false; if (!first) sb.append(", "); @@ -21964,15 +24354,15 @@ public class SatelliteServer { } } - private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { - public updateImageBase_argsStandardScheme getScheme() { - return new updateImageBase_argsStandardScheme(); + private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_argsStandardScheme getScheme() { + return new updateImageVersion_argsStandardScheme(); } } - private static class updateImageBase_argsStandardScheme extends StandardScheme { + private static class updateImageVersion_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, updateImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21990,17 +24380,17 @@ 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); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // IMAGE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.image = new ImageBaseWrite(); + struct.image = new ImageVersionWrite(); struct.image.read(iprot); struct.setImageIsSet(true); } else { @@ -22018,7 +24408,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, updateImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -22027,9 +24417,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } if (struct.image != null) { @@ -22043,22 +24433,22 @@ public class SatelliteServer { } - private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { - public updateImageBase_argsTupleScheme getScheme() { - return new updateImageBase_argsTupleScheme(); + private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_argsTupleScheme getScheme() { + return new updateImageVersion_argsTupleScheme(); } } - private static class updateImageBase_argsTupleScheme extends TupleScheme { + private static class updateImageVersion_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, updateImageVersion_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.isSetImage()) { @@ -22068,8 +24458,8 @@ public class SatelliteServer { if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } if (struct.isSetImage()) { struct.image.write(oprot); @@ -22077,7 +24467,7 @@ public class SatelliteServer { } @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, updateImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -22085,11 +24475,11 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } if (incoming.get(2)) { - struct.image = new ImageBaseWrite(); + struct.image = new ImageVersionWrite(); struct.image.read(iprot); struct.setImageIsSet(true); } @@ -22098,8 +24488,8 @@ public class SatelliteServer { } - public static class updateImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_result"); + 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); @@ -22108,8 +24498,8 @@ public class SatelliteServer { 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 updateImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -22197,13 +24587,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(updateImageBase_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); } - public updateImageBase_result() { + public updateImageVersion_result() { } - public updateImageBase_result( + public updateImageVersion_result( TAuthorizationException authError, TNotFoundException notFound, TImageDataException imgError, @@ -22219,7 +24609,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public updateImageBase_result(updateImageBase_result other) { + public updateImageVersion_result(updateImageVersion_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -22234,8 +24624,8 @@ public class SatelliteServer { } } - public updateImageBase_result deepCopy() { - return new updateImageBase_result(this); + public updateImageVersion_result deepCopy() { + return new updateImageVersion_result(this); } @Override @@ -22250,7 +24640,7 @@ public class SatelliteServer { return this.authError; } - public updateImageBase_result setAuthError(TAuthorizationException authError) { + public updateImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -22274,7 +24664,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageBase_result setNotFound(TNotFoundException notFound) { + public updateImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -22298,7 +24688,7 @@ public class SatelliteServer { return this.imgError; } - public updateImageBase_result setImgError(TImageDataException imgError) { + public updateImageVersion_result setImgError(TImageDataException imgError) { this.imgError = imgError; return this; } @@ -22322,7 +24712,7 @@ public class SatelliteServer { return this.serverError; } - public updateImageBase_result setServerError(TInternalServerError serverError) { + public updateImageVersion_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -22420,12 +24810,12 @@ 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 updateImageVersion_result) + return this.equals((updateImageVersion_result)that); return false; } - public boolean equals(updateImageBase_result that) { + public boolean equals(updateImageVersion_result that) { if (that == null) return false; @@ -22474,7 +24864,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageBase_result other) { + public int compareTo(updateImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22538,7 +24928,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_result("); + StringBuilder sb = new StringBuilder("updateImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -22597,15 +24987,15 @@ public class SatelliteServer { } } - private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { - public updateImageBase_resultStandardScheme getScheme() { - return new updateImageBase_resultStandardScheme(); + private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_resultStandardScheme getScheme() { + return new updateImageVersion_resultStandardScheme(); } } - private static class updateImageBase_resultStandardScheme extends StandardScheme { + private static class updateImageVersion_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, updateImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22662,7 +25052,7 @@ 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, updateImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -22692,16 +25082,16 @@ public class SatelliteServer { } - private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { - public updateImageBase_resultTupleScheme getScheme() { - return new updateImageBase_resultTupleScheme(); + private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_resultTupleScheme getScheme() { + return new updateImageVersion_resultTupleScheme(); } } - private static class updateImageBase_resultTupleScheme extends TupleScheme { + private static class updateImageVersion_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, updateImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -22732,7 +25122,7 @@ 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, updateImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -22760,28 +25150,25 @@ 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 deleteImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final 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 deleteImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); } public String userToken; // required public String imageVersionId; // required - public ImageVersionWrite image; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"), - IMAGE((short)3, "image"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -22800,8 +25187,6 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_VERSION_ID return IMAGE_VERSION_ID; - case 3: // IMAGE - return IMAGE; default: return null; } @@ -22849,57 +25234,49 @@ 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(updateImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); } - public updateImageVersion_args() { + public deleteImageVersion_args() { } - public updateImageVersion_args( + public deleteImageVersion_args( String userToken, - String imageVersionId, - ImageVersionWrite image) + String imageVersionId) { this(); this.userToken = userToken; this.imageVersionId = imageVersionId; - this.image = image; } /** * Performs a deep copy on other. */ - public updateImageVersion_args(updateImageVersion_args other) { + public deleteImageVersion_args(deleteImageVersion_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageVersionId()) { this.imageVersionId = other.imageVersionId; } - if (other.isSetImage()) { - this.image = new ImageVersionWrite(other.image); - } } - public updateImageVersion_args deepCopy() { - return new updateImageVersion_args(this); + public deleteImageVersion_args deepCopy() { + return new deleteImageVersion_args(this); } @Override public void clear() { this.userToken = null; this.imageVersionId = null; - this.image = null; } public String getUserToken() { return this.userToken; } - public updateImageVersion_args setUserToken(String userToken) { + public deleteImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -22923,7 +25300,7 @@ public class SatelliteServer { return this.imageVersionId; } - public updateImageVersion_args setImageVersionId(String imageVersionId) { + public deleteImageVersion_args setImageVersionId(String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -22943,30 +25320,6 @@ 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: @@ -22985,14 +25338,6 @@ public class SatelliteServer { } break; - case IMAGE: - if (value == null) { - unsetImage(); - } else { - setImage((ImageVersionWrite)value); - } - break; - } } @@ -23004,9 +25349,6 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return getImageVersionId(); - case IMAGE: - return getImage(); - } throw new IllegalStateException(); } @@ -23022,8 +25364,6 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_VERSION_ID: return isSetImageVersionId(); - case IMAGE: - return isSetImage(); } throw new IllegalStateException(); } @@ -23032,12 +25372,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 deleteImageVersion_args) + return this.equals((deleteImageVersion_args)that); return false; } - public boolean equals(updateImageVersion_args that) { + public boolean equals(deleteImageVersion_args that) { if (that == null) return false; @@ -23059,15 +25399,6 @@ 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; } @@ -23077,7 +25408,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_args other) { + public int compareTo(deleteImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -23104,16 +25435,6 @@ 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; } @@ -23131,7 +25452,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_args("); + StringBuilder sb = new StringBuilder("deleteImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -23149,14 +25470,6 @@ 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(); } @@ -23164,9 +25477,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 { @@ -23185,15 +25495,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_argsStandardScheme getScheme() { - return new updateImageVersion_argsStandardScheme(); + private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsStandardScheme getScheme() { + return new deleteImageVersion_argsStandardScheme(); } } - private static class updateImageVersion_argsStandardScheme extends StandardScheme { + private static class deleteImageVersion_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, deleteImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -23219,15 +25529,6 @@ 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); } @@ -23239,7 +25540,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, deleteImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -23253,27 +25554,22 @@ 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 updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_argsTupleScheme getScheme() { - return new updateImageVersion_argsTupleScheme(); + private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsTupleScheme getScheme() { + return new deleteImageVersion_argsTupleScheme(); } } - private static class updateImageVersion_argsTupleScheme extends TupleScheme { + private static class deleteImageVersion_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, deleteImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -23282,25 +25578,19 @@ public class SatelliteServer { if (struct.isSetImageVersionId()) { 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.isSetImageVersionId()) { oprot.writeString(struct.imageVersionId); } - if (struct.isSetImage()) { - struct.image.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + 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); @@ -23309,41 +25599,33 @@ 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 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 deleteImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField 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 SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required public TNotFoundException notFound; // required - public TImageDataException imgError; // required public TInternalServerError serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), - IMG_ERROR((short)3, "imgError"), - SERVER_ERROR((short)4, "serverError"); + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -23362,9 +25644,7 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; - case 3: // IMG_ERROR - return IMG_ERROR; - case 4: // SERVER_ERROR + case 3: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -23413,57 +25693,49 @@ 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(updateImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_result.class, metaDataMap); } - public updateImageVersion_result() { + public deleteImageVersion_result() { } - public updateImageVersion_result( + public deleteImageVersion_result( TAuthorizationException authError, TNotFoundException notFound, - TImageDataException imgError, TInternalServerError serverError) { this(); this.authError = authError; this.notFound = notFound; - this.imgError = imgError; this.serverError = serverError; } /** * Performs a deep copy on other. */ - public updateImageVersion_result(updateImageVersion_result other) { + public deleteImageVersion_result(deleteImageVersion_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } - if (other.isSetImgError()) { - this.imgError = new TImageDataException(other.imgError); - } if (other.isSetServerError()) { this.serverError = new TInternalServerError(other.serverError); } } - public updateImageVersion_result deepCopy() { - return new updateImageVersion_result(this); + public deleteImageVersion_result deepCopy() { + return new deleteImageVersion_result(this); } @Override public void clear() { this.authError = null; this.notFound = null; - this.imgError = null; this.serverError = null; } @@ -23471,7 +25743,7 @@ public class SatelliteServer { return this.authError; } - public updateImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -23495,7 +25767,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -23515,35 +25787,11 @@ 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 updateImageVersion_result setServerError(TInternalServerError serverError) { + public deleteImageVersion_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -23581,14 +25829,6 @@ public class SatelliteServer { } break; - case IMG_ERROR: - if (value == null) { - unsetImgError(); - } else { - setImgError((TImageDataException)value); - } - break; - case SERVER_ERROR: if (value == null) { unsetServerError(); @@ -23608,9 +25848,6 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); - case IMG_ERROR: - return getImgError(); - case SERVER_ERROR: return getServerError(); @@ -23629,8 +25866,6 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); - case IMG_ERROR: - return isSetImgError(); case SERVER_ERROR: return isSetServerError(); } @@ -23641,12 +25876,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 deleteImageVersion_result) + return this.equals((deleteImageVersion_result)that); return false; } - public boolean equals(updateImageVersion_result that) { + public boolean equals(deleteImageVersion_result that) { if (that == null) return false; @@ -23668,15 +25903,6 @@ 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) { @@ -23695,7 +25921,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_result other) { + public int compareTo(deleteImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -23722,16 +25948,6 @@ 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; @@ -23759,7 +25975,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_result("); + StringBuilder sb = new StringBuilder("deleteImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -23778,14 +25994,6 @@ 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"); @@ -23818,15 +26026,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_resultStandardScheme getScheme() { - return new updateImageVersion_resultStandardScheme(); + private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultStandardScheme getScheme() { + return new deleteImageVersion_resultStandardScheme(); } } - private static class updateImageVersion_resultStandardScheme extends StandardScheme { + private static class deleteImageVersion_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, deleteImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -23854,16 +26062,7 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IMG_ERROR - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.imgError = new TImageDataException(); - struct.imgError.read(iprot); - struct.setImgErrorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // SERVER_ERROR + case 3: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.serverError = new TInternalServerError(); struct.serverError.read(iprot); @@ -23883,7 +26082,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, deleteImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -23897,11 +26096,6 @@ 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); @@ -23913,16 +26107,16 @@ public class SatelliteServer { } - private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_resultTupleScheme getScheme() { - return new updateImageVersion_resultTupleScheme(); + private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultTupleScheme getScheme() { + return new deleteImageVersion_resultTupleScheme(); } } - private static class updateImageVersion_resultTupleScheme extends TupleScheme { + private static class deleteImageVersion_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, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -23931,31 +26125,25 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetImgError()) { - optionals.set(2); - } if (struct.isSetServerError()) { - optionals.set(3); + optionals.set(2); } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetAuthError()) { struct.authError.write(oprot); } if (struct.isSetNotFound()) { struct.notFound.write(oprot); } - if (struct.isSetImgError()) { - struct.imgError.write(oprot); - } if (struct.isSetServerError()) { struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + 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(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -23967,11 +26155,6 @@ 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); @@ -23981,25 +26164,25 @@ 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 deleteImageBase_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("deleteImageBase_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageBase_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageBase_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required + public String imageBaseId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -24016,8 +26199,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; default: return null; } @@ -24063,51 +26246,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_args.class, metaDataMap); } - public deleteImageVersion_args() { + public deleteImageBase_args() { } - public deleteImageVersion_args( + public deleteImageBase_args( String userToken, - String imageVersionId) + String imageBaseId) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; + this.imageBaseId = imageBaseId; } /** * Performs a deep copy on other. */ - public deleteImageVersion_args(deleteImageVersion_args other) { + public deleteImageBase_args(deleteImageBase_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } } - public deleteImageVersion_args deepCopy() { - return new deleteImageVersion_args(this); + public deleteImageBase_args deepCopy() { + return new deleteImageBase_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; + this.imageBaseId = null; } public String getUserToken() { return this.userToken; } - public deleteImageVersion_args setUserToken(String userToken) { + public deleteImageBase_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -24127,27 +26310,27 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; + public String getImageBaseId() { + return this.imageBaseId; } - public deleteImageVersion_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; + public deleteImageBase_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; } } @@ -24161,11 +26344,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; @@ -24177,8 +26360,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -24193,8 +26376,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); } throw new IllegalStateException(); } @@ -24203,12 +26386,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 deleteImageBase_args) + return this.equals((deleteImageBase_args)that); return false; } - public boolean equals(deleteImageVersion_args that) { + public boolean equals(deleteImageBase_args that) { if (that == null) return false; @@ -24221,12 +26404,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; } @@ -24239,7 +26422,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_args other) { + public int compareTo(deleteImageBase_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -24256,12 +26439,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; } @@ -24283,7 +26466,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_args("); + StringBuilder sb = new StringBuilder("deleteImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -24294,11 +26477,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.imageBaseId); } first = false; sb.append(")"); @@ -24326,15 +26509,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsStandardScheme getScheme() { - return new deleteImageVersion_argsStandardScheme(); + private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageBase_argsStandardScheme getScheme() { + return new deleteImageBase_argsStandardScheme(); } } - private static class deleteImageVersion_argsStandardScheme extends StandardScheme { + private static class deleteImageBase_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, deleteImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -24352,10 +26535,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID + case 2: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -24371,7 +26554,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, deleteImageBase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -24380,9 +26563,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -24391,35 +26574,35 @@ public class SatelliteServer { } - private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsTupleScheme getScheme() { - return new deleteImageVersion_argsTupleScheme(); + private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageBase_argsTupleScheme getScheme() { + return new deleteImageBase_argsTupleScheme(); } } - private static class deleteImageVersion_argsTupleScheme extends TupleScheme { + private static class deleteImageBase_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, deleteImageBase_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -24427,16 +26610,16 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } } } } - public static class deleteImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_result"); + public static class deleteImageBase_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("deleteImageBase_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); @@ -24444,8 +26627,8 @@ public class SatelliteServer { 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 deleteImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageBase_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -24527,13 +26710,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(deleteImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_result.class, metaDataMap); } - public deleteImageVersion_result() { + public deleteImageBase_result() { } - public deleteImageVersion_result( + public deleteImageBase_result( TAuthorizationException authError, TNotFoundException notFound, TInternalServerError serverError) @@ -24547,7 +26730,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public deleteImageVersion_result(deleteImageVersion_result other) { + public deleteImageBase_result(deleteImageBase_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -24559,8 +26742,8 @@ public class SatelliteServer { } } - public deleteImageVersion_result deepCopy() { - return new deleteImageVersion_result(this); + public deleteImageBase_result deepCopy() { + return new deleteImageBase_result(this); } @Override @@ -24574,7 +26757,7 @@ public class SatelliteServer { return this.authError; } - public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteImageBase_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -24598,7 +26781,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageBase_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -24622,7 +26805,7 @@ public class SatelliteServer { return this.serverError; } - public deleteImageVersion_result setServerError(TInternalServerError serverError) { + public deleteImageBase_result setServerError(TInternalServerError serverError) { this.serverError = serverError; return this; } @@ -24707,12 +26890,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 deleteImageBase_result) + return this.equals((deleteImageBase_result)that); return false; } - public boolean equals(deleteImageVersion_result that) { + public boolean equals(deleteImageBase_result that) { if (that == null) return false; @@ -24752,7 +26935,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_result other) { + public int compareTo(deleteImageBase_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -24806,7 +26989,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_result("); + StringBuilder sb = new StringBuilder("deleteImageBase_result("); boolean first = true; sb.append("authError:"); @@ -24857,15 +27040,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultStandardScheme getScheme() { - return new deleteImageVersion_resultStandardScheme(); + private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageBase_resultStandardScheme getScheme() { + return new deleteImageBase_resultStandardScheme(); } } - private static class deleteImageVersion_resultStandardScheme extends StandardScheme { + private static class deleteImageBase_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, deleteImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -24913,7 +27096,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, deleteImageBase_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -24938,16 +27121,16 @@ public class SatelliteServer { } - private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultTupleScheme getScheme() { - return new deleteImageVersion_resultTupleScheme(); + private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageBase_resultTupleScheme getScheme() { + return new deleteImageBase_resultTupleScheme(); } } - private static class deleteImageVersion_resultTupleScheme extends TupleScheme { + private static class deleteImageBase_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, deleteImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -24972,7 +27155,7 @@ public class SatelliteServer { } @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, deleteImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -25479,16 +27662,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map194 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map194.size); - for (int _i195 = 0; _i195 < _map194.size; ++_i195) + org.apache.thrift.protocol.TMap _map202 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map202.size); + for (int _i203 = 0; _i203 < _map202.size; ++_i203) { - String _key196; - ImagePermissions _val197; - _key196 = iprot.readString(); - _val197 = new ImagePermissions(); - _val197.read(iprot); - struct.permissions.put(_key196, _val197); + String _key204; + ImagePermissions _val205; + _key204 = iprot.readString(); + _val205 = new ImagePermissions(); + _val205.read(iprot); + struct.permissions.put(_key204, _val205); } iprot.readMapEnd(); } @@ -25526,10 +27709,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 _iter198 : struct.permissions.entrySet()) + for (Map.Entry _iter206 : struct.permissions.entrySet()) { - oprot.writeString(_iter198.getKey()); - _iter198.getValue().write(oprot); + oprot.writeString(_iter206.getKey()); + _iter206.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -25572,10 +27755,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter199 : struct.permissions.entrySet()) + for (Map.Entry _iter207 : struct.permissions.entrySet()) { - oprot.writeString(_iter199.getKey()); - _iter199.getValue().write(oprot); + oprot.writeString(_iter207.getKey()); + _iter207.getValue().write(oprot); } } } @@ -25595,16 +27778,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map200 = 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*_map200.size); - for (int _i201 = 0; _i201 < _map200.size; ++_i201) + org.apache.thrift.protocol.TMap _map208 = 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*_map208.size); + for (int _i209 = 0; _i209 < _map208.size; ++_i209) { - String _key202; - ImagePermissions _val203; - _key202 = iprot.readString(); - _val203 = new ImagePermissions(); - _val203.read(iprot); - struct.permissions.put(_key202, _val203); + String _key210; + ImagePermissions _val211; + _key210 = iprot.readString(); + _val211 = new ImagePermissions(); + _val211.read(iprot); + struct.permissions.put(_key210, _val211); } } struct.setPermissionsIsSet(true); @@ -27173,16 +29356,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map204 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map204.size); - for (int _i205 = 0; _i205 < _map204.size; ++_i205) + org.apache.thrift.protocol.TMap _map212 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map212.size); + for (int _i213 = 0; _i213 < _map212.size; ++_i213) { - String _key206; - ImagePermissions _val207; - _key206 = iprot.readString(); - _val207 = new ImagePermissions(); - _val207.read(iprot); - struct.success.put(_key206, _val207); + String _key214; + ImagePermissions _val215; + _key214 = iprot.readString(); + _val215 = new ImagePermissions(); + _val215.read(iprot); + struct.success.put(_key214, _val215); } iprot.readMapEnd(); } @@ -27237,10 +29420,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 _iter208 : struct.success.entrySet()) + for (Map.Entry _iter216 : struct.success.entrySet()) { - oprot.writeString(_iter208.getKey()); - _iter208.getValue().write(oprot); + oprot.writeString(_iter216.getKey()); + _iter216.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -27295,10 +29478,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter209 : struct.success.entrySet()) + for (Map.Entry _iter217 : struct.success.entrySet()) { - oprot.writeString(_iter209.getKey()); - _iter209.getValue().write(oprot); + oprot.writeString(_iter217.getKey()); + _iter217.getValue().write(oprot); } } } @@ -27319,16 +29502,16 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map210 = 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*_map210.size); - for (int _i211 = 0; _i211 < _map210.size; ++_i211) + org.apache.thrift.protocol.TMap _map218 = 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*_map218.size); + for (int _i219 = 0; _i219 < _map218.size; ++_i219) { - String _key212; - ImagePermissions _val213; - _key212 = iprot.readString(); - _val213 = new ImagePermissions(); - _val213.read(iprot); - struct.success.put(_key212, _val213); + String _key220; + ImagePermissions _val221; + _key220 = iprot.readString(); + _val221 = new ImagePermissions(); + _val221.read(iprot); + struct.success.put(_key220, _val221); } } struct.setSuccessIsSet(true); @@ -32936,14 +35119,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); - struct.success = new ArrayList(_list214.size); - for (int _i215 = 0; _i215 < _list214.size; ++_i215) + org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); + struct.success = new ArrayList(_list222.size); + for (int _i223 = 0; _i223 < _list222.size; ++_i223) { - LectureSummary _elem216; - _elem216 = new LectureSummary(); - _elem216.read(iprot); - struct.success.add(_elem216); + LectureSummary _elem224; + _elem224 = new LectureSummary(); + _elem224.read(iprot); + struct.success.add(_elem224); } iprot.readListEnd(); } @@ -32989,9 +35172,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 (LectureSummary _iter217 : struct.success) + for (LectureSummary _iter225 : struct.success) { - _iter217.write(oprot); + _iter225.write(oprot); } oprot.writeListEnd(); } @@ -33038,9 +35221,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (LectureSummary _iter218 : struct.success) + for (LectureSummary _iter226 : struct.success) { - _iter218.write(oprot); + _iter226.write(oprot); } } } @@ -33058,14 +35241,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list219.size); - for (int _i220 = 0; _i220 < _list219.size; ++_i220) + org.apache.thrift.protocol.TList _list227 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list227.size); + for (int _i228 = 0; _i228 < _list227.size; ++_i228) { - LectureSummary _elem221; - _elem221 = new LectureSummary(); - _elem221.read(iprot); - struct.success.add(_elem221); + LectureSummary _elem229; + _elem229 = new LectureSummary(); + _elem229.read(iprot); + struct.success.add(_elem229); } } struct.setSuccessIsSet(true); @@ -35702,16 +37885,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map222 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map222.size); - for (int _i223 = 0; _i223 < _map222.size; ++_i223) + org.apache.thrift.protocol.TMap _map230 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map230.size); + for (int _i231 = 0; _i231 < _map230.size; ++_i231) { - String _key224; - LecturePermissions _val225; - _key224 = iprot.readString(); - _val225 = new LecturePermissions(); - _val225.read(iprot); - struct.permissions.put(_key224, _val225); + String _key232; + LecturePermissions _val233; + _key232 = iprot.readString(); + _val233 = new LecturePermissions(); + _val233.read(iprot); + struct.permissions.put(_key232, _val233); } iprot.readMapEnd(); } @@ -35749,10 +37932,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 _iter226 : struct.permissions.entrySet()) + for (Map.Entry _iter234 : struct.permissions.entrySet()) { - oprot.writeString(_iter226.getKey()); - _iter226.getValue().write(oprot); + oprot.writeString(_iter234.getKey()); + _iter234.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -35795,10 +37978,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter227 : struct.permissions.entrySet()) + for (Map.Entry _iter235 : struct.permissions.entrySet()) { - oprot.writeString(_iter227.getKey()); - _iter227.getValue().write(oprot); + oprot.writeString(_iter235.getKey()); + _iter235.getValue().write(oprot); } } } @@ -35818,16 +38001,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map228 = 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*_map228.size); - for (int _i229 = 0; _i229 < _map228.size; ++_i229) + org.apache.thrift.protocol.TMap _map236 = 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*_map236.size); + for (int _i237 = 0; _i237 < _map236.size; ++_i237) { - String _key230; - LecturePermissions _val231; - _key230 = iprot.readString(); - _val231 = new LecturePermissions(); - _val231.read(iprot); - struct.permissions.put(_key230, _val231); + String _key238; + LecturePermissions _val239; + _key238 = iprot.readString(); + _val239 = new LecturePermissions(); + _val239.read(iprot); + struct.permissions.put(_key238, _val239); } } struct.setPermissionsIsSet(true); @@ -37396,16 +39579,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map232 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map232.size); - for (int _i233 = 0; _i233 < _map232.size; ++_i233) + org.apache.thrift.protocol.TMap _map240 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map240.size); + for (int _i241 = 0; _i241 < _map240.size; ++_i241) { - String _key234; - LecturePermissions _val235; - _key234 = iprot.readString(); - _val235 = new LecturePermissions(); - _val235.read(iprot); - struct.success.put(_key234, _val235); + String _key242; + LecturePermissions _val243; + _key242 = iprot.readString(); + _val243 = new LecturePermissions(); + _val243.read(iprot); + struct.success.put(_key242, _val243); } iprot.readMapEnd(); } @@ -37460,10 +39643,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 _iter236 : struct.success.entrySet()) + for (Map.Entry _iter244 : struct.success.entrySet()) { - oprot.writeString(_iter236.getKey()); - _iter236.getValue().write(oprot); + oprot.writeString(_iter244.getKey()); + _iter244.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -37518,10 +39701,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter237 : struct.success.entrySet()) + for (Map.Entry _iter245 : struct.success.entrySet()) { - oprot.writeString(_iter237.getKey()); - _iter237.getValue().write(oprot); + oprot.writeString(_iter245.getKey()); + _iter245.getValue().write(oprot); } } } @@ -37542,16 +39725,16 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map238 = 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*_map238.size); - for (int _i239 = 0; _i239 < _map238.size; ++_i239) + org.apache.thrift.protocol.TMap _map246 = 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*_map246.size); + for (int _i247 = 0; _i247 < _map246.size; ++_i247) { - String _key240; - LecturePermissions _val241; - _key240 = iprot.readString(); - _val241 = new LecturePermissions(); - _val241.read(iprot); - struct.success.put(_key240, _val241); + String _key248; + LecturePermissions _val249; + _key248 = iprot.readString(); + _val249 = new LecturePermissions(); + _val249.read(iprot); + struct.success.put(_key248, _val249); } } struct.setSuccessIsSet(true); -- cgit v1.2.3-55-g7522