From 9ea33470d3522f62706385887b064526cef8a2e5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 28 Aug 2015 13:30:06 +0200 Subject: Thrift API --- .../openslx/bwlp/thrift/iface/SatelliteServer.java | 9303 ++++++++++---------- 1 file changed, 4646 insertions(+), 4657 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 c02eb36..c09d4f7 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -52,8 +52,6 @@ public class SatelliteServer { public void cancelDownload(String downloadToken) throws TInvalidTokenException, org.apache.thrift.TException; - public ByteBuffer getMachineDescription(String userToken, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; - public void isAuthenticated(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; public WhoamiInfo whoami(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; @@ -96,6 +94,8 @@ public class SatelliteServer { public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; + public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; public void updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; @@ -132,8 +132,6 @@ public class SatelliteServer { public void cancelDownload(String downloadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getMachineDescription(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isAuthenticated(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void whoami(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -176,6 +174,8 @@ public class SatelliteServer { public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void requestImageReplication(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void updateLecture(String userToken, String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -429,39 +429,6 @@ public class SatelliteServer { return; } - public ByteBuffer getMachineDescription(String userToken, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException - { - send_getMachineDescription(userToken, imageVersionId); - return recv_getMachineDescription(); - } - - public void send_getMachineDescription(String userToken, String imageVersionId) throws org.apache.thrift.TException - { - getMachineDescription_args args = new getMachineDescription_args(); - args.setUserToken(userToken); - args.setImageVersionId(imageVersionId); - sendBase("getMachineDescription", args); - } - - public ByteBuffer recv_getMachineDescription() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException - { - getMachineDescription_result result = new getMachineDescription_result(); - receiveBase(result, "getMachineDescription"); - if (result.isSetSuccess()) { - return result.success; - } - if (result.authError != null) { - throw result.authError; - } - if (result.ffff != null) { - throw result.ffff; - } - if (result.sdf != null) { - throw result.sdf; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMachineDescription failed: unknown result"); - } - public void isAuthenticated(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_isAuthenticated(userToken); @@ -1059,6 +1026,39 @@ public class SatelliteServer { return; } + public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + send_requestImageReplication(userToken, imageVersionId); + return recv_requestImageReplication(); + } + + public void send_requestImageReplication(String userToken, String imageVersionId) throws org.apache.thrift.TException + { + requestImageReplication_args args = new requestImageReplication_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + sendBase("requestImageReplication", args); + } + + public String recv_requestImageReplication() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + requestImageReplication_result result = new requestImageReplication_result(); + receiveBase(result, "requestImageReplication"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.authError != null) { + throw result.authError; + } + if (result.notFound != null) { + throw result.notFound; + } + if (result.serverError != null) { + throw result.serverError; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestImageReplication failed: unknown result"); + } + public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { send_createLecture(userToken, lecture); @@ -1600,41 +1600,6 @@ public class SatelliteServer { } } - public void getMachineDescription(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getMachineDescription_call method_call = new getMachineDescription_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getMachineDescription_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - public getMachineDescription_call(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { - super(client, protocolFactory, transport, resultHandler, false); - this.userToken = userToken; - this.imageVersionId = imageVersionId; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMachineDescription", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getMachineDescription_args args = new getMachineDescription_args(); - args.setUserToken(userToken); - args.setImageVersionId(imageVersionId); - args.write(prot); - prot.writeMessageEnd(); - } - - public ByteBuffer getResult() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_getMachineDescription(); - } - } - public void isAuthenticated(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isAuthenticated_call method_call = new isAuthenticated_call(userToken, resultHandler, this, ___protocolFactory, ___transport); @@ -2352,6 +2317,41 @@ public class SatelliteServer { } } + public void requestImageReplication(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + requestImageReplication_call method_call = new requestImageReplication_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class requestImageReplication_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userToken; + private String imageVersionId; + public requestImageReplication_call(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userToken = userToken; + this.imageVersionId = imageVersionId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestImageReplication", org.apache.thrift.protocol.TMessageType.CALL, 0)); + requestImageReplication_args args = new requestImageReplication_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + args.write(prot); + prot.writeMessageEnd(); + } + + public String getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_requestImageReplication(); + } + } + public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createLecture_call method_call = new createLecture_call(userToken, lecture, resultHandler, this, ___protocolFactory, ___transport); @@ -2662,7 +2662,6 @@ public class SatelliteServer { processMap.put("queryUploadStatus", new queryUploadStatus()); processMap.put("requestDownload", new requestDownload()); processMap.put("cancelDownload", new cancelDownload()); - processMap.put("getMachineDescription", new getMachineDescription()); processMap.put("isAuthenticated", new isAuthenticated()); processMap.put("whoami", new whoami()); processMap.put("invalidateSession", new invalidateSession()); @@ -2684,6 +2683,7 @@ public class SatelliteServer { processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); processMap.put("setImageVersionExpiry", new setImageVersionExpiry()); + processMap.put("requestImageReplication", new requestImageReplication()); processMap.put("createLecture", new createLecture()); processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); @@ -2892,34 +2892,6 @@ public class SatelliteServer { } } - public static class getMachineDescription extends org.apache.thrift.ProcessFunction { - public getMachineDescription() { - super("getMachineDescription"); - } - - public getMachineDescription_args getEmptyArgsInstance() { - return new getMachineDescription_args(); - } - - protected boolean isOneway() { - return false; - } - - public getMachineDescription_result getResult(I iface, getMachineDescription_args args) throws org.apache.thrift.TException { - getMachineDescription_result result = new getMachineDescription_result(); - try { - result.success = iface.getMachineDescription(args.userToken, args.imageVersionId); - } catch (TAuthorizationException authError) { - result.authError = authError; - } catch (TInvocationException ffff) { - result.ffff = ffff; - } catch (TNotFoundException sdf) { - result.sdf = sdf; - } - return result; - } - } - public static class isAuthenticated extends org.apache.thrift.ProcessFunction { public isAuthenticated() { super("isAuthenticated"); @@ -3460,6 +3432,34 @@ public class SatelliteServer { } } + public static class requestImageReplication extends org.apache.thrift.ProcessFunction { + public requestImageReplication() { + super("requestImageReplication"); + } + + public requestImageReplication_args getEmptyArgsInstance() { + return new requestImageReplication_args(); + } + + protected boolean isOneway() { + return false; + } + + public requestImageReplication_result getResult(I iface, requestImageReplication_args args) throws org.apache.thrift.TException { + requestImageReplication_result result = new requestImageReplication_result(); + try { + result.success = iface.requestImageReplication(args.userToken, args.imageVersionId); + } catch (TAuthorizationException authError) { + result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TInvocationException serverError) { + result.serverError = serverError; + } + return result; + } + } + public static class createLecture extends org.apache.thrift.ProcessFunction { public createLecture() { super("createLecture"); @@ -3705,7 +3705,6 @@ public class SatelliteServer { processMap.put("queryUploadStatus", new queryUploadStatus()); processMap.put("requestDownload", new requestDownload()); processMap.put("cancelDownload", new cancelDownload()); - processMap.put("getMachineDescription", new getMachineDescription()); processMap.put("isAuthenticated", new isAuthenticated()); processMap.put("whoami", new whoami()); processMap.put("invalidateSession", new invalidateSession()); @@ -3727,6 +3726,7 @@ public class SatelliteServer { processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); processMap.put("setImageVersionExpiry", new setImageVersionExpiry()); + processMap.put("requestImageReplication", new requestImageReplication()); processMap.put("createLecture", new createLecture()); processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); @@ -4210,73 +4210,6 @@ public class SatelliteServer { } } - public static class getMachineDescription extends org.apache.thrift.AsyncProcessFunction { - public getMachineDescription() { - super("getMachineDescription"); - } - - public getMachineDescription_args getEmptyArgsInstance() { - return new getMachineDescription_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ByteBuffer o) { - getMachineDescription_result result = new getMachineDescription_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getMachineDescription_result result = new getMachineDescription_result(); - if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.ffff = (TInvocationException) e; - result.setFfffIsSet(true); - msg = result; - } - else if (e instanceof TNotFoundException) { - result.sdf = (TNotFoundException) e; - result.setSdfIsSet(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, getMachineDescription_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getMachineDescription(args.userToken, args.imageVersionId,resultHandler); - } - } - public static class isAuthenticated extends org.apache.thrift.AsyncProcessFunction { public isAuthenticated() { super("isAuthenticated"); @@ -5570,6 +5503,73 @@ public class SatelliteServer { } } + public static class requestImageReplication extends org.apache.thrift.AsyncProcessFunction { + public requestImageReplication() { + super("requestImageReplication"); + } + + public requestImageReplication_args getEmptyArgsInstance() { + return new requestImageReplication_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + requestImageReplication_result result = new requestImageReplication_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + requestImageReplication_result result = new requestImageReplication_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 TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, requestImageReplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.requestImageReplication(args.userToken, args.imageVersionId,resultHandler); + } + } + public static class createLecture extends org.apache.thrift.AsyncProcessFunction { public createLecture() { super("createLecture"); @@ -7958,13 +7958,13 @@ public class SatelliteServer { case 4: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list138.size); - for (int _i139 = 0; _i139 < _list138.size; ++_i139) + org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list154.size); + for (int _i155 = 0; _i155 < _list154.size; ++_i155) { - ByteBuffer _elem140; - _elem140 = iprot.readBinary(); - struct.blockHashes.add(_elem140); + ByteBuffer _elem156; + _elem156 = iprot.readBinary(); + struct.blockHashes.add(_elem156); } iprot.readListEnd(); } @@ -8013,9 +8013,9 @@ public class SatelliteServer { 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 _iter141 : struct.blockHashes) + for (ByteBuffer _iter157 : struct.blockHashes) { - oprot.writeBinary(_iter141); + oprot.writeBinary(_iter157); } oprot.writeListEnd(); } @@ -8072,9 +8072,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter142 : struct.blockHashes) + for (ByteBuffer _iter158 : struct.blockHashes) { - oprot.writeBinary(_iter142); + oprot.writeBinary(_iter158); } } } @@ -8101,13 +8101,13 @@ public class SatelliteServer { } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list143.size); - for (int _i144 = 0; _i144 < _list143.size; ++_i144) + org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list159.size); + for (int _i160 = 0; _i160 < _list159.size; ++_i160) { - ByteBuffer _elem145; - _elem145 = iprot.readBinary(); - struct.blockHashes.add(_elem145); + ByteBuffer _elem161; + _elem161 = iprot.readBinary(); + struct.blockHashes.add(_elem161); } } struct.setBlockHashesIsSet(true); @@ -9279,13 +9279,13 @@ public class SatelliteServer { 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) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list162.size); + for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - ByteBuffer _elem148; - _elem148 = iprot.readBinary(); - struct.blockHashes.add(_elem148); + ByteBuffer _elem164; + _elem164 = iprot.readBinary(); + struct.blockHashes.add(_elem164); } iprot.readListEnd(); } @@ -9318,9 +9318,9 @@ public class SatelliteServer { 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) + for (ByteBuffer _iter165 : struct.blockHashes) { - oprot.writeBinary(_iter149); + oprot.writeBinary(_iter165); } oprot.writeListEnd(); } @@ -9357,9 +9357,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter150 : struct.blockHashes) + for (ByteBuffer _iter166 : struct.blockHashes) { - oprot.writeBinary(_iter150); + oprot.writeBinary(_iter166); } } } @@ -9375,13 +9375,13 @@ public class SatelliteServer { } 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) + org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list167.size); + for (int _i168 = 0; _i168 < _list167.size; ++_i168) { - ByteBuffer _elem153; - _elem153 = iprot.readBinary(); - struct.blockHashes.add(_elem153); + ByteBuffer _elem169; + _elem169 = iprot.readBinary(); + struct.blockHashes.add(_elem169); } } struct.setBlockHashesIsSet(true); @@ -13203,25 +13203,22 @@ public class SatelliteServer { } - 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(); @@ -13238,8 +13235,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; } @@ -13285,51 +13280,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; } @@ -13349,30 +13336,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: @@ -13383,14 +13346,6 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: - if (value == null) { - unsetImageVersionId(); - } else { - setImageVersionId((String)value); - } - break; - } } @@ -13399,9 +13354,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); - } throw new IllegalStateException(); } @@ -13415,8 +13367,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -13425,12 +13375,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; @@ -13443,15 +13393,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; } @@ -13461,7 +13402,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()); } @@ -13478,16 +13419,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; } @@ -13505,7 +13436,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:"); @@ -13515,14 +13446,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(); } @@ -13548,15 +13471,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) @@ -13574,14 +13497,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); } @@ -13593,7 +13508,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); @@ -13602,86 +13517,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 TInvocationException ffff; // required - public TNotFoundException sdf; // required + public TInvocationException 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(); @@ -13696,14 +13590,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; } @@ -13747,104 +13637,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, - TInvocationException ffff, - TNotFoundException sdf) + TInvocationException 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 TInvocationException(other.ffff); - } - if (other.isSetSdf()) { - this.sdf = new TNotFoundException(other.sdf); + if (other.isSetServerError()) { + this.serverError = new TInvocationException(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; } @@ -13864,64 +13703,32 @@ public class SatelliteServer { } } - public TInvocationException getFfff() { - return this.ffff; - } - - public getMachineDescription_result setFfff(TInvocationException 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 TInvocationException getServerError() { + return this.serverError; } - public getMachineDescription_result setSdf(TNotFoundException sdf) { - this.sdf = sdf; + public isAuthenticated_result setServerError(TInvocationException 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(); @@ -13930,19 +13737,11 @@ public class SatelliteServer { } break; - case FFFF: - if (value == null) { - unsetFfff(); - } else { - setFfff((TInvocationException)value); - } - break; - - case SDF: + case SERVER_ERROR: if (value == null) { - unsetSdf(); + unsetServerError(); } else { - setSdf((TNotFoundException)value); + setServerError((TInvocationException)value); } break; @@ -13951,17 +13750,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(); @@ -13974,14 +13767,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(); } @@ -13990,24 +13779,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) { @@ -14017,21 +13797,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; } @@ -14044,23 +13815,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; @@ -14071,22 +13832,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; } @@ -14108,17 +13859,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"); @@ -14127,19 +13870,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(")"); @@ -14167,15 +13902,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) @@ -14185,14 +13920,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(); @@ -14202,20 +13929,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 TInvocationException(); - 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 TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14231,28 +13949,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(); @@ -14261,82 +13969,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 TInvocationException(); - 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 TInvocationException(); + 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 @@ -14406,13 +14093,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(); @@ -14422,14 +14109,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 @@ -14441,7 +14128,7 @@ public class SatelliteServer { return this.userToken; } - public isAuthenticated_args setUserToken(String userToken) { + public whoami_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -14500,12 +14187,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; @@ -14527,7 +14214,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()); } @@ -14561,7 +14248,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:"); @@ -14596,15 +14283,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) @@ -14633,7 +14320,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); @@ -14648,16 +14335,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()) { @@ -14670,7 +14357,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)) { @@ -14682,23 +14369,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 TInvocationException 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"); @@ -14715,6 +14405,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 @@ -14762,22 +14454,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, TInvocationException serverError) { this(); + this.success = success; this.authError = authError; this.serverError = serverError; } @@ -14785,7 +14481,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); } @@ -14794,21 +14493,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; } @@ -14832,7 +14556,7 @@ public class SatelliteServer { return this.serverError; } - public isAuthenticated_result setServerError(TInvocationException serverError) { + public whoami_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -14854,6 +14578,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(); @@ -14875,6 +14607,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -14892,6 +14627,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case SERVER_ERROR: @@ -14904,15 +14641,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) { @@ -14940,13 +14686,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; @@ -14984,9 +14740,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"); @@ -15009,6 +14773,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 { @@ -15027,15 +14794,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) @@ -15045,6 +14812,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(); @@ -15074,10 +14850,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); @@ -15094,25 +14875,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); } @@ -15122,15 +14909,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 TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -15140,15 +14932,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 @@ -15218,13 +15010,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(); @@ -15234,14 +15026,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 @@ -15253,7 +15045,7 @@ public class SatelliteServer { return this.userToken; } - public whoami_args setUserToken(String userToken) { + public invalidateSession_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -15312,12 +15104,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; @@ -15339,7 +15131,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()); } @@ -15373,7 +15165,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:"); @@ -15408,15 +15200,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) @@ -15445,7 +15237,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); @@ -15460,16 +15252,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()) { @@ -15482,7 +15274,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)) { @@ -15494,28 +15286,22 @@ 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 org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); 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 TInvocationException serverError; // required + public TInvalidTokenException ex; // 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"); + EX((short)1, "ex"); private static final Map byName = new HashMap(); @@ -15530,12 +15316,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 - return SERVER_ERROR; + case 1: // EX + return EX; default: return null; } @@ -15579,151 +15361,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.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, + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", 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); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); } - public whoami_result() { + public invalidateSession_result() { } - public whoami_result( - WhoamiInfo success, - TAuthorizationException authError, - TInvocationException serverError) + public invalidateSession_result( + TInvalidTokenException ex) { this(); - this.success = success; - this.authError = authError; - this.serverError = serverError; + this.ex = ex; } /** * 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 TInvocationException(other.serverError); + public invalidateSession_result(invalidateSession_result other) { + if (other.isSetEx()) { + this.ex = new TInvalidTokenException(other.ex); } } - 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; - } + this.ex = null; } - public TInvocationException getServerError() { - return this.serverError; + public TInvalidTokenException getEx() { + return this.ex; } - public whoami_result setServerError(TInvocationException serverError) { - this.serverError = serverError; + public invalidateSession_result setEx(TInvalidTokenException ex) { + this.ex = ex; return this; } - public void unsetServerError() { - this.serverError = null; + public void unsetEx() { + this.ex = null; } - /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ - public boolean isSetServerError() { - return this.serverError != null; + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ + public boolean isSetEx() { + return this.ex != null; } - public void setServerErrorIsSet(boolean value) { + public void setExIsSet(boolean value) { if (!value) { - this.serverError = null; + this.ex = 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: + case EX: if (value == null) { - unsetServerError(); + unsetEx(); } else { - setServerError((TInvocationException)value); + setEx((TInvalidTokenException)value); } break; @@ -15732,14 +15434,8 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - - case AUTH_ERROR: - return getAuthError(); - - case SERVER_ERROR: - return getServerError(); + case EX: + return getEx(); } throw new IllegalStateException(); @@ -15752,12 +15448,8 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case AUTH_ERROR: - return isSetAuthError(); - case SERVER_ERROR: - return isSetServerError(); + case EX: + return isSetEx(); } throw new IllegalStateException(); } @@ -15766,39 +15458,21 @@ 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)) + boolean this_present_ex = true && this.isSetEx(); + boolean that_present_ex = true && that.isSetEx(); + if (this_present_ex || that_present_ex) { + if (!(this_present_ex && that_present_ex)) return false; - if (!this.serverError.equals(that.serverError)) + if (!this.ex.equals(that.ex)) return false; } @@ -15811,39 +15485,19 @@ 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()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (isSetEx()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } @@ -15865,30 +15519,14 @@ 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("ex:"); + if (this.ex == null) { sb.append("null"); } else { - sb.append(this.serverError); + sb.append(this.ex); } first = false; sb.append(")"); @@ -15898,9 +15536,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 { @@ -15919,15 +15554,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) @@ -15937,29 +15572,11 @@ 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 + case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.ex = new TInvalidTokenException(); + struct.ex.read(iprot); + struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15975,23 +15592,13 @@ 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); + if (struct.ex != null) { + oprot.writeFieldBegin(EX_FIELD_DESC); + struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -16000,79 +15607,60 @@ public class SatelliteServer { } - 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()) { + if (struct.isSetEx()) { 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); + oprot.writeBitSet(optionals, 1); + if (struct.isSetEx()) { + struct.ex.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); + BitSet incoming = iprot.readBitSet(1); 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 TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.ex = new TInvalidTokenException(); + struct.ex.read(iprot); + struct.setExIsSet(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(); @@ -16089,6 +15677,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; + case 2: // PAGE + return PAGE; default: return null; } @@ -16129,48 +15719,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; } @@ -16190,9 +15791,32 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case USER_TOKEN: + 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 { @@ -16200,6 +15824,14 @@ public class SatelliteServer { } break; + case PAGE: + if (value == null) { + unsetPage(); + } else { + setPage((Integer)value); + } + break; + } } @@ -16208,6 +15840,9 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case PAGE: + return Integer.valueOf(getPage()); + } throw new IllegalStateException(); } @@ -16221,6 +15856,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -16229,12 +15866,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; @@ -16247,6 +15884,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; } @@ -16256,7 +15902,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()); } @@ -16273,6 +15919,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; } @@ -16290,7 +15946,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:"); @@ -16300,6 +15956,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(); } @@ -16319,21 +15979,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) @@ -16351,6 +16013,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); } @@ -16362,7 +16032,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); @@ -16371,62 +16041,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 EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", 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.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 TInvalidTokenException ex; // required + public List success; // required + public TAuthorizationException failure; // required + public TInvocationException 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 { - EX((short)1, "ex"); + SUCCESS((short)0, "success"), + FAILURE((short)1, "failure"), + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -16441,8 +16130,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // EX - return EX; + case 0: // SUCCESS + return SUCCESS; + case 1: // FAILURE + return FAILURE; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -16486,71 +16179,171 @@ 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.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", 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.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 invalidateSession_result( - TInvalidTokenException ex) + public getUserList_result( + List success, + TAuthorizationException failure, + TInvocationException serverError) { this(); - this.ex = ex; + this.success = success; + this.failure = failure; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public invalidateSession_result(invalidateSession_result other) { - if (other.isSetEx()) { - this.ex = new TInvalidTokenException(other.ex); + 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 TInvocationException(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.ex = null; + this.success = null; + this.failure = null; + this.serverError = null; } - public TInvalidTokenException getEx() { - return this.ex; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public invalidateSession_result setEx(TInvalidTokenException ex) { - this.ex = ex; + 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 unsetEx() { - this.ex = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field ex is set (has been assigned a value) and false otherwise */ - public boolean isSetEx() { - return this.ex != 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 setExIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.ex = null; + 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 TInvocationException getServerError() { + return this.serverError; + } + + public getUserList_result setServerError(TInvocationException 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 EX: + case SUCCESS: if (value == null) { - unsetEx(); + unsetSuccess(); } else { - setEx((TInvalidTokenException)value); + setSuccess((List)value); + } + break; + + case FAILURE: + if (value == null) { + unsetFailure(); + } else { + setFailure((TAuthorizationException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInvocationException)value); } break; @@ -16559,8 +16352,14 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case EX: - return getEx(); + case SUCCESS: + return getSuccess(); + + case FAILURE: + return getFailure(); + + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -16573,8 +16372,12 @@ public class SatelliteServer { } switch (field) { - case EX: - return isSetEx(); + case SUCCESS: + return isSetSuccess(); + case FAILURE: + return isSetFailure(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -16583,21 +16386,39 @@ 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_ex = true && this.isSetEx(); - boolean that_present_ex = true && that.isSetEx(); - if (this_present_ex || that_present_ex) { - if (!(this_present_ex && that_present_ex)) + 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.ex.equals(that.ex)) + 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; } @@ -16610,19 +16431,39 @@ 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(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + 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; } @@ -16644,14 +16485,30 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_result("); + StringBuilder sb = new StringBuilder("getUserList_result("); boolean first = true; - sb.append("ex:"); - if (this.ex == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.ex); + 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(")"); @@ -16679,15 +16536,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) @@ -16697,11 +16554,39 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // EX + 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) + { + UserInfo _elem172; + _elem172 = new UserInfo(); + _elem172.read(iprot); + struct.success.add(_elem172); + } + 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.ex = new TInvalidTokenException(); - struct.ex.read(iprot); - struct.setExIsSet(true); + 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 TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16717,13 +16602,30 @@ 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.ex != null) { - oprot.writeFieldBegin(EX_FIELD_DESC); - struct.ex.write(oprot); + 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 _iter173 : struct.success) + { + _iter173.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(); @@ -16732,60 +16634,94 @@ public class SatelliteServer { } - 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.isSetEx()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetEx()) { - struct.ex.write(oprot); + 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 _iter174 : struct.success) + { + _iter174.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(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.ex = new TInvalidTokenException(); - struct.ex.read(iprot); - struct.setExIsSet(true); + { + 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) + { + UserInfo _elem177; + _elem177 = new UserInfo(); + _elem177.read(iprot); + struct.success.add(_elem177); + } + } + 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 TInvocationException(); + 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 getUserConfig_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("getUserConfig_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 getUserConfig_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserConfig_argsTupleSchemeFactory()); } public String userToken; // required - public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_TOKEN((short)1, "userToken"), - PAGE((short)2, "page"); + USER_TOKEN((short)1, "userToken"); private static final Map byName = new HashMap(); @@ -16802,8 +16738,6 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // PAGE - return PAGE; default: return null; } @@ -16844,59 +16778,48 @@ public class SatelliteServer { } // isset id assignments - private static final int __PAGE_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_args.class, metaDataMap); } - public getUserList_args() { + public getUserConfig_args() { } - public getUserList_args( - String userToken, - int page) + public getUserConfig_args( + String userToken) { this(); this.userToken = userToken; - this.page = page; - setPageIsSet(true); } /** * Performs a deep copy on other. */ - public getUserList_args(getUserList_args other) { - __isset_bitfield = other.__isset_bitfield; + public getUserConfig_args(getUserConfig_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - this.page = other.page; } - public getUserList_args deepCopy() { - return new getUserList_args(this); + public getUserConfig_args deepCopy() { + return new getUserConfig_args(this); } @Override public void clear() { this.userToken = null; - setPageIsSet(false); - this.page = 0; } public String getUserToken() { return this.userToken; } - public getUserList_args setUserToken(String userToken) { + public getUserConfig_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -16916,29 +16839,6 @@ 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: @@ -16949,14 +16849,6 @@ public class SatelliteServer { } break; - case PAGE: - if (value == null) { - unsetPage(); - } else { - setPage((Integer)value); - } - break; - } } @@ -16965,9 +16857,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case PAGE: - return Integer.valueOf(getPage()); - } throw new IllegalStateException(); } @@ -16981,8 +16870,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case PAGE: - return isSetPage(); } throw new IllegalStateException(); } @@ -16991,12 +16878,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserList_args) - return this.equals((getUserList_args)that); + if (that instanceof getUserConfig_args) + return this.equals((getUserConfig_args)that); return false; } - public boolean equals(getUserList_args that) { + public boolean equals(getUserConfig_args that) { if (that == null) return false; @@ -17009,15 +16896,6 @@ public class SatelliteServer { return false; } - boolean this_present_page = true; - boolean that_present_page = true; - if (this_present_page || that_present_page) { - if (!(this_present_page && that_present_page)) - return false; - if (this.page != that.page) - return false; - } - return true; } @@ -17027,7 +16905,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_args other) { + public int compareTo(getUserConfig_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17044,16 +16922,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -17071,7 +16939,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_args("); + StringBuilder sb = new StringBuilder("getUserConfig_args("); boolean first = true; sb.append("userToken:"); @@ -17081,10 +16949,6 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; - if (!first) sb.append(", "); - sb.append("page:"); - sb.append(this.page); - first = false; sb.append(")"); return sb.toString(); } @@ -17104,23 +16968,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 getUserConfig_argsStandardSchemeFactory implements SchemeFactory { + public getUserConfig_argsStandardScheme getScheme() { + return new getUserConfig_argsStandardScheme(); } } - private static class getUserList_argsStandardScheme extends StandardScheme { + private static class getUserConfig_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, getUserConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17138,14 +17000,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PAGE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17157,7 +17011,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17166,73 +17020,60 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(PAGE_FIELD_DESC); - oprot.writeI32(struct.page); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getUserList_argsTupleSchemeFactory implements SchemeFactory { - public getUserList_argsTupleScheme getScheme() { - return new getUserList_argsTupleScheme(); + private static class getUserConfig_argsTupleSchemeFactory implements SchemeFactory { + public getUserConfig_argsTupleScheme getScheme() { + return new getUserConfig_argsTupleScheme(); } } - private static class getUserList_argsTupleScheme extends TupleScheme { + private static class getUserConfig_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, getUserConfig_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetPage()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetPage()) { - oprot.writeI32(struct.page); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserConfig_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } - if (incoming.get(1)) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); - } } } } - public static class getUserList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserList_result"); + public static class getUserConfig_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("getUserConfig_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 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 getUserConfig_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserConfig_resultTupleSchemeFactory()); } - public List success; // required + public SatelliteUserConfig success; // required public TAuthorizationException failure; // required public TInvocationException serverError; // required @@ -17305,21 +17146,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); 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)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteUserConfig.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_result.class, metaDataMap); } - public getUserList_result() { + public getUserConfig_result() { } - public getUserList_result( - List success, + public getUserConfig_result( + SatelliteUserConfig success, TAuthorizationException failure, TInvocationException serverError) { @@ -17332,13 +17172,9 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getUserList_result(getUserList_result other) { + public getUserConfig_result(getUserConfig_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; + this.success = new SatelliteUserConfig(other.success); } if (other.isSetFailure()) { this.failure = new TAuthorizationException(other.failure); @@ -17348,8 +17184,8 @@ public class SatelliteServer { } } - public getUserList_result deepCopy() { - return new getUserList_result(this); + public getUserConfig_result deepCopy() { + return new getUserConfig_result(this); } @Override @@ -17359,26 +17195,11 @@ public class SatelliteServer { this.serverError = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(UserInfo elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public SatelliteUserConfig getSuccess() { return this.success; } - public getUserList_result setSuccess(List success) { + public getUserConfig_result setSuccess(SatelliteUserConfig success) { this.success = success; return this; } @@ -17402,7 +17223,7 @@ public class SatelliteServer { return this.failure; } - public getUserList_result setFailure(TAuthorizationException failure) { + public getUserConfig_result setFailure(TAuthorizationException failure) { this.failure = failure; return this; } @@ -17426,7 +17247,7 @@ public class SatelliteServer { return this.serverError; } - public getUserList_result setServerError(TInvocationException serverError) { + public getUserConfig_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -17452,7 +17273,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((SatelliteUserConfig)value); } break; @@ -17511,12 +17332,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 getUserConfig_result) + return this.equals((getUserConfig_result)that); return false; } - public boolean equals(getUserList_result that) { + public boolean equals(getUserConfig_result that) { if (that == null) return false; @@ -17556,7 +17377,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_result other) { + public int compareTo(getUserConfig_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17610,7 +17431,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_result("); + StringBuilder sb = new StringBuilder("getUserConfig_result("); boolean first = true; sb.append("success:"); @@ -17643,6 +17464,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 { @@ -17661,15 +17485,15 @@ public class SatelliteServer { } } - private static class getUserList_resultStandardSchemeFactory implements SchemeFactory { - public getUserList_resultStandardScheme getScheme() { - return new getUserList_resultStandardScheme(); + private static class getUserConfig_resultStandardSchemeFactory implements SchemeFactory { + public getUserConfig_resultStandardScheme getScheme() { + return new getUserConfig_resultStandardScheme(); } } - private static class getUserList_resultStandardScheme extends StandardScheme { + private static class getUserConfig_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, getUserConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17680,19 +17504,9 @@ public class SatelliteServer { } 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(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new SatelliteUserConfig(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -17727,20 +17541,13 @@ 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, getUserConfig_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(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.failure != null) { @@ -17759,16 +17566,16 @@ public class SatelliteServer { } - private static class getUserList_resultTupleSchemeFactory implements SchemeFactory { - public getUserList_resultTupleScheme getScheme() { - return new getUserList_resultTupleScheme(); + private static class getUserConfig_resultTupleSchemeFactory implements SchemeFactory { + public getUserConfig_resultTupleScheme getScheme() { + return new getUserConfig_resultTupleScheme(); } } - private static class getUserList_resultTupleScheme extends TupleScheme { + private static class getUserConfig_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, getUserConfig_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -17782,13 +17589,7 @@ public class SatelliteServer { } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (UserInfo _iter158 : struct.success) - { - _iter158.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetFailure()) { struct.failure.write(oprot); @@ -17799,21 +17600,12 @@ public class SatelliteServer { } @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, getUserConfig_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.success = new SatelliteUserConfig(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -17831,22 +17623,25 @@ public class SatelliteServer { } - public static class getUserConfig_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("getUserConfig_args"); + public static class setUserConfig_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("setUserConfig_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 CONFIG_FIELD_DESC = new org.apache.thrift.protocol.TField("config", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserConfig_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserConfig_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setUserConfig_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setUserConfig_argsTupleSchemeFactory()); } public String userToken; // required + public SatelliteUserConfig config; // 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"), + CONFIG((short)2, "config"); private static final Map byName = new HashMap(); @@ -17863,6 +17658,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; + case 2: // CONFIG + return CONFIG; default: return null; } @@ -17908,43 +17705,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.CONFIG, new org.apache.thrift.meta_data.FieldMetaData("config", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteUserConfig.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_args.class, metaDataMap); } - public getUserConfig_args() { + public setUserConfig_args() { } - public getUserConfig_args( - String userToken) + public setUserConfig_args( + String userToken, + SatelliteUserConfig config) { this(); this.userToken = userToken; + this.config = config; } /** * Performs a deep copy on other. */ - public getUserConfig_args(getUserConfig_args other) { + public setUserConfig_args(setUserConfig_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } + if (other.isSetConfig()) { + this.config = new SatelliteUserConfig(other.config); + } } - public getUserConfig_args deepCopy() { - return new getUserConfig_args(this); + public setUserConfig_args deepCopy() { + return new setUserConfig_args(this); } @Override public void clear() { this.userToken = null; + this.config = null; } public String getUserToken() { return this.userToken; } - public getUserConfig_args setUserToken(String userToken) { + public setUserConfig_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -17964,6 +17769,30 @@ public class SatelliteServer { } } + public SatelliteUserConfig getConfig() { + return this.config; + } + + public setUserConfig_args setConfig(SatelliteUserConfig config) { + this.config = config; + return this; + } + + public void unsetConfig() { + this.config = null; + } + + /** Returns true if field config is set (has been assigned a value) and false otherwise */ + public boolean isSetConfig() { + return this.config != null; + } + + public void setConfigIsSet(boolean value) { + if (!value) { + this.config = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -17974,6 +17803,14 @@ public class SatelliteServer { } break; + case CONFIG: + if (value == null) { + unsetConfig(); + } else { + setConfig((SatelliteUserConfig)value); + } + break; + } } @@ -17982,6 +17819,9 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case CONFIG: + return getConfig(); + } throw new IllegalStateException(); } @@ -17995,6 +17835,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case CONFIG: + return isSetConfig(); } throw new IllegalStateException(); } @@ -18003,12 +17845,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserConfig_args) - return this.equals((getUserConfig_args)that); + if (that instanceof setUserConfig_args) + return this.equals((setUserConfig_args)that); return false; } - public boolean equals(getUserConfig_args that) { + public boolean equals(setUserConfig_args that) { if (that == null) return false; @@ -18021,6 +17863,15 @@ public class SatelliteServer { return false; } + boolean this_present_config = true && this.isSetConfig(); + boolean that_present_config = true && that.isSetConfig(); + if (this_present_config || that_present_config) { + if (!(this_present_config && that_present_config)) + return false; + if (!this.config.equals(that.config)) + return false; + } + return true; } @@ -18030,7 +17881,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserConfig_args other) { + public int compareTo(setUserConfig_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -18047,6 +17898,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetConfig()).compareTo(other.isSetConfig()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetConfig()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.config, other.config); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -18064,7 +17925,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserConfig_args("); + StringBuilder sb = new StringBuilder("setUserConfig_args("); boolean first = true; sb.append("userToken:"); @@ -18074,6 +17935,14 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; + if (!first) sb.append(", "); + sb.append("config:"); + if (this.config == null) { + sb.append("null"); + } else { + sb.append(this.config); + } + first = false; sb.append(")"); return sb.toString(); } @@ -18081,6 +17950,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (config != null) { + config.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -18099,15 +17971,15 @@ public class SatelliteServer { } } - private static class getUserConfig_argsStandardSchemeFactory implements SchemeFactory { - public getUserConfig_argsStandardScheme getScheme() { - return new getUserConfig_argsStandardScheme(); + private static class setUserConfig_argsStandardSchemeFactory implements SchemeFactory { + public setUserConfig_argsStandardScheme getScheme() { + return new setUserConfig_argsStandardScheme(); } } - private static class getUserConfig_argsStandardScheme extends StandardScheme { + private static class setUserConfig_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18125,6 +17997,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // CONFIG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.config = new SatelliteUserConfig(); + struct.config.read(iprot); + struct.setConfigIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -18136,7 +18017,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18145,66 +18026,79 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } + if (struct.config != null) { + oprot.writeFieldBegin(CONFIG_FIELD_DESC); + struct.config.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getUserConfig_argsTupleSchemeFactory implements SchemeFactory { - public getUserConfig_argsTupleScheme getScheme() { - return new getUserConfig_argsTupleScheme(); + private static class setUserConfig_argsTupleSchemeFactory implements SchemeFactory { + public setUserConfig_argsTupleScheme getScheme() { + return new setUserConfig_argsTupleScheme(); } } - private static class getUserConfig_argsTupleScheme extends TupleScheme { + private static class setUserConfig_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_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.isSetConfig()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } + if (struct.isSetConfig()) { + struct.config.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_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.config = new SatelliteUserConfig(); + struct.config.read(iprot); + struct.setConfigIsSet(true); + } } } } - public static class getUserConfig_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("getUserConfig_result"); + public static class setUserConfig_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("setUserConfig_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 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 getUserConfig_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserConfig_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setUserConfig_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setUserConfig_resultTupleSchemeFactory()); } - public SatelliteUserConfig success; // required public TAuthorizationException failure; // required public TInvocationException 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"); @@ -18221,8 +18115,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // FAILURE return FAILURE; case 2: // SERVER_ERROR @@ -18270,26 +18162,22 @@ 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, SatelliteUserConfig.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(getUserConfig_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_result.class, metaDataMap); } - public getUserConfig_result() { + public setUserConfig_result() { } - public getUserConfig_result( - SatelliteUserConfig success, + public setUserConfig_result( TAuthorizationException failure, TInvocationException serverError) { this(); - this.success = success; this.failure = failure; this.serverError = serverError; } @@ -18297,10 +18185,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getUserConfig_result(getUserConfig_result other) { - if (other.isSetSuccess()) { - this.success = new SatelliteUserConfig(other.success); - } + public setUserConfig_result(setUserConfig_result other) { if (other.isSetFailure()) { this.failure = new TAuthorizationException(other.failure); } @@ -18309,46 +18194,21 @@ public class SatelliteServer { } } - public getUserConfig_result deepCopy() { - return new getUserConfig_result(this); + public setUserConfig_result deepCopy() { + return new setUserConfig_result(this); } @Override public void clear() { - this.success = null; this.failure = null; this.serverError = null; } - public SatelliteUserConfig getSuccess() { - return this.success; - } - - public getUserConfig_result setSuccess(SatelliteUserConfig 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 getUserConfig_result setFailure(TAuthorizationException failure) { + public setUserConfig_result setFailure(TAuthorizationException failure) { this.failure = failure; return this; } @@ -18372,7 +18232,7 @@ public class SatelliteServer { return this.serverError; } - public getUserConfig_result setServerError(TInvocationException serverError) { + public setUserConfig_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -18394,14 +18254,6 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((SatelliteUserConfig)value); - } - break; - case FAILURE: if (value == null) { unsetFailure(); @@ -18423,9 +18275,6 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case FAILURE: return getFailure(); @@ -18443,8 +18292,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case FAILURE: return isSetFailure(); case SERVER_ERROR: @@ -18457,24 +18304,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserConfig_result) - return this.equals((getUserConfig_result)that); + if (that instanceof setUserConfig_result) + return this.equals((setUserConfig_result)that); return false; } - public boolean equals(getUserConfig_result that) { + public boolean equals(setUserConfig_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) { @@ -18502,23 +18340,13 @@ public class SatelliteServer { } @Override - public int compareTo(getUserConfig_result other) { + public int compareTo(setUserConfig_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; @@ -18556,17 +18384,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserConfig_result("); + StringBuilder sb = new StringBuilder("setUserConfig_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"); @@ -18589,9 +18409,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 { @@ -18610,15 +18427,15 @@ public class SatelliteServer { } } - private static class getUserConfig_resultStandardSchemeFactory implements SchemeFactory { - public getUserConfig_resultStandardScheme getScheme() { - return new getUserConfig_resultStandardScheme(); + private static class setUserConfig_resultStandardSchemeFactory implements SchemeFactory { + public setUserConfig_resultStandardScheme getScheme() { + return new setUserConfig_resultStandardScheme(); } } - private static class getUserConfig_resultStandardScheme extends StandardScheme { + private static class setUserConfig_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18628,15 +18445,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new SatelliteUserConfig(); - struct.success.read(iprot); - 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(); @@ -18666,15 +18474,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_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.failure != null) { oprot.writeFieldBegin(FAILURE_FIELD_DESC); struct.failure.write(oprot); @@ -18691,31 +18494,25 @@ public class SatelliteServer { } - private static class getUserConfig_resultTupleSchemeFactory implements SchemeFactory { - public getUserConfig_resultTupleScheme getScheme() { - return new getUserConfig_resultTupleScheme(); + private static class setUserConfig_resultTupleSchemeFactory implements SchemeFactory { + public setUserConfig_resultTupleScheme getScheme() { + return new setUserConfig_resultTupleScheme(); } } - private static class getUserConfig_resultTupleScheme extends TupleScheme { + private static class setUserConfig_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_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); + optionals.set(0); } if (struct.isSetServerError()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetFailure()) { struct.failure.write(oprot); } @@ -18725,20 +18522,15 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_result 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.success = new SatelliteUserConfig(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.failure = new TAuthorizationException(); struct.failure.read(iprot); struct.setFailureIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -18748,25 +18540,20 @@ public class SatelliteServer { } - public static class setUserConfig_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("setUserConfig_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 CONFIG_FIELD_DESC = new org.apache.thrift.protocol.TField("config", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setUserConfig_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUserConfig_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); } - public String userToken; // required - public SatelliteUserConfig config; // 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"), - CONFIG((short)2, "config"); +; private static final Map byName = new HashMap(); @@ -18781,10 +18568,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_TOKEN - return USER_TOKEN; - case 2: // CONFIG - return CONFIG; default: return null; } @@ -18823,130 +18606,37 @@ public class SatelliteServer { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.CONFIG, new org.apache.thrift.meta_data.FieldMetaData("config", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteUserConfig.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_args.class, metaDataMap); - } - - public setUserConfig_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); } - public setUserConfig_args( - String userToken, - SatelliteUserConfig config) - { - this(); - this.userToken = userToken; - this.config = config; + public getOperatingSystems_args() { } /** * Performs a deep copy on other. */ - public setUserConfig_args(setUserConfig_args other) { - if (other.isSetUserToken()) { - this.userToken = other.userToken; - } - if (other.isSetConfig()) { - this.config = new SatelliteUserConfig(other.config); - } + public getOperatingSystems_args(getOperatingSystems_args other) { } - public setUserConfig_args deepCopy() { - return new setUserConfig_args(this); + public getOperatingSystems_args deepCopy() { + return new getOperatingSystems_args(this); } @Override public void clear() { - this.userToken = null; - this.config = null; - } - - public String getUserToken() { - return this.userToken; - } - - public setUserConfig_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 SatelliteUserConfig getConfig() { - return this.config; - } - - public setUserConfig_args setConfig(SatelliteUserConfig config) { - this.config = config; - return this; - } - - public void unsetConfig() { - this.config = null; - } - - /** Returns true if field config is set (has been assigned a value) and false otherwise */ - public boolean isSetConfig() { - return this.config != null; - } - - public void setConfigIsSet(boolean value) { - if (!value) { - this.config = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_TOKEN: - if (value == null) { - unsetUserToken(); - } else { - setUserToken((String)value); - } - break; - - case CONFIG: - if (value == null) { - unsetConfig(); - } else { - setConfig((SatelliteUserConfig)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case USER_TOKEN: - return getUserToken(); - - case CONFIG: - return getConfig(); - } throw new IllegalStateException(); } @@ -18958,10 +18648,6 @@ public class SatelliteServer { } switch (field) { - case USER_TOKEN: - return isSetUserToken(); - case CONFIG: - return isSetConfig(); } throw new IllegalStateException(); } @@ -18970,33 +18656,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setUserConfig_args) - return this.equals((setUserConfig_args)that); + if (that instanceof getOperatingSystems_args) + return this.equals((getOperatingSystems_args)that); return false; } - public boolean equals(setUserConfig_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_config = true && this.isSetConfig(); - boolean that_present_config = true && that.isSetConfig(); - if (this_present_config || that_present_config) { - if (!(this_present_config && that_present_config)) - return false; - if (!this.config.equals(that.config)) - return false; - } - return true; } @@ -19006,33 +18674,13 @@ public class SatelliteServer { } @Override - public int compareTo(setUserConfig_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(isSetConfig()).compareTo(other.isSetConfig()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetConfig()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.config, other.config); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -19050,24 +18698,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setUserConfig_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("config:"); - if (this.config == null) { - sb.append("null"); - } else { - sb.append(this.config); - } - first = false; sb.append(")"); return sb.toString(); } @@ -19075,9 +18708,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (config != null) { - config.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -19096,15 +18726,15 @@ public class SatelliteServer { } } - private static class setUserConfig_argsStandardSchemeFactory implements SchemeFactory { - public setUserConfig_argsStandardScheme getScheme() { - return new setUserConfig_argsStandardScheme(); + private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsStandardScheme getScheme() { + return new getOperatingSystems_argsStandardScheme(); } } - private static class setUserConfig_argsStandardScheme extends StandardScheme { + private static class getOperatingSystems_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_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) @@ -19114,23 +18744,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: // CONFIG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.config = new SatelliteUserConfig(); - struct.config.read(iprot); - struct.setConfigIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19142,90 +18755,53 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_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(); - } - if (struct.config != null) { - oprot.writeFieldBegin(CONFIG_FIELD_DESC); - struct.config.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setUserConfig_argsTupleSchemeFactory implements SchemeFactory { - public setUserConfig_argsTupleScheme getScheme() { - return new setUserConfig_argsTupleScheme(); + private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsTupleScheme getScheme() { + return new getOperatingSystems_argsTupleScheme(); } } - private static class setUserConfig_argsTupleScheme extends TupleScheme { + private static class getOperatingSystems_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_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.isSetConfig()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetUserToken()) { - oprot.writeString(struct.userToken); - } - if (struct.isSetConfig()) { - struct.config.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_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.config = new SatelliteUserConfig(); - struct.config.read(iprot); - struct.setConfigIsSet(true); - } } } } - public static class setUserConfig_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("setUserConfig_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 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 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 setUserConfig_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUserConfig_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOperatingSystems_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory()); } - public TAuthorizationException failure; // required - public TInvocationException 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 { - FAILURE((short)1, "failure"), - SERVER_ERROR((short)2, "serverError"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -19240,10 +18816,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // FAILURE - return FAILURE; - case 2: // SERVER_ERROR - return SERVER_ERROR; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -19287,111 +18861,91 @@ 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.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))); + 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap); } - public setUserConfig_result() { + public getOperatingSystems_result() { } - public setUserConfig_result( - TAuthorizationException failure, - TInvocationException serverError) + public getOperatingSystems_result( + List success) { this(); - this.failure = failure; - this.serverError = serverError; + this.success = success; } /** * Performs a deep copy on other. */ - public setUserConfig_result(setUserConfig_result other) { - if (other.isSetFailure()) { - this.failure = new TAuthorizationException(other.failure); - } - if (other.isSetServerError()) { - this.serverError = new TInvocationException(other.serverError); + public getOperatingSystems_result(getOperatingSystems_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)); + } + this.success = __this__success; } } - public setUserConfig_result deepCopy() { - return new setUserConfig_result(this); + public getOperatingSystems_result deepCopy() { + return new getOperatingSystems_result(this); } @Override public void clear() { - this.failure = null; - this.serverError = null; - } - - public TAuthorizationException getFailure() { - return this.failure; - } - - public setUserConfig_result setFailure(TAuthorizationException failure) { - this.failure = failure; - return this; + this.success = null; } - public void unsetFailure() { - this.failure = null; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); } - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; + public void addToSuccess(OperatingSystem elem) { + if (this.success == null) { + this.success = new ArrayList(); } + this.success.add(elem); } - public TInvocationException getServerError() { - return this.serverError; + public List getSuccess() { + return this.success; } - public setUserConfig_result setServerError(TInvocationException serverError) { - this.serverError = serverError; + public getOperatingSystems_result setSuccess(List success) { + this.success = success; return this; } - public void unsetServerError() { - this.serverError = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ - public boolean isSetServerError() { - return this.serverError != 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 setServerErrorIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.serverError = null; + this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((TAuthorizationException)value); - } - break; - - case SERVER_ERROR: + case SUCCESS: if (value == null) { - unsetServerError(); + unsetSuccess(); } else { - setServerError((TInvocationException)value); + setSuccess((List)value); } break; @@ -19400,11 +18954,8 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case FAILURE: - return getFailure(); - - case SERVER_ERROR: - return getServerError(); + case SUCCESS: + return getSuccess(); } throw new IllegalStateException(); @@ -19417,10 +18968,8 @@ public class SatelliteServer { } switch (field) { - case FAILURE: - return isSetFailure(); - case SERVER_ERROR: - return isSetServerError(); + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -19429,30 +18978,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setUserConfig_result) - return this.equals((setUserConfig_result)that); + if (that instanceof getOperatingSystems_result) + return this.equals((getOperatingSystems_result)that); return false; } - public boolean equals(setUserConfig_result that) { + public boolean equals(getOperatingSystems_result that) { if (that == null) 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)) + 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.serverError.equals(that.serverError)) + if (!this.success.equals(that.success)) return false; } @@ -19465,29 +19005,19 @@ public class SatelliteServer { } @Override - public int compareTo(setUserConfig_result other) { + public int compareTo(getOperatingSystems_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - 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()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -19509,22 +19039,14 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setUserConfig_result("); + StringBuilder sb = new StringBuilder("getOperatingSystems_result("); boolean first = true; - 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("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.serverError); + sb.append(this.success); } first = false; sb.append(")"); @@ -19552,15 +19074,15 @@ public class SatelliteServer { } } - private static class setUserConfig_resultStandardSchemeFactory implements SchemeFactory { - public setUserConfig_resultStandardScheme getScheme() { - return new setUserConfig_resultStandardScheme(); + private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultStandardScheme getScheme() { + return new getOperatingSystems_resultStandardScheme(); } } - private static class setUserConfig_resultStandardScheme extends StandardScheme { + private static class getOperatingSystems_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_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) @@ -19570,20 +19092,21 @@ public class SatelliteServer { break; } switch (schemeField.id) { - 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 TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); + struct.success = new ArrayList(_list178.size); + for (int _i179 = 0; _i179 < _list178.size; ++_i179) + { + OperatingSystem _elem180; + _elem180 = new OperatingSystem(); + _elem180.read(iprot); + struct.success.add(_elem180); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19599,18 +19122,20 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_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); - 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); + 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 (OperatingSystem _iter181 : struct.success) + { + _iter181.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -19619,60 +19144,64 @@ public class SatelliteServer { } - private static class setUserConfig_resultTupleSchemeFactory implements SchemeFactory { - public setUserConfig_resultTupleScheme getScheme() { - return new setUserConfig_resultTupleScheme(); + private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultTupleScheme getScheme() { + return new getOperatingSystems_resultTupleScheme(); } } - private static class setUserConfig_resultTupleScheme extends TupleScheme { + private static class getOperatingSystems_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_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.isSetFailure()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetServerError()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetFailure()) { - struct.failure.write(oprot); - } - if (struct.isSetServerError()) { - struct.serverError.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (OperatingSystem _iter182 : struct.success) + { + _iter182.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_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(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.failure = new TAuthorizationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } - if (incoming.get(1)) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + { + 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) + { + OperatingSystem _elem185; + _elem185 = new OperatingSystem(); + _elem185.read(iprot); + struct.success.add(_elem185); + } + } + struct.setSuccessIsSet(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()); } @@ -19735,20 +19264,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 @@ -19781,12 +19310,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; @@ -19799,7 +19328,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()); } @@ -19823,7 +19352,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(")"); @@ -19851,15 +19380,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) @@ -19880,7 +19409,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); @@ -19890,39 +19419,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 { @@ -19988,16 +19517,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; @@ -20006,18 +19535,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 @@ -20029,22 +19558,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; } @@ -20070,7 +19599,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -20103,12 +19632,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; @@ -20130,7 +19659,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()); } @@ -20164,7 +19693,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:"); @@ -20199,15 +19728,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) @@ -20220,14 +19749,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 _list186 = iprot.readListBegin(); + struct.success = new ArrayList(_list186.size); + for (int _i187 = 0; _i187 < _list186.size; ++_i187) { - OperatingSystem _elem164; - _elem164 = new OperatingSystem(); - _elem164.read(iprot); - struct.success.add(_elem164); + Virtualizer _elem188; + _elem188 = new Virtualizer(); + _elem188.read(iprot); + struct.success.add(_elem188); } iprot.readListEnd(); } @@ -20247,7 +19776,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); @@ -20255,9 +19784,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 _iter165 : struct.success) + for (Virtualizer _iter189 : struct.success) { - _iter165.write(oprot); + _iter189.write(oprot); } oprot.writeListEnd(); } @@ -20269,16 +19798,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()) { @@ -20288,28 +19817,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter166 : struct.success) + for (Virtualizer _iter190 : struct.success) { - _iter166.write(oprot); + _iter190.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 _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 _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) { - OperatingSystem _elem169; - _elem169 = new OperatingSystem(); - _elem169.read(iprot); - struct.success.add(_elem169); + Virtualizer _elem193; + _elem193 = new Virtualizer(); + _elem193.read(iprot); + struct.success.add(_elem193); } } struct.setSuccessIsSet(true); @@ -20319,14 +19848,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()); } @@ -20389,20 +19918,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 @@ -20435,12 +19964,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; @@ -20453,7 +19982,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()); } @@ -20477,7 +20006,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(")"); @@ -20505,15 +20034,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) @@ -20534,7 +20063,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); @@ -20544,39 +20073,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 { @@ -20642,16 +20171,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; @@ -20660,18 +20189,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 @@ -20683,22 +20212,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; } @@ -20724,7 +20253,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -20757,12 +20286,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; @@ -20784,7 +20313,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()); } @@ -20818,7 +20347,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:"); @@ -20853,15 +20382,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) @@ -20874,14 +20403,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) { - Virtualizer _elem172; - _elem172 = new Virtualizer(); - _elem172.read(iprot); - struct.success.add(_elem172); + Organization _elem196; + _elem196 = new Organization(); + _elem196.read(iprot); + struct.success.add(_elem196); } iprot.readListEnd(); } @@ -20901,7 +20430,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); @@ -20909,9 +20438,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 _iter173 : struct.success) + for (Organization _iter197 : struct.success) { - _iter173.write(oprot); + _iter197.write(oprot); } oprot.writeListEnd(); } @@ -20923,16 +20452,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()) { @@ -20942,28 +20471,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter174 : struct.success) + for (Organization _iter198 : struct.success) { - _iter174.write(oprot); + _iter198.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 _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) { - Virtualizer _elem177; - _elem177 = new Virtualizer(); - _elem177.read(iprot); - struct.success.add(_elem177); + Organization _elem201; + _elem201 = new Organization(); + _elem201.read(iprot); + struct.success.add(_elem201); } } struct.setSuccessIsSet(true); @@ -20973,14 +20502,14 @@ public class SatelliteServer { } - public static class getAllOrganizations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_args"); + public static class getStatus_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("getStatus_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOrganizations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getStatus_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getStatus_argsTupleSchemeFactory()); } @@ -21043,20 +20572,20 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_args.class, metaDataMap); } - public getAllOrganizations_args() { + public getStatus_args() { } /** * Performs a deep copy on other. */ - public getAllOrganizations_args(getAllOrganizations_args other) { + public getStatus_args(getStatus_args other) { } - public getAllOrganizations_args deepCopy() { - return new getAllOrganizations_args(this); + public getStatus_args deepCopy() { + return new getStatus_args(this); } @Override @@ -21089,12 +20618,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOrganizations_args) - return this.equals((getAllOrganizations_args)that); + if (that instanceof getStatus_args) + return this.equals((getStatus_args)that); return false; } - public boolean equals(getAllOrganizations_args that) { + public boolean equals(getStatus_args that) { if (that == null) return false; @@ -21107,7 +20636,7 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_args other) { + public int compareTo(getStatus_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21131,7 +20660,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_args("); + StringBuilder sb = new StringBuilder("getStatus_args("); boolean first = true; sb.append(")"); @@ -21159,15 +20688,15 @@ public class SatelliteServer { } } - private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsStandardScheme getScheme() { - return new getAllOrganizations_argsStandardScheme(); + private static class getStatus_argsStandardSchemeFactory implements SchemeFactory { + public getStatus_argsStandardScheme getScheme() { + return new getStatus_argsStandardScheme(); } } - private static class getAllOrganizations_argsStandardScheme extends StandardScheme { + private static class getStatus_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, getStatus_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21188,7 +20717,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -21198,39 +20727,39 @@ public class SatelliteServer { } - private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsTupleScheme getScheme() { - return new getAllOrganizations_argsTupleScheme(); + private static class getStatus_argsTupleSchemeFactory implements SchemeFactory { + public getStatus_argsTupleScheme getScheme() { + return new getStatus_argsTupleScheme(); } } - private static class getAllOrganizations_argsTupleScheme extends TupleScheme { + private static class getStatus_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, getStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getAllOrganizations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_result"); + public static class getStatus_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("getStatus_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 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 getStatus_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getStatus_resultTupleSchemeFactory()); } - public List success; // required + public SatelliteStatus 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 { @@ -21295,17 +20824,16 @@ 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, Organization.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteStatus.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_result.class, metaDataMap); } - public getAllOrganizations_result() { + public getStatus_result() { } - public getAllOrganizations_result( - List success) + public getStatus_result( + SatelliteStatus success) { this(); this.success = success; @@ -21314,18 +20842,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getAllOrganizations_result(getAllOrganizations_result other) { + public getStatus_result(getStatus_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)); - } - this.success = __this__success; + this.success = new SatelliteStatus(other.success); } } - public getAllOrganizations_result deepCopy() { - return new getAllOrganizations_result(this); + public getStatus_result deepCopy() { + return new getStatus_result(this); } @Override @@ -21333,26 +20857,11 @@ public class SatelliteServer { this.success = 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(Organization elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public SatelliteStatus getSuccess() { return this.success; } - public getAllOrganizations_result setSuccess(List success) { + public getStatus_result setSuccess(SatelliteStatus success) { this.success = success; return this; } @@ -21378,7 +20887,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((SatelliteStatus)value); } break; @@ -21411,12 +20920,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 getStatus_result) + return this.equals((getStatus_result)that); return false; } - public boolean equals(getAllOrganizations_result that) { + public boolean equals(getStatus_result that) { if (that == null) return false; @@ -21438,7 +20947,7 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_result other) { + public int compareTo(getStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21472,7 +20981,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_result("); + StringBuilder sb = new StringBuilder("getStatus_result("); boolean first = true; sb.append("success:"); @@ -21489,6 +20998,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 { @@ -21507,15 +21019,15 @@ public class SatelliteServer { } } - private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultStandardScheme getScheme() { - return new getAllOrganizations_resultStandardScheme(); + private static class getStatus_resultStandardSchemeFactory implements SchemeFactory { + public getStatus_resultStandardScheme getScheme() { + return new getStatus_resultStandardScheme(); } } - private static class getAllOrganizations_resultStandardScheme extends StandardScheme { + private static class getStatus_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, getStatus_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21526,19 +21038,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); - struct.success = new ArrayList(_list178.size); - for (int _i179 = 0; _i179 < _list178.size; ++_i179) - { - Organization _elem180; - _elem180 = new Organization(); - _elem180.read(iprot); - struct.success.add(_elem180); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new SatelliteStatus(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -21555,20 +21057,13 @@ 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, getStatus_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 (Organization _iter181 : struct.success) - { - _iter181.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -21577,16 +21072,16 @@ public class SatelliteServer { } - private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultTupleScheme getScheme() { - return new getAllOrganizations_resultTupleScheme(); + private static class getStatus_resultTupleSchemeFactory implements SchemeFactory { + public getStatus_resultTupleScheme getScheme() { + return new getStatus_resultTupleScheme(); } } - private static class getAllOrganizations_resultTupleScheme extends TupleScheme { + private static class getStatus_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, getStatus_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -21594,32 +21089,17 @@ public class SatelliteServer { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Organization _iter182 : struct.success) - { - _iter182.write(oprot); - } - } + struct.success.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, getStatus_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 _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) - { - Organization _elem185; - _elem185 = new Organization(); - _elem185.read(iprot); - struct.success.add(_elem185); - } - } + struct.success = new SatelliteStatus(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } } @@ -21627,20 +21107,28 @@ public class SatelliteServer { } - public static class getStatus_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("getStatus_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 getStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getStatus_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(); @@ -21655,6 +21143,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; } @@ -21693,37 +21187,192 @@ 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.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(getStatus_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); } - public getStatus_args() { + 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 getStatus_args(getStatus_args 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 getStatus_args deepCopy() { - return new getStatus_args(this); + 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 void setTagSearchIsSet(boolean value) { + if (!value) { + this.tagSearch = 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: + 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(); } @@ -21735,6 +21384,12 @@ public class SatelliteServer { } switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case TAG_SEARCH: + return isSetTagSearch(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -21743,15 +21398,42 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getStatus_args) - return this.equals((getStatus_args)that); + if (that instanceof getImageList_args) + return this.equals((getImageList_args)that); return false; } - public boolean equals(getStatus_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; } @@ -21761,13 +21443,43 @@ public class SatelliteServer { } @Override - public int compareTo(getStatus_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; } @@ -21785,9 +21497,28 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getStatus_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(); } @@ -21807,21 +21538,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 getStatus_argsStandardSchemeFactory implements SchemeFactory { - public getStatus_argsStandardScheme getScheme() { - return new getStatus_argsStandardScheme(); + private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { + public getImageList_argsStandardScheme getScheme() { + return new getImageList_argsStandardScheme(); } } - private static class getStatus_argsStandardScheme extends StandardScheme { + private static class getImageList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_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) @@ -21831,6 +21564,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 _list202 = iprot.readListBegin(); + struct.tagSearch = new ArrayList(_list202.size); + for (int _i203 = 0; _i203 < _list202.size; ++_i203) + { + String _elem204; + _elem204 = iprot.readString(); + struct.tagSearch.add(_elem204); + } + 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); } @@ -21842,53 +21609,127 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_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 _iter205 : struct.tagSearch) + { + oprot.writeString(_iter205); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getStatus_argsTupleSchemeFactory implements SchemeFactory { - public getStatus_argsTupleScheme getScheme() { - return new getStatus_argsTupleScheme(); + private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { + public getImageList_argsTupleScheme getScheme() { + return new getImageList_argsTupleScheme(); } } - private static class getStatus_argsTupleScheme extends TupleScheme { + private static class getImageList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_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 _iter206 : struct.tagSearch) + { + oprot.writeString(_iter206); + } + } + } + if (struct.isSetPage()) { + oprot.writeI32(struct.page); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_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 _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tagSearch = new ArrayList(_list207.size); + for (int _i208 = 0; _i208 < _list207.size; ++_i208) + { + String _elem209; + _elem209 = iprot.readString(); + struct.tagSearch.add(_elem209); + } + } + struct.setTagSearchIsSet(true); + } + if (incoming.get(2)) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); + } } } } - public static class getStatus_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("getStatus_result"); + public static class getImageList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField 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 getStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getStatus_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); } - public SatelliteStatus success; // required + public List success; // required + public TAuthorizationException authError; // required + public TInvocationException 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(); @@ -21905,6 +21746,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; } @@ -21949,44 +21794,80 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteStatus.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageSummaryRead.class)))); + tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.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(getStatus_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); } - public getStatus_result() { + public getImageList_result() { } - public getStatus_result( - SatelliteStatus success) + public getImageList_result( + List success, + TAuthorizationException authError, + TInvocationException serverError) { this(); this.success = success; + this.authError = authError; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getStatus_result(getStatus_result other) { + public getImageList_result(getImageList_result other) { if (other.isSetSuccess()) { - this.success = new SatelliteStatus(other.success); + List __this__success = new ArrayList(other.success.size()); + for (ImageSummaryRead other_element : other.success) { + __this__success.add(new ImageSummaryRead(other_element)); + } + this.success = __this__success; + } + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } + if (other.isSetServerError()) { + this.serverError = new TInvocationException(other.serverError); } } - public getStatus_result deepCopy() { - return new getStatus_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 SatelliteStatus getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(ImageSummaryRead elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public getStatus_result setSuccess(SatelliteStatus success) { + public getImageList_result setSuccess(List success) { this.success = success; return this; } @@ -22006,13 +21887,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 TInvocationException getServerError() { + return this.serverError; + } + + public getImageList_result setServerError(TInvocationException 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((SatelliteStatus)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((TInvocationException)value); } break; @@ -22024,6 +21969,12 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); + case AUTH_ERROR: + return getAuthError(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -22037,6 +21988,10 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); + case AUTH_ERROR: + return isSetAuthError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -22045,12 +22000,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getStatus_result) - return this.equals((getStatus_result)that); + if (that instanceof getImageList_result) + return this.equals((getImageList_result)that); return false; } - public boolean equals(getStatus_result that) { + public boolean equals(getImageList_result that) { if (that == null) return false; @@ -22063,6 +22018,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; } @@ -22072,7 +22045,7 @@ public class SatelliteServer { } @Override - public int compareTo(getStatus_result other) { + public int compareTo(getImageList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22089,6 +22062,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; } @@ -22106,7 +22099,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getStatus_result("); + StringBuilder sb = new StringBuilder("getImageList_result("); boolean first = true; sb.append("success:"); @@ -22116,6 +22109,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(); } @@ -22123,9 +22132,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 { @@ -22144,15 +22150,15 @@ public class SatelliteServer { } } - private static class getStatus_resultStandardSchemeFactory implements SchemeFactory { - public getStatus_resultStandardScheme getScheme() { - return new getStatus_resultStandardScheme(); + private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { + public getImageList_resultStandardScheme getScheme() { + return new getImageList_resultStandardScheme(); } } - private static class getStatus_resultStandardScheme extends StandardScheme { + private static class getImageList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_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) @@ -22163,14 +22169,42 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new SatelliteStatus(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); + struct.success = new ArrayList(_list210.size); + for (int _i211 = 0; _i211 < _list210.size; ++_i211) + { + ImageSummaryRead _elem212; + _elem212 = new ImageSummaryRead(); + _elem212.read(iprot); + struct.success.add(_elem212); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // AUTH_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.authError = new TAuthorizationException(); + 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 TInvocationException(); + 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); } @@ -22182,13 +22216,30 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (ImageSummaryRead _iter213 : struct.success) + { + _iter213.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(); @@ -22197,63 +22248,97 @@ public class SatelliteServer { } - private static class getStatus_resultTupleSchemeFactory implements SchemeFactory { - public getStatus_resultTupleScheme getScheme() { - return new getStatus_resultTupleScheme(); + private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { + public getImageList_resultTupleScheme getScheme() { + return new getImageList_resultTupleScheme(); } } - private static class getStatus_resultTupleScheme extends TupleScheme { + private static class getImageList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_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()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (ImageSummaryRead _iter214 : struct.success) + { + _iter214.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, getStatus_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)) { - struct.success = new SatelliteStatus(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list215.size); + for (int _i216 = 0; _i216 < _list215.size; ++_i216) + { + ImageSummaryRead _elem217; + _elem217 = new ImageSummaryRead(); + _elem217.read(iprot); + struct.success.add(_elem217); + } + } 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 TInvocationException(); + 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(); @@ -22270,10 +22355,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; } @@ -22314,69 +22397,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; } @@ -22396,68 +22466,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: @@ -22468,19 +22500,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; @@ -22492,11 +22516,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(); @@ -22511,10 +22532,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(); } @@ -22523,12 +22542,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; @@ -22541,21 +22560,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; } @@ -22568,7 +22578,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()); } @@ -22585,22 +22595,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; } @@ -22622,7 +22622,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:"); @@ -22633,17 +22633,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(); } @@ -22663,23 +22659,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) @@ -22697,28 +22691,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 _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); + 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); } @@ -22734,7 +22710,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); @@ -22743,118 +22719,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 _iter189 : struct.tagSearch) - { - oprot.writeString(_iter189); - } - 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 _iter190 : struct.tagSearch) - { - oprot.writeString(_iter190); - } - } - } - 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 _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); + 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 TInvocationException 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(); @@ -22873,7 +22817,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; @@ -22919,80 +22865,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, TInvocationException 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 TInvocationException(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; } @@ -23016,7 +22950,7 @@ public class SatelliteServer { return this.authError; } - public getImageList_result setAuthError(TAuthorizationException authError) { + public getImageDetails_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -23036,11 +22970,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 TInvocationException getServerError() { return this.serverError; } - public getImageList_result setServerError(TInvocationException serverError) { + public getImageDetails_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -23066,7 +23024,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((ImageDetailsRead)value); } break; @@ -23078,6 +23036,14 @@ public class SatelliteServer { } break; + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + case SERVER_ERROR: if (value == null) { unsetServerError(); @@ -23097,6 +23063,9 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); + case NOT_FOUND: + return getNotFound(); + case SERVER_ERROR: return getServerError(); @@ -23115,6 +23084,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -23125,12 +23096,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; @@ -23152,6 +23123,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) { @@ -23170,7 +23150,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()); } @@ -23197,6 +23177,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; @@ -23224,7 +23214,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:"); @@ -23243,6 +23233,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"); @@ -23257,6 +23255,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 { @@ -23275,15 +23276,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) @@ -23294,19 +23295,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list194 = iprot.readListBegin(); - struct.success = new ArrayList(_list194.size); - for (int _i195 = 0; _i195 < _list194.size; ++_i195) - { - ImageSummaryRead _elem196; - _elem196 = new ImageSummaryRead(); - _elem196.read(iprot); - struct.success.add(_elem196); - } - 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); @@ -23321,7 +23312,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 TInvocationException(); struct.serverError.read(iprot); @@ -23341,20 +23341,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 _iter197 : struct.success) - { - _iter197.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -23362,6 +23355,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); @@ -23373,16 +23371,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()) { @@ -23391,43 +23389,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 _iter198 : struct.success) - { - _iter198.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 _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) - { - ImageSummaryRead _elem201; - _elem201 = new ImageSummaryRead(); - _elem201.read(iprot); - struct.success.add(_elem201); - } - } + struct.success = new ImageDetailsRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -23436,6 +23425,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 TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -23445,25 +23439,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(); @@ -23480,8 +23474,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; } @@ -23527,51 +23521,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; } @@ -23591,27 +23585,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; } } @@ -23625,11 +23619,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; @@ -23641,8 +23635,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case IMAGE_NAME: + return getImageName(); } throw new IllegalStateException(); @@ -23657,8 +23651,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(); } @@ -23667,12 +23661,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; @@ -23685,12 +23679,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; } @@ -23703,7 +23697,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()); } @@ -23720,12 +23714,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; } @@ -23747,7 +23741,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:"); @@ -23758,11 +23752,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(")"); @@ -23790,15 +23784,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) @@ -23816,10 +23810,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); } @@ -23835,7 +23829,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); @@ -23844,9 +23838,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(); @@ -23855,35 +23849,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)) { @@ -23891,39 +23885,36 @@ 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 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 ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new 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 TInvocationException serverError; // required + public TInvocationException error; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"), - SERVER_ERROR((short)3, "serverError"); + ERROR((short)2, "error"); private static final Map byName = new HashMap(); @@ -23942,10 +23933,8 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // NOT_FOUND - return NOT_FOUND; - case 3: // SERVER_ERROR - return SERVER_ERROR; + case 2: // ERROR + return ERROR; default: return null; } @@ -23990,68 +23979,60 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.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, - 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, + tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", 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, - TInvocationException serverError) + TInvocationException error) { this(); this.success = success; this.authError = authError; - this.notFound = notFound; - this.serverError = serverError; + this.error = error; } /** * 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.isSetServerError()) { - this.serverError = new TInvocationException(other.serverError); + if (other.isSetError()) { + this.error = new TInvocationException(other.error); } } - 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.serverError = null; + this.error = 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; } @@ -24075,7 +24056,7 @@ public class SatelliteServer { return this.authError; } - public getImageDetails_result setAuthError(TAuthorizationException authError) { + public createImage_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -24095,51 +24076,27 @@ 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 TInvocationException getServerError() { - return this.serverError; + public TInvocationException getError() { + return this.error; } - public getImageDetails_result setServerError(TInvocationException serverError) { - this.serverError = serverError; + public createImage_result setError(TInvocationException error) { + this.error = error; return this; } - public void unsetServerError() { - this.serverError = null; + public void unsetError() { + this.error = null; } - /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ - public boolean isSetServerError() { - return this.serverError != null; + /** Returns true if field error is set (has been assigned a value) and false otherwise */ + public boolean isSetError() { + return this.error != null; } - public void setServerErrorIsSet(boolean value) { + public void setErrorIsSet(boolean value) { if (!value) { - this.serverError = null; + this.error = null; } } @@ -24149,7 +24106,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((ImageDetailsRead)value); + setSuccess((String)value); } break; @@ -24161,19 +24118,11 @@ public class SatelliteServer { } break; - case NOT_FOUND: - if (value == null) { - unsetNotFound(); - } else { - setNotFound((TNotFoundException)value); - } - break; - - case SERVER_ERROR: + case ERROR: if (value == null) { - unsetServerError(); + unsetError(); } else { - setServerError((TInvocationException)value); + setError((TInvocationException)value); } break; @@ -24188,11 +24137,8 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); - case NOT_FOUND: - return getNotFound(); - - case SERVER_ERROR: - return getServerError(); + case ERROR: + return getError(); } throw new IllegalStateException(); @@ -24209,10 +24155,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); - case SERVER_ERROR: - return isSetServerError(); + case ERROR: + return isSetError(); } throw new IllegalStateException(); } @@ -24221,12 +24165,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; @@ -24248,21 +24192,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)) - return false; - if (!this.notFound.equals(that.notFound)) - return false; - } - - boolean this_present_serverError = true && this.isSetServerError(); - boolean that_present_serverError = true && that.isSetServerError(); - if (this_present_serverError || that_present_serverError) { - if (!(this_present_serverError && that_present_serverError)) + boolean this_present_error = true && this.isSetError(); + boolean that_present_error = true && that.isSetError(); + if (this_present_error || that_present_error) { + if (!(this_present_error && that_present_error)) return false; - if (!this.serverError.equals(that.serverError)) + if (!this.error.equals(that.error)) return false; } @@ -24275,7 +24210,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()); } @@ -24302,22 +24237,12 @@ 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()); + lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (isSetError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error); if (lastComparison != 0) { return lastComparison; } @@ -24339,7 +24264,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:"); @@ -24358,19 +24283,11 @@ 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("error:"); + if (this.error == null) { sb.append("null"); } else { - sb.append(this.serverError); + sb.append(this.error); } first = false; sb.append(")"); @@ -24380,9 +24297,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 { @@ -24401,15 +24315,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) @@ -24420,9 +24334,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); @@ -24437,20 +24350,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NOT_FOUND - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SERVER_ERROR + case 2: // ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.error = new TInvocationException(); + struct.error.read(iprot); + struct.setErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -24466,13 +24370,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) { @@ -24480,14 +24384,9 @@ 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); + if (struct.error != null) { + oprot.writeFieldBegin(ERROR_FIELD_DESC); + struct.error.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -24496,16 +24395,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()) { @@ -24514,34 +24413,27 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetError()) { optionals.set(2); } - if (struct.isSetServerError()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); 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.isSetServerError()) { - struct.serverError.write(oprot); + if (struct.isSetError()) { + struct.error.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new ImageDetailsRead(); - struct.success.read(iprot); + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -24550,39 +24442,37 @@ 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 TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.error = new TInvocationException(); + struct.error.read(iprot); + struct.setErrorIsSet(true); } } } } - 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(); @@ -24599,8 +24489,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; } @@ -24646,51 +24538,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; } @@ -24710,27 +24610,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; } } @@ -24744,11 +24668,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; @@ -24760,8 +24692,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(); @@ -24776,8 +24711,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(); } @@ -24786,12 +24723,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; @@ -24804,12 +24741,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; } @@ -24822,7 +24768,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()); } @@ -24839,12 +24785,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; } @@ -24866,7 +24822,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:"); @@ -24877,11 +24833,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(")"); @@ -24891,6 +24855,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 { @@ -24909,15 +24876,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) @@ -24935,10 +24902,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); } @@ -24954,7 +24930,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); @@ -24963,9 +24939,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(); @@ -24974,72 +24955,83 @@ 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 ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", 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 IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); } - public String success; // required public TAuthorizationException authError; // required - public TInvocationException error; // required + public TNotFoundException notFound; // required + public TInvocationException imgError; // 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"), - ERROR((short)2, "error"); + NOT_FOUND((short)2, "notFound"), + IMG_ERROR((short)3, "imgError"); private static final Map byName = new HashMap(); @@ -25054,12 +25046,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // ERROR - return ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // IMG_ERROR + return IMG_ERROR; default: return null; } @@ -25103,151 +25095,151 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.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))); 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, - TInvocationException error) + TNotFoundException notFound, + TInvocationException imgError) { this(); - this.success = success; this.authError = authError; - this.error = error; + this.notFound = notFound; + this.imgError = imgError; } /** * 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.isSetError()) { - this.error = new TInvocationException(other.error); + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetImgError()) { + this.imgError = new TInvocationException(other.imgError); } } - 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.error = null; + this.notFound = null; + this.imgError = 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; } } - public TInvocationException getError() { - return this.error; + public TInvocationException getImgError() { + return this.imgError; } - public createImage_result setError(TInvocationException error) { - this.error = error; + public updateImageBase_result setImgError(TInvocationException imgError) { + this.imgError = imgError; return this; } - public void unsetError() { - this.error = null; + public void unsetImgError() { + this.imgError = null; } - /** Returns true if field error is set (has been assigned a value) and false otherwise */ - public boolean isSetError() { - return this.error != 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 setErrorIsSet(boolean value) { + public void setImgErrorIsSet(boolean value) { if (!value) { - this.error = null; + this.imgError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case AUTH_ERROR: if (value == null) { - unsetSuccess(); + unsetAuthError(); } else { - setSuccess((String)value); + setAuthError((TAuthorizationException)value); } break; - case AUTH_ERROR: + case NOT_FOUND: if (value == null) { - unsetAuthError(); + unsetNotFound(); } else { - setAuthError((TAuthorizationException)value); + setNotFound((TNotFoundException)value); } break; - case ERROR: + case IMG_ERROR: if (value == null) { - unsetError(); + unsetImgError(); } else { - setError((TInvocationException)value); + setImgError((TInvocationException)value); } break; @@ -25256,14 +25248,14 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); - case ERROR: - return getError(); + case NOT_FOUND: + return getNotFound(); + + case IMG_ERROR: + return getImgError(); } throw new IllegalStateException(); @@ -25276,12 +25268,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case ERROR: - return isSetError(); + case NOT_FOUND: + return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); } throw new IllegalStateException(); } @@ -25290,24 +25282,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) { @@ -25317,12 +25300,21 @@ public class SatelliteServer { return false; } - boolean this_present_error = true && this.isSetError(); - boolean that_present_error = true && that.isSetError(); - if (this_present_error || that_present_error) { - if (!(this_present_error && that_present_error)) + 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.error.equals(that.error)) + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_imgError = true && this.isSetImgError(); + boolean that_present_imgError = true && that.isSetImgError(); + if (this_present_imgError || that_present_imgError) { + if (!(this_present_imgError && that_present_imgError)) + return false; + if (!this.imgError.equals(that.imgError)) return false; } @@ -25335,39 +25327,39 @@ 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; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); if (lastComparison != 0) { return lastComparison; } - if (isSetError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error); + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); if (lastComparison != 0) { return lastComparison; } @@ -25389,30 +25381,30 @@ 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(", "); - sb.append("error:"); - if (this.error == null) { + sb.append("imgError:"); + if (this.imgError == null) { sb.append("null"); } else { - sb.append(this.error); + sb.append(this.imgError); } first = false; sb.append(")"); @@ -25440,15 +25432,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) @@ -25458,14 +25450,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(); @@ -25475,11 +25459,20 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ERROR + case 2: // NOT_FOUND if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.error = new TInvocationException(); - struct.error.read(iprot); - struct.setErrorIsSet(true); + 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 TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -25495,23 +25488,23 @@ 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.error != null) { - oprot.writeFieldBegin(ERROR_FIELD_DESC); - struct.error.write(oprot); + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -25520,83 +25513,84 @@ 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.isSetError()) { + if (struct.isSetImgError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - oprot.writeString(struct.success); - } if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetError()) { - struct.error.write(oprot); + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetImgError()) { + struct.imgError.write(oprot); } } @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(3); if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } if (incoming.get(2)) { - struct.error = new TInvocationException(); - struct.error.read(iprot); - struct.setErrorIsSet(true); + struct.imgError = new TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); } } } } - 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(); @@ -25614,8 +25608,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: @@ -25663,51 +25657,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; } @@ -25715,7 +25709,7 @@ public class SatelliteServer { return this.userToken; } - public updateImageBase_args setUserToken(String userToken) { + public updateImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -25735,35 +25729,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; } @@ -25793,11 +25787,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; @@ -25805,7 +25799,7 @@ public class SatelliteServer { if (value == null) { unsetImage(); } else { - setImage((ImageBaseWrite)value); + setImage((ImageVersionWrite)value); } break; @@ -25817,8 +25811,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(); @@ -25836,8 +25830,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(); } @@ -25848,12 +25842,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; @@ -25866,12 +25860,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; } @@ -25893,7 +25887,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()); } @@ -25910,12 +25904,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; } @@ -25947,7 +25941,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:"); @@ -25958,11 +25952,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(", "); @@ -26001,15 +25995,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) @@ -26027,17 +26021,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 { @@ -26055,7 +26049,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); @@ -26064,9 +26058,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) { @@ -26080,22 +26074,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()) { @@ -26105,8 +26099,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); @@ -26114,7 +26108,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)) { @@ -26122,11 +26116,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); } @@ -26135,8 +26129,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); @@ -26144,8 +26138,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 @@ -26227,13 +26221,13 @@ public class SatelliteServer { 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))); 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, TInvocationException imgError) @@ -26247,7 +26241,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); } @@ -26259,8 +26253,8 @@ public class SatelliteServer { } } - public updateImageBase_result deepCopy() { - return new updateImageBase_result(this); + public updateImageVersion_result deepCopy() { + return new updateImageVersion_result(this); } @Override @@ -26274,7 +26268,7 @@ public class SatelliteServer { return this.authError; } - public updateImageBase_result setAuthError(TAuthorizationException authError) { + public updateImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -26298,7 +26292,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageBase_result setNotFound(TNotFoundException notFound) { + public updateImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -26322,7 +26316,7 @@ public class SatelliteServer { return this.imgError; } - public updateImageBase_result setImgError(TInvocationException imgError) { + public updateImageVersion_result setImgError(TInvocationException imgError) { this.imgError = imgError; return this; } @@ -26407,12 +26401,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; @@ -26452,7 +26446,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()); } @@ -26506,7 +26500,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:"); @@ -26557,15 +26551,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) @@ -26613,7 +26607,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); @@ -26638,16 +26632,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()) { @@ -26672,7 +26666,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(3); if (incoming.get(0)) { @@ -26695,28 +26689,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(); @@ -26735,8 +26726,6 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_VERSION_ID return IMAGE_VERSION_ID; - case 3: // IMAGE - return IMAGE; default: return null; } @@ -26784,57 +26773,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; } @@ -26858,7 +26839,7 @@ public class SatelliteServer { return this.imageVersionId; } - public updateImageVersion_args setImageVersionId(String imageVersionId) { + public deleteImageVersion_args setImageVersionId(String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -26878,30 +26859,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: @@ -26920,14 +26877,6 @@ public class SatelliteServer { } break; - case IMAGE: - if (value == null) { - unsetImage(); - } else { - setImage((ImageVersionWrite)value); - } - break; - } } @@ -26939,9 +26888,6 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return getImageVersionId(); - case IMAGE: - return getImage(); - } throw new IllegalStateException(); } @@ -26957,8 +26903,6 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_VERSION_ID: return isSetImageVersionId(); - case IMAGE: - return isSetImage(); } throw new IllegalStateException(); } @@ -26967,12 +26911,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; @@ -26994,15 +26938,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; } @@ -27012,7 +26947,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()); } @@ -27039,16 +26974,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; } @@ -27066,7 +26991,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:"); @@ -27084,14 +27009,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(); } @@ -27099,9 +27016,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 { @@ -27120,15 +27034,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) @@ -27154,15 +27068,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); } @@ -27174,7 +27079,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); @@ -27188,27 +27093,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()) { @@ -27217,25 +27117,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); @@ -27244,38 +27138,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)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 TInvocationException imgError; // required + public TInvocationException 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)3, "serverError"); private static final Map byName = new HashMap(); @@ -27294,8 +27183,8 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; - case 3: // IMG_ERROR - return IMG_ERROR; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -27343,57 +27232,57 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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, - TInvocationException imgError) + TInvocationException 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 TInvocationException(other.imgError); + if (other.isSetServerError()) { + this.serverError = new TInvocationException(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; } public TAuthorizationException getAuthError() { return this.authError; } - public updateImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -27417,7 +27306,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -27437,27 +27326,27 @@ public class SatelliteServer { } } - public TInvocationException getImgError() { - return this.imgError; + public TInvocationException getServerError() { + return this.serverError; } - public updateImageVersion_result setImgError(TInvocationException imgError) { - this.imgError = imgError; + public deleteImageVersion_result setServerError(TInvocationException serverError) { + this.serverError = serverError; return this; } - public void unsetImgError() { - this.imgError = null; + public void unsetServerError() { + this.serverError = null; } - /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ - public boolean isSetImgError() { - return this.imgError != null; + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; } - public void setImgErrorIsSet(boolean value) { + public void setServerErrorIsSet(boolean value) { if (!value) { - this.imgError = null; + this.serverError = null; } } @@ -27479,11 +27368,11 @@ public class SatelliteServer { } break; - case IMG_ERROR: + case SERVER_ERROR: if (value == null) { - unsetImgError(); + unsetServerError(); } else { - setImgError((TInvocationException)value); + setServerError((TInvocationException)value); } break; @@ -27498,8 +27387,8 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); - case IMG_ERROR: - return getImgError(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -27516,8 +27405,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); - case IMG_ERROR: - return isSetImgError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -27526,12 +27415,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; @@ -27553,12 +27442,12 @@ public class SatelliteServer { return false; } - boolean this_present_imgError = true && this.isSetImgError(); - boolean that_present_imgError = true && that.isSetImgError(); - if (this_present_imgError || that_present_imgError) { - if (!(this_present_imgError && that_present_imgError)) + boolean this_present_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.imgError.equals(that.imgError)) + if (!this.serverError.equals(that.serverError)) return false; } @@ -27571,7 +27460,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()); } @@ -27598,12 +27487,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetImgError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -27625,7 +27514,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:"); @@ -27644,11 +27533,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imgError:"); - if (this.imgError == null) { + sb.append("serverError:"); + if (this.serverError == null) { sb.append("null"); } else { - sb.append(this.imgError); + sb.append(this.serverError); } first = false; sb.append(")"); @@ -27676,15 +27565,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) @@ -27712,11 +27601,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IMG_ERROR + case 3: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.imgError = new TInvocationException(); - struct.imgError.read(iprot); - struct.setImgErrorIsSet(true); + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27732,7 +27621,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); @@ -27746,9 +27635,9 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } - if (struct.imgError != null) { - oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); - struct.imgError.write(oprot); + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -27757,16 +27646,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()) { @@ -27775,7 +27664,7 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetImgError()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -27785,13 +27674,13 @@ public class SatelliteServer { 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(3); if (incoming.get(0)) { @@ -27805,34 +27694,34 @@ public class SatelliteServer { struct.setNotFoundIsSet(true); } if (incoming.get(2)) { - struct.imgError = new TInvocationException(); - struct.imgError.read(iprot); - struct.setImgErrorIsSet(true); + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } } } } - public static class deleteImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_args"); + public static class 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(); @@ -27849,8 +27738,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; } @@ -27896,51 +27785,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; } @@ -27960,27 +27849,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; } } @@ -27994,11 +27883,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; @@ -28010,8 +27899,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -28026,8 +27915,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(); } @@ -28036,12 +27925,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; @@ -28054,12 +27943,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; } @@ -28072,7 +27961,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()); } @@ -28089,12 +27978,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; } @@ -28116,7 +28005,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:"); @@ -28127,11 +28016,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(")"); @@ -28159,15 +28048,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) @@ -28185,10 +28074,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); } @@ -28204,7 +28093,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); @@ -28213,9 +28102,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(); @@ -28224,35 +28113,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)) { @@ -28260,16 +28149,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); @@ -28277,8 +28166,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 @@ -28360,13 +28249,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, TInvocationException serverError) @@ -28380,7 +28269,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); } @@ -28392,8 +28281,8 @@ public class SatelliteServer { } } - public deleteImageVersion_result deepCopy() { - return new deleteImageVersion_result(this); + public deleteImageBase_result deepCopy() { + return new deleteImageBase_result(this); } @Override @@ -28407,7 +28296,7 @@ public class SatelliteServer { return this.authError; } - public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteImageBase_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -28431,7 +28320,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageBase_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -28455,7 +28344,7 @@ public class SatelliteServer { return this.serverError; } - public deleteImageVersion_result setServerError(TInvocationException serverError) { + public deleteImageBase_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -28540,12 +28429,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; @@ -28585,7 +28474,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()); } @@ -28639,7 +28528,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:"); @@ -28690,15 +28579,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) @@ -28746,7 +28635,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); @@ -28771,16 +28660,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()) { @@ -28805,7 +28694,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)) { @@ -28828,25 +28717,28 @@ public class SatelliteServer { } - 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"); + public static class writeImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageBase_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageBase_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required + public Map permissions; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + PERMISSIONS((short)3, "permissions"); private static final Map byName = new HashMap(); @@ -28865,6 +28757,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; + case 3: // PERMISSIONS + return PERMISSIONS; default: return null; } @@ -28912,49 +28806,71 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); } - public deleteImageBase_args() { + public writeImagePermissions_args() { } - public deleteImageBase_args( + public writeImagePermissions_args( String userToken, - String imageBaseId) + String imageBaseId, + Map permissions) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; + this.permissions = permissions; } /** * Performs a deep copy on other. */ - public deleteImageBase_args(deleteImageBase_args other) { + public writeImagePermissions_args(writeImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } + if (other.isSetPermissions()) { + Map __this__permissions = new HashMap(other.permissions.size()); + for (Map.Entry other_element : other.permissions.entrySet()) { + + String other_element_key = other_element.getKey(); + ImagePermissions other_element_value = other_element.getValue(); + + String __this__permissions_copy_key = other_element_key; + + ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); + + __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); + } + this.permissions = __this__permissions; + } } - public deleteImageBase_args deepCopy() { - return new deleteImageBase_args(this); + public writeImagePermissions_args deepCopy() { + return new writeImagePermissions_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; + this.permissions = null; } public String getUserToken() { return this.userToken; } - public deleteImageBase_args setUserToken(String userToken) { + public writeImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -28978,7 +28894,7 @@ public class SatelliteServer { return this.imageBaseId; } - public deleteImageBase_args setImageBaseId(String imageBaseId) { + public writeImagePermissions_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -28998,6 +28914,41 @@ public class SatelliteServer { } } + public int getPermissionsSize() { + return (this.permissions == null) ? 0 : this.permissions.size(); + } + + public void putToPermissions(String key, ImagePermissions val) { + if (this.permissions == null) { + this.permissions = new HashMap(); + } + this.permissions.put(key, val); + } + + public Map getPermissions() { + return this.permissions; + } + + public writeImagePermissions_args setPermissions(Map permissions) { + this.permissions = permissions; + return this; + } + + public void unsetPermissions() { + this.permissions = null; + } + + /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ + public boolean isSetPermissions() { + return this.permissions != null; + } + + public void setPermissionsIsSet(boolean value) { + if (!value) { + this.permissions = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -29016,6 +28967,14 @@ public class SatelliteServer { } break; + case PERMISSIONS: + if (value == null) { + unsetPermissions(); + } else { + setPermissions((Map)value); + } + break; + } } @@ -29027,6 +28986,9 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); + case PERMISSIONS: + return getPermissions(); + } throw new IllegalStateException(); } @@ -29042,6 +29004,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); + case PERMISSIONS: + return isSetPermissions(); } throw new IllegalStateException(); } @@ -29050,12 +29014,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageBase_args) - return this.equals((deleteImageBase_args)that); + if (that instanceof writeImagePermissions_args) + return this.equals((writeImagePermissions_args)that); return false; } - public boolean equals(deleteImageBase_args that) { + public boolean equals(writeImagePermissions_args that) { if (that == null) return false; @@ -29077,6 +29041,15 @@ public class SatelliteServer { return false; } + boolean this_present_permissions = true && this.isSetPermissions(); + boolean that_present_permissions = true && that.isSetPermissions(); + if (this_present_permissions || that_present_permissions) { + if (!(this_present_permissions && that_present_permissions)) + return false; + if (!this.permissions.equals(that.permissions)) + return false; + } + return true; } @@ -29086,7 +29059,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageBase_args other) { + public int compareTo(writeImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -29113,6 +29086,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPermissions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -29130,7 +29113,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_args("); + StringBuilder sb = new StringBuilder("writeImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -29148,6 +29131,14 @@ public class SatelliteServer { sb.append(this.imageBaseId); } first = false; + if (!first) sb.append(", "); + sb.append("permissions:"); + if (this.permissions == null) { + sb.append("null"); + } else { + sb.append(this.permissions); + } + first = false; sb.append(")"); return sb.toString(); } @@ -29173,15 +29164,15 @@ public class SatelliteServer { } } - private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageBase_argsStandardScheme getScheme() { - return new deleteImageBase_argsStandardScheme(); + private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsStandardScheme getScheme() { + return new writeImagePermissions_argsStandardScheme(); } } - private static class deleteImageBase_argsStandardScheme extends StandardScheme { + private static class writeImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29207,6 +29198,27 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // PERMISSIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map218.size); + for (int _i219 = 0; _i219 < _map218.size; ++_i219) + { + String _key220; + ImagePermissions _val221; + _key220 = iprot.readString(); + _val221 = new ImagePermissions(); + _val221.read(iprot); + struct.permissions.put(_key220, _val221); + } + iprot.readMapEnd(); + } + struct.setPermissionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -29218,7 +29230,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29232,22 +29244,35 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } + if (struct.permissions != null) { + oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); + for (Map.Entry _iter222 : struct.permissions.entrySet()) + { + oprot.writeString(_iter222.getKey()); + _iter222.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageBase_argsTupleScheme getScheme() { - return new deleteImageBase_argsTupleScheme(); + private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsTupleScheme getScheme() { + return new writeImagePermissions_argsTupleScheme(); } } - private static class deleteImageBase_argsTupleScheme extends TupleScheme { + private static class writeImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -29256,19 +29281,32 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetPermissions()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } + if (struct.isSetPermissions()) { + { + oprot.writeI32(struct.permissions.size()); + for (Map.Entry _iter223 : struct.permissions.entrySet()) + { + oprot.writeString(_iter223.getKey()); + _iter223.getValue().write(oprot); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -29277,13 +29315,29 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TMap _map224 = 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*_map224.size); + for (int _i225 = 0; _i225 < _map224.size; ++_i225) + { + String _key226; + ImagePermissions _val227; + _key226 = iprot.readString(); + _val227 = new ImagePermissions(); + _val227.read(iprot); + struct.permissions.put(_key226, _val227); + } + } + struct.setPermissionsIsSet(true); + } } } } - 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"); + public static class writeImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -29291,8 +29345,8 @@ public class SatelliteServer { private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageBase_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -29374,13 +29428,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(deleteImageBase_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); } - public deleteImageBase_result() { + public writeImagePermissions_result() { } - public deleteImageBase_result( + public writeImagePermissions_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -29394,7 +29448,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public deleteImageBase_result(deleteImageBase_result other) { + public writeImagePermissions_result(writeImagePermissions_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -29406,8 +29460,8 @@ public class SatelliteServer { } } - public deleteImageBase_result deepCopy() { - return new deleteImageBase_result(this); + public writeImagePermissions_result deepCopy() { + return new writeImagePermissions_result(this); } @Override @@ -29421,7 +29475,7 @@ public class SatelliteServer { return this.authError; } - public deleteImageBase_result setAuthError(TAuthorizationException authError) { + public writeImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -29445,7 +29499,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageBase_result setNotFound(TNotFoundException notFound) { + public writeImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -29469,7 +29523,7 @@ public class SatelliteServer { return this.serverError; } - public deleteImageBase_result setServerError(TInvocationException serverError) { + public writeImagePermissions_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -29554,12 +29608,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageBase_result) - return this.equals((deleteImageBase_result)that); + if (that instanceof writeImagePermissions_result) + return this.equals((writeImagePermissions_result)that); return false; } - public boolean equals(deleteImageBase_result that) { + public boolean equals(writeImagePermissions_result that) { if (that == null) return false; @@ -29599,7 +29653,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageBase_result other) { + public int compareTo(writeImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -29653,7 +29707,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_result("); + StringBuilder sb = new StringBuilder("writeImagePermissions_result("); boolean first = true; sb.append("authError:"); @@ -29704,15 +29758,15 @@ public class SatelliteServer { } } - private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageBase_resultStandardScheme getScheme() { - return new deleteImageBase_resultStandardScheme(); + private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultStandardScheme getScheme() { + return new writeImagePermissions_resultStandardScheme(); } } - private static class deleteImageBase_resultStandardScheme extends StandardScheme { + private static class writeImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29760,7 +29814,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29785,16 +29839,16 @@ public class SatelliteServer { } - private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageBase_resultTupleScheme getScheme() { - return new deleteImageBase_resultTupleScheme(); + private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultTupleScheme getScheme() { + return new writeImagePermissions_resultTupleScheme(); } } - private static class deleteImageBase_resultTupleScheme extends TupleScheme { + private static class writeImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -29819,7 +29873,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -29842,28 +29896,25 @@ public class SatelliteServer { } - public static class writeImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_args"); + public static class getImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required - public Map permissions; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"), - PERMISSIONS((short)3, "permissions"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -29882,8 +29933,6 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; - case 3: // PERMISSIONS - return PERMISSIONS; default: return null; } @@ -29931,71 +29980,49 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); } - public writeImagePermissions_args() { + public getImagePermissions_args() { } - public writeImagePermissions_args( + public getImagePermissions_args( String userToken, - String imageBaseId, - Map permissions) + String imageBaseId) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; - this.permissions = permissions; } /** * Performs a deep copy on other. */ - public writeImagePermissions_args(writeImagePermissions_args other) { + public getImagePermissions_args(getImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } - if (other.isSetPermissions()) { - Map __this__permissions = new HashMap(other.permissions.size()); - for (Map.Entry other_element : other.permissions.entrySet()) { - - String other_element_key = other_element.getKey(); - ImagePermissions other_element_value = other_element.getValue(); - - String __this__permissions_copy_key = other_element_key; - - ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); - - __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); - } - this.permissions = __this__permissions; - } } - public writeImagePermissions_args deepCopy() { - return new writeImagePermissions_args(this); + public getImagePermissions_args deepCopy() { + return new getImagePermissions_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; - this.permissions = null; } public String getUserToken() { return this.userToken; } - public writeImagePermissions_args setUserToken(String userToken) { + public getImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -30019,7 +30046,7 @@ public class SatelliteServer { return this.imageBaseId; } - public writeImagePermissions_args setImageBaseId(String imageBaseId) { + public getImagePermissions_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -30039,41 +30066,6 @@ public class SatelliteServer { } } - public int getPermissionsSize() { - return (this.permissions == null) ? 0 : this.permissions.size(); - } - - public void putToPermissions(String key, ImagePermissions val) { - if (this.permissions == null) { - this.permissions = new HashMap(); - } - this.permissions.put(key, val); - } - - public Map getPermissions() { - return this.permissions; - } - - public writeImagePermissions_args setPermissions(Map permissions) { - this.permissions = permissions; - return this; - } - - public void unsetPermissions() { - this.permissions = null; - } - - /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ - public boolean isSetPermissions() { - return this.permissions != null; - } - - public void setPermissionsIsSet(boolean value) { - if (!value) { - this.permissions = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -30092,14 +30084,6 @@ public class SatelliteServer { } break; - case PERMISSIONS: - if (value == null) { - unsetPermissions(); - } else { - setPermissions((Map)value); - } - break; - } } @@ -30111,9 +30095,6 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); - case PERMISSIONS: - return getPermissions(); - } throw new IllegalStateException(); } @@ -30129,8 +30110,6 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); - case PERMISSIONS: - return isSetPermissions(); } throw new IllegalStateException(); } @@ -30139,12 +30118,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_args) - return this.equals((writeImagePermissions_args)that); + if (that instanceof getImagePermissions_args) + return this.equals((getImagePermissions_args)that); return false; } - public boolean equals(writeImagePermissions_args that) { + public boolean equals(getImagePermissions_args that) { if (that == null) return false; @@ -30166,15 +30145,6 @@ public class SatelliteServer { return false; } - boolean this_present_permissions = true && this.isSetPermissions(); - boolean that_present_permissions = true && that.isSetPermissions(); - if (this_present_permissions || that_present_permissions) { - if (!(this_present_permissions && that_present_permissions)) - return false; - if (!this.permissions.equals(that.permissions)) - return false; - } - return true; } @@ -30184,7 +30154,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_args other) { + public int compareTo(getImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -30211,16 +30181,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPermissions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -30238,7 +30198,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_args("); + StringBuilder sb = new StringBuilder("getImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -30256,14 +30216,6 @@ public class SatelliteServer { sb.append(this.imageBaseId); } first = false; - if (!first) sb.append(", "); - sb.append("permissions:"); - if (this.permissions == null) { - sb.append("null"); - } else { - sb.append(this.permissions); - } - first = false; sb.append(")"); return sb.toString(); } @@ -30289,15 +30241,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsStandardScheme getScheme() { - return new writeImagePermissions_argsStandardScheme(); + private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_argsStandardScheme getScheme() { + return new getImagePermissions_argsStandardScheme(); } } - private static class writeImagePermissions_argsStandardScheme extends StandardScheme { + private static class getImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30323,27 +30275,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PERMISSIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map202 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map202.size); - for (int _i203 = 0; _i203 < _map202.size; ++_i203) - { - String _key204; - ImagePermissions _val205; - _key204 = iprot.readString(); - _val205 = new ImagePermissions(); - _val205.read(iprot); - struct.permissions.put(_key204, _val205); - } - iprot.readMapEnd(); - } - struct.setPermissionsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -30355,7 +30286,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -30369,35 +30300,22 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - if (struct.permissions != null) { - oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter206 : struct.permissions.entrySet()) - { - oprot.writeString(_iter206.getKey()); - _iter206.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsTupleScheme getScheme() { - return new writeImagePermissions_argsTupleScheme(); + private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_argsTupleScheme getScheme() { + return new getImagePermissions_argsTupleScheme(); } } - private static class writeImagePermissions_argsTupleScheme extends TupleScheme { + private static class getImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -30406,32 +30324,19 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetPermissions()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } - if (struct.isSetPermissions()) { - { - oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter207 : struct.permissions.entrySet()) - { - oprot.writeString(_iter207.getKey()); - _iter207.getValue().write(oprot); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -30440,46 +30345,33 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } - if (incoming.get(2)) { - { - 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 _key210; - ImagePermissions _val211; - _key210 = iprot.readString(); - _val211 = new ImagePermissions(); - _val211.read(iprot); - struct.permissions.put(_key210, _val211); - } - } - struct.setPermissionsIsSet(true); - } } } } - public static class writeImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_result"); + public static class getImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); } + public Map success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); @@ -30497,6 +30389,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND @@ -30546,6 +30440,10 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -30553,18 +30451,20 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); } - public writeImagePermissions_result() { + public getImagePermissions_result() { } - public writeImagePermissions_result( + public getImagePermissions_result( + Map success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) { this(); + this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; @@ -30573,7 +30473,22 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public writeImagePermissions_result(writeImagePermissions_result other) { + public getImagePermissions_result(getImagePermissions_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success.size()); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + ImagePermissions other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + ImagePermissions __this__success_copy_value = new ImagePermissions(other_element_value); + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } + this.success = __this__success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -30585,22 +30500,58 @@ public class SatelliteServer { } } - public writeImagePermissions_result deepCopy() { - return new writeImagePermissions_result(this); + public getImagePermissions_result deepCopy() { + return new getImagePermissions_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.notFound = null; this.serverError = null; } + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public void putToSuccess(String key, ImagePermissions val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { + return this.success; + } + + public getImagePermissions_result setSuccess(Map success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public TAuthorizationException getAuthError() { return this.authError; } - public writeImagePermissions_result setAuthError(TAuthorizationException authError) { + public getImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -30624,7 +30575,7 @@ public class SatelliteServer { return this.notFound; } - public writeImagePermissions_result setNotFound(TNotFoundException notFound) { + public getImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -30648,7 +30599,7 @@ public class SatelliteServer { return this.serverError; } - public writeImagePermissions_result setServerError(TInvocationException serverError) { + public getImagePermissions_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -30670,6 +30621,14 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Map)value); + } + break; + case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -30699,6 +30658,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -30719,6 +30681,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -30733,15 +30697,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_result) - return this.equals((writeImagePermissions_result)that); + if (that instanceof getImagePermissions_result) + return this.equals((getImagePermissions_result)that); return false; } - public boolean equals(writeImagePermissions_result that) { + public boolean equals(getImagePermissions_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -30778,13 +30751,23 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_result other) { + public int compareTo(getImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -30832,9 +30815,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_result("); + StringBuilder sb = new StringBuilder("getImagePermissions_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -30883,15 +30874,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultStandardScheme getScheme() { - return new writeImagePermissions_resultStandardScheme(); + private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_resultStandardScheme getScheme() { + return new getImagePermissions_resultStandardScheme(); } } - private static class writeImagePermissions_resultStandardScheme extends StandardScheme { + private static class getImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30901,6 +30892,27 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map228 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map228.size); + for (int _i229 = 0; _i229 < _map228.size; ++_i229) + { + String _key230; + ImagePermissions _val231; + _key230 = iprot.readString(); + _val231 = new ImagePermissions(); + _val231.read(iprot); + struct.success.put(_key230, _val231); + } + iprot.readMapEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -30939,10 +30951,23 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Map.Entry _iter232 : struct.success.entrySet()) + { + oprot.writeString(_iter232.getKey()); + _iter232.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -30964,28 +30989,41 @@ public class SatelliteServer { } - private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultTupleScheme getScheme() { - return new writeImagePermissions_resultTupleScheme(); + private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_resultTupleScheme getScheme() { + return new getImagePermissions_resultTupleScheme(); } } - private static class writeImagePermissions_resultTupleScheme extends TupleScheme { + private static class getImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNotFound()) { + if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetServerError()) { + if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter233 : struct.success.entrySet()) + { + oprot.writeString(_iter233.getKey()); + _iter233.getValue().write(oprot); + } + } + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -30998,20 +31036,36 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { + { + org.apache.thrift.protocol.TMap _map234 = 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*_map234.size); + for (int _i235 = 0; _i235 < _map234.size; ++_i235) + { + String _key236; + ImagePermissions _val237; + _key236 = iprot.readString(); + _val237 = new ImagePermissions(); + _val237.read(iprot); + struct.success.put(_key236, _val237); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(3)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -31021,25 +31075,28 @@ public class SatelliteServer { } - public static class getImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_args"); + public static class setImageOwner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField NEW_OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOwnerId", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required + public String newOwnerId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + NEW_OWNER_ID((short)3, "newOwnerId"); private static final Map byName = new HashMap(); @@ -31058,6 +31115,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; + case 3: // NEW_OWNER_ID + return NEW_OWNER_ID; default: return null; } @@ -31105,49 +31164,57 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); } - public getImagePermissions_args() { + public setImageOwner_args() { } - public getImagePermissions_args( + public setImageOwner_args( String userToken, - String imageBaseId) + String imageBaseId, + String newOwnerId) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; + this.newOwnerId = newOwnerId; } /** * Performs a deep copy on other. */ - public getImagePermissions_args(getImagePermissions_args other) { + public setImageOwner_args(setImageOwner_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } + if (other.isSetNewOwnerId()) { + this.newOwnerId = other.newOwnerId; + } } - public getImagePermissions_args deepCopy() { - return new getImagePermissions_args(this); + public setImageOwner_args deepCopy() { + return new setImageOwner_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; + this.newOwnerId = null; } public String getUserToken() { return this.userToken; } - public getImagePermissions_args setUserToken(String userToken) { + public setImageOwner_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -31171,7 +31238,7 @@ public class SatelliteServer { return this.imageBaseId; } - public getImagePermissions_args setImageBaseId(String imageBaseId) { + public setImageOwner_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -31191,6 +31258,30 @@ public class SatelliteServer { } } + public String getNewOwnerId() { + return this.newOwnerId; + } + + public setImageOwner_args setNewOwnerId(String newOwnerId) { + this.newOwnerId = newOwnerId; + return this; + } + + public void unsetNewOwnerId() { + this.newOwnerId = null; + } + + /** Returns true if field newOwnerId is set (has been assigned a value) and false otherwise */ + public boolean isSetNewOwnerId() { + return this.newOwnerId != null; + } + + public void setNewOwnerIdIsSet(boolean value) { + if (!value) { + this.newOwnerId = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -31209,6 +31300,14 @@ public class SatelliteServer { } break; + case NEW_OWNER_ID: + if (value == null) { + unsetNewOwnerId(); + } else { + setNewOwnerId((String)value); + } + break; + } } @@ -31220,6 +31319,9 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); + case NEW_OWNER_ID: + return getNewOwnerId(); + } throw new IllegalStateException(); } @@ -31235,6 +31337,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); + case NEW_OWNER_ID: + return isSetNewOwnerId(); } throw new IllegalStateException(); } @@ -31243,12 +31347,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImagePermissions_args) - return this.equals((getImagePermissions_args)that); + if (that instanceof setImageOwner_args) + return this.equals((setImageOwner_args)that); return false; } - public boolean equals(getImagePermissions_args that) { + public boolean equals(setImageOwner_args that) { if (that == null) return false; @@ -31270,6 +31374,15 @@ public class SatelliteServer { return false; } + boolean this_present_newOwnerId = true && this.isSetNewOwnerId(); + boolean that_present_newOwnerId = true && that.isSetNewOwnerId(); + if (this_present_newOwnerId || that_present_newOwnerId) { + if (!(this_present_newOwnerId && that_present_newOwnerId)) + return false; + if (!this.newOwnerId.equals(that.newOwnerId)) + return false; + } + return true; } @@ -31279,7 +31392,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_args other) { + public int compareTo(setImageOwner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -31306,6 +31419,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNewOwnerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -31323,7 +31446,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_args("); + StringBuilder sb = new StringBuilder("setImageOwner_args("); boolean first = true; sb.append("userToken:"); @@ -31341,6 +31464,14 @@ public class SatelliteServer { sb.append(this.imageBaseId); } first = false; + if (!first) sb.append(", "); + sb.append("newOwnerId:"); + if (this.newOwnerId == null) { + sb.append("null"); + } else { + sb.append(this.newOwnerId); + } + first = false; sb.append(")"); return sb.toString(); } @@ -31366,15 +31497,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_argsStandardScheme getScheme() { - return new getImagePermissions_argsStandardScheme(); + private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { + public setImageOwner_argsStandardScheme getScheme() { + return new setImageOwner_argsStandardScheme(); } } - private static class getImagePermissions_argsStandardScheme extends StandardScheme { + private static class setImageOwner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -31400,6 +31531,14 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // NEW_OWNER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -31411,7 +31550,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -31425,22 +31564,27 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } + if (struct.newOwnerId != null) { + oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); + oprot.writeString(struct.newOwnerId); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_argsTupleScheme getScheme() { - return new getImagePermissions_argsTupleScheme(); + private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { + public setImageOwner_argsTupleScheme getScheme() { + return new setImageOwner_argsTupleScheme(); } } - private static class getImagePermissions_argsTupleScheme extends TupleScheme { + private static class setImageOwner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -31449,19 +31593,25 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetNewOwnerId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } + if (struct.isSetNewOwnerId()) { + oprot.writeString(struct.newOwnerId); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -31470,33 +31620,34 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } + if (incoming.get(2)) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); + } } } } - public static class getImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_result"); + public static class setImageOwner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); } - public Map success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); @@ -31514,8 +31665,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND @@ -31565,10 +31714,6 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -31576,20 +31721,18 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); } - public getImagePermissions_result() { + public setImageOwner_result() { } - public getImagePermissions_result( - Map success, + public setImageOwner_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) { this(); - this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; @@ -31598,22 +31741,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getImagePermissions_result(getImagePermissions_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); - for (Map.Entry other_element : other.success.entrySet()) { - - String other_element_key = other_element.getKey(); - ImagePermissions other_element_value = other_element.getValue(); - - String __this__success_copy_key = other_element_key; - - ImagePermissions __this__success_copy_value = new ImagePermissions(other_element_value); - - __this__success.put(__this__success_copy_key, __this__success_copy_value); - } - this.success = __this__success; - } + public setImageOwner_result(setImageOwner_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -31625,58 +31753,22 @@ public class SatelliteServer { } } - public getImagePermissions_result deepCopy() { - return new getImagePermissions_result(this); + public setImageOwner_result deepCopy() { + return new setImageOwner_result(this); } @Override public void clear() { - this.success = null; this.authError = null; this.notFound = null; this.serverError = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, ImagePermissions val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); - } - - public Map getSuccess() { - return this.success; - } - - public getImagePermissions_result setSuccess(Map success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - public TAuthorizationException getAuthError() { return this.authError; } - public getImagePermissions_result setAuthError(TAuthorizationException authError) { + public setImageOwner_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -31700,7 +31792,7 @@ public class SatelliteServer { return this.notFound; } - public getImagePermissions_result setNotFound(TNotFoundException notFound) { + public setImageOwner_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -31724,7 +31816,7 @@ public class SatelliteServer { return this.serverError; } - public getImagePermissions_result setServerError(TInvocationException serverError) { + public setImageOwner_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -31746,14 +31838,6 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Map)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -31783,9 +31867,6 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); @@ -31806,8 +31887,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -31822,24 +31901,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImagePermissions_result) - return this.equals((getImagePermissions_result)that); + if (that instanceof setImageOwner_result) + return this.equals((setImageOwner_result)that); return false; } - public boolean equals(getImagePermissions_result that) { + public boolean equals(setImageOwner_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -31876,23 +31946,13 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_result other) { + public int compareTo(setImageOwner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - 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; @@ -31940,17 +32000,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_result("); + StringBuilder sb = new StringBuilder("setImageOwner_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"); @@ -31999,15 +32051,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_resultStandardScheme getScheme() { - return new getImagePermissions_resultStandardScheme(); + private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { + public setImageOwner_resultStandardScheme getScheme() { + return new setImageOwner_resultStandardScheme(); } } - private static class getImagePermissions_resultStandardScheme extends StandardScheme { + private static class setImageOwner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -32017,27 +32069,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map212 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map212.size); - for (int _i213 = 0; _i213 < _map212.size; ++_i213) - { - String _key214; - ImagePermissions _val215; - _key214 = iprot.readString(); - _val215 = new ImagePermissions(); - _val215.read(iprot); - struct.success.put(_key214, _val215); - } - iprot.readMapEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -32076,23 +32107,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter216 : struct.success.entrySet()) - { - oprot.writeString(_iter216.getKey()); - _iter216.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -32114,41 +32132,28 @@ public class SatelliteServer { } - private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_resultTupleScheme getScheme() { - return new getImagePermissions_resultTupleScheme(); + private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { + public setImageOwner_resultTupleScheme getScheme() { + return new setImageOwner_resultTupleScheme(); } } - private static class getImagePermissions_resultTupleScheme extends TupleScheme { + private static class setImageOwner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetAuthError()) { - optionals.set(1); + optionals.set(0); } if (struct.isSetNotFound()) { - optionals.set(2); + optionals.set(1); } if (struct.isSetServerError()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter217 : struct.success.entrySet()) - { - oprot.writeString(_iter217.getKey()); - _iter217.getValue().write(oprot); - } - } + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -32161,36 +32166,20 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _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 _key220; - ImagePermissions _val221; - _key220 = iprot.readString(); - _val221 = new ImagePermissions(); - _val221.read(iprot); - struct.success.put(_key220, _val221); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } - if (incoming.get(3)) { + if (incoming.get(2)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -32200,28 +32189,28 @@ public class SatelliteServer { } - public static class setImageOwner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_args"); + public static class setImageVersionExpiry_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("setImageVersionExpiry_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField NEW_OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOwnerId", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField EXPIRE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("expireTime", org.apache.thrift.protocol.TType.I64, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageOwner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageVersionExpiry_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionExpiry_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required - public String newOwnerId; // required + public long expireTime; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), IMAGE_BASE_ID((short)2, "imageBaseId"), - NEW_OWNER_ID((short)3, "newOwnerId"); + EXPIRE_TIME((short)3, "expireTime"); private static final Map byName = new HashMap(); @@ -32240,8 +32229,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; - case 3: // NEW_OWNER_ID - return NEW_OWNER_ID; + case 3: // EXPIRE_TIME + return EXPIRE_TIME; default: return null; } @@ -32282,6 +32271,8 @@ public class SatelliteServer { } // isset id assignments + private static final int __EXPIRETIME_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); @@ -32289,57 +32280,58 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.EXPIRE_TIME, new org.apache.thrift.meta_data.FieldMetaData("expireTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_args.class, metaDataMap); } - public setImageOwner_args() { + public setImageVersionExpiry_args() { } - public setImageOwner_args( + public setImageVersionExpiry_args( String userToken, String imageBaseId, - String newOwnerId) + long expireTime) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; - this.newOwnerId = newOwnerId; + this.expireTime = expireTime; + setExpireTimeIsSet(true); } /** * Performs a deep copy on other. */ - public setImageOwner_args(setImageOwner_args other) { + public setImageVersionExpiry_args(setImageVersionExpiry_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } - if (other.isSetNewOwnerId()) { - this.newOwnerId = other.newOwnerId; - } + this.expireTime = other.expireTime; } - public setImageOwner_args deepCopy() { - return new setImageOwner_args(this); + public setImageVersionExpiry_args deepCopy() { + return new setImageVersionExpiry_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; - this.newOwnerId = null; + setExpireTimeIsSet(false); + this.expireTime = 0; } public String getUserToken() { return this.userToken; } - public setImageOwner_args setUserToken(String userToken) { + public setImageVersionExpiry_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -32363,7 +32355,7 @@ public class SatelliteServer { return this.imageBaseId; } - public setImageOwner_args setImageBaseId(String imageBaseId) { + public setImageVersionExpiry_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -32383,28 +32375,27 @@ public class SatelliteServer { } } - public String getNewOwnerId() { - return this.newOwnerId; + public long getExpireTime() { + return this.expireTime; } - public setImageOwner_args setNewOwnerId(String newOwnerId) { - this.newOwnerId = newOwnerId; + public setImageVersionExpiry_args setExpireTime(long expireTime) { + this.expireTime = expireTime; + setExpireTimeIsSet(true); return this; } - public void unsetNewOwnerId() { - this.newOwnerId = null; + public void unsetExpireTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); } - /** Returns true if field newOwnerId is set (has been assigned a value) and false otherwise */ - public boolean isSetNewOwnerId() { - return this.newOwnerId != null; + /** Returns true if field expireTime is set (has been assigned a value) and false otherwise */ + public boolean isSetExpireTime() { + return EncodingUtils.testBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); } - public void setNewOwnerIdIsSet(boolean value) { - if (!value) { - this.newOwnerId = null; - } + public void setExpireTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -32425,11 +32416,11 @@ public class SatelliteServer { } break; - case NEW_OWNER_ID: + case EXPIRE_TIME: if (value == null) { - unsetNewOwnerId(); + unsetExpireTime(); } else { - setNewOwnerId((String)value); + setExpireTime((Long)value); } break; @@ -32444,8 +32435,8 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); - case NEW_OWNER_ID: - return getNewOwnerId(); + case EXPIRE_TIME: + return Long.valueOf(getExpireTime()); } throw new IllegalStateException(); @@ -32462,8 +32453,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); - case NEW_OWNER_ID: - return isSetNewOwnerId(); + case EXPIRE_TIME: + return isSetExpireTime(); } throw new IllegalStateException(); } @@ -32472,12 +32463,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageOwner_args) - return this.equals((setImageOwner_args)that); + if (that instanceof setImageVersionExpiry_args) + return this.equals((setImageVersionExpiry_args)that); return false; } - public boolean equals(setImageOwner_args that) { + public boolean equals(setImageVersionExpiry_args that) { if (that == null) return false; @@ -32499,12 +32490,12 @@ public class SatelliteServer { return false; } - boolean this_present_newOwnerId = true && this.isSetNewOwnerId(); - boolean that_present_newOwnerId = true && that.isSetNewOwnerId(); - if (this_present_newOwnerId || that_present_newOwnerId) { - if (!(this_present_newOwnerId && that_present_newOwnerId)) + boolean this_present_expireTime = true; + boolean that_present_expireTime = true; + if (this_present_expireTime || that_present_expireTime) { + if (!(this_present_expireTime && that_present_expireTime)) return false; - if (!this.newOwnerId.equals(that.newOwnerId)) + if (this.expireTime != that.expireTime) return false; } @@ -32517,7 +32508,7 @@ public class SatelliteServer { } @Override - public int compareTo(setImageOwner_args other) { + public int compareTo(setImageVersionExpiry_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -32544,12 +32535,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime()); if (lastComparison != 0) { return lastComparison; } - if (isSetNewOwnerId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); + if (isSetExpireTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expireTime, other.expireTime); if (lastComparison != 0) { return lastComparison; } @@ -32571,7 +32562,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_args("); + StringBuilder sb = new StringBuilder("setImageVersionExpiry_args("); boolean first = true; sb.append("userToken:"); @@ -32590,12 +32581,8 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("newOwnerId:"); - if (this.newOwnerId == null) { - sb.append("null"); - } else { - sb.append(this.newOwnerId); - } + sb.append("expireTime:"); + sb.append(this.expireTime); first = false; sb.append(")"); return sb.toString(); @@ -32616,21 +32603,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 setImageOwner_argsStandardSchemeFactory implements SchemeFactory { - public setImageOwner_argsStandardScheme getScheme() { - return new setImageOwner_argsStandardScheme(); + private static class setImageVersionExpiry_argsStandardSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_argsStandardScheme getScheme() { + return new setImageVersionExpiry_argsStandardScheme(); } } - private static class setImageOwner_argsStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -32656,10 +32645,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // NEW_OWNER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.newOwnerId = iprot.readString(); - struct.setNewOwnerIdIsSet(true); + case 3: // EXPIRE_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.expireTime = iprot.readI64(); + struct.setExpireTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -32675,7 +32664,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -32689,27 +32678,25 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - if (struct.newOwnerId != null) { - oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); - oprot.writeString(struct.newOwnerId); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(EXPIRE_TIME_FIELD_DESC); + oprot.writeI64(struct.expireTime); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { - public setImageOwner_argsTupleScheme getScheme() { - return new setImageOwner_argsTupleScheme(); + private static class setImageVersionExpiry_argsTupleSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_argsTupleScheme getScheme() { + return new setImageVersionExpiry_argsTupleScheme(); } } - private static class setImageOwner_argsTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -32718,7 +32705,7 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetNewOwnerId()) { + if (struct.isSetExpireTime()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -32728,13 +32715,13 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } - if (struct.isSetNewOwnerId()) { - oprot.writeString(struct.newOwnerId); + if (struct.isSetExpireTime()) { + oprot.writeI64(struct.expireTime); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -32746,36 +32733,39 @@ public class SatelliteServer { struct.setImageBaseIdIsSet(true); } if (incoming.get(2)) { - struct.newOwnerId = iprot.readString(); - struct.setNewOwnerIdIsSet(true); + struct.expireTime = iprot.readI64(); + struct.setExpireTimeIsSet(true); } } } } - public static class setImageOwner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_result"); + public static class setImageVersionExpiry_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("setImageVersionExpiry_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField DATE_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("dateError", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageOwner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageVersionExpiry_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionExpiry_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required + public TInvalidDateParam dateError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), - SERVER_ERROR((short)3, "serverError"); + SERVER_ERROR((short)3, "serverError"), + DATE_ERROR((short)4, "dateError"); private static final Map byName = new HashMap(); @@ -32796,6 +32786,8 @@ public class SatelliteServer { return NOT_FOUND; case 3: // SERVER_ERROR return SERVER_ERROR; + case 4: // DATE_ERROR + return DATE_ERROR; default: return null; } @@ -32845,28 +32837,32 @@ public class SatelliteServer { 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))); + tmpMap.put(_Fields.DATE_ERROR, new org.apache.thrift.meta_data.FieldMetaData("dateError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_result.class, metaDataMap); } - public setImageOwner_result() { + public setImageVersionExpiry_result() { } - public setImageOwner_result( + public setImageVersionExpiry_result( TAuthorizationException authError, TNotFoundException notFound, - TInvocationException serverError) + TInvocationException serverError, + TInvalidDateParam dateError) { this(); this.authError = authError; this.notFound = notFound; this.serverError = serverError; + this.dateError = dateError; } /** * Performs a deep copy on other. */ - public setImageOwner_result(setImageOwner_result other) { + public setImageVersionExpiry_result(setImageVersionExpiry_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -32876,10 +32872,13 @@ public class SatelliteServer { if (other.isSetServerError()) { this.serverError = new TInvocationException(other.serverError); } + if (other.isSetDateError()) { + this.dateError = new TInvalidDateParam(other.dateError); + } } - public setImageOwner_result deepCopy() { - return new setImageOwner_result(this); + public setImageVersionExpiry_result deepCopy() { + return new setImageVersionExpiry_result(this); } @Override @@ -32887,13 +32886,14 @@ public class SatelliteServer { this.authError = null; this.notFound = null; this.serverError = null; + this.dateError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public setImageOwner_result setAuthError(TAuthorizationException authError) { + public setImageVersionExpiry_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -32917,7 +32917,7 @@ public class SatelliteServer { return this.notFound; } - public setImageOwner_result setNotFound(TNotFoundException notFound) { + public setImageVersionExpiry_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -32941,7 +32941,7 @@ public class SatelliteServer { return this.serverError; } - public setImageOwner_result setServerError(TInvocationException serverError) { + public setImageVersionExpiry_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -32961,6 +32961,30 @@ public class SatelliteServer { } } + public TInvalidDateParam getDateError() { + return this.dateError; + } + + public setImageVersionExpiry_result setDateError(TInvalidDateParam dateError) { + this.dateError = dateError; + return this; + } + + public void unsetDateError() { + this.dateError = null; + } + + /** Returns true if field dateError is set (has been assigned a value) and false otherwise */ + public boolean isSetDateError() { + return this.dateError != null; + } + + public void setDateErrorIsSet(boolean value) { + if (!value) { + this.dateError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case AUTH_ERROR: @@ -32987,6 +33011,14 @@ public class SatelliteServer { } break; + case DATE_ERROR: + if (value == null) { + unsetDateError(); + } else { + setDateError((TInvalidDateParam)value); + } + break; + } } @@ -33001,6 +33033,9 @@ public class SatelliteServer { case SERVER_ERROR: return getServerError(); + case DATE_ERROR: + return getDateError(); + } throw new IllegalStateException(); } @@ -33018,6 +33053,8 @@ public class SatelliteServer { return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); + case DATE_ERROR: + return isSetDateError(); } throw new IllegalStateException(); } @@ -33026,12 +33063,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageOwner_result) - return this.equals((setImageOwner_result)that); + if (that instanceof setImageVersionExpiry_result) + return this.equals((setImageVersionExpiry_result)that); return false; } - public boolean equals(setImageOwner_result that) { + public boolean equals(setImageVersionExpiry_result that) { if (that == null) return false; @@ -33062,6 +33099,15 @@ public class SatelliteServer { return false; } + boolean this_present_dateError = true && this.isSetDateError(); + boolean that_present_dateError = true && that.isSetDateError(); + if (this_present_dateError || that_present_dateError) { + if (!(this_present_dateError && that_present_dateError)) + return false; + if (!this.dateError.equals(that.dateError)) + return false; + } + return true; } @@ -33071,7 +33117,7 @@ public class SatelliteServer { } @Override - public int compareTo(setImageOwner_result other) { + public int compareTo(setImageVersionExpiry_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -33108,6 +33154,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetDateError()).compareTo(other.isSetDateError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDateError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateError, other.dateError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -33125,7 +33181,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_result("); + StringBuilder sb = new StringBuilder("setImageVersionExpiry_result("); boolean first = true; sb.append("authError:"); @@ -33151,6 +33207,14 @@ public class SatelliteServer { sb.append(this.serverError); } first = false; + if (!first) sb.append(", "); + sb.append("dateError:"); + if (this.dateError == null) { + sb.append("null"); + } else { + sb.append(this.dateError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -33176,15 +33240,15 @@ public class SatelliteServer { } } - private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { - public setImageOwner_resultStandardScheme getScheme() { - return new setImageOwner_resultStandardScheme(); + private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_resultStandardScheme getScheme() { + return new setImageVersionExpiry_resultStandardScheme(); } } - private static class setImageOwner_resultStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33221,6 +33285,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // DATE_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.dateError = new TInvalidDateParam(); + struct.dateError.read(iprot); + struct.setDateErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -33232,7 +33305,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33251,22 +33324,27 @@ public class SatelliteServer { struct.serverError.write(oprot); oprot.writeFieldEnd(); } + if (struct.dateError != null) { + oprot.writeFieldBegin(DATE_ERROR_FIELD_DESC); + struct.dateError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { - public setImageOwner_resultTupleScheme getScheme() { - return new setImageOwner_resultTupleScheme(); + private static class setImageVersionExpiry_resultTupleSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_resultTupleScheme getScheme() { + return new setImageVersionExpiry_resultTupleScheme(); } } - private static class setImageOwner_resultTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -33278,7 +33356,10 @@ public class SatelliteServer { if (struct.isSetServerError()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetDateError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -33288,12 +33369,15 @@ public class SatelliteServer { if (struct.isSetServerError()) { struct.serverError.write(oprot); } + if (struct.isSetDateError()) { + struct.dateError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -33309,33 +33393,35 @@ public class SatelliteServer { struct.serverError.read(iprot); struct.setServerErrorIsSet(true); } + if (incoming.get(3)) { + struct.dateError = new TInvalidDateParam(); + struct.dateError.read(iprot); + struct.setDateErrorIsSet(true); + } } } } - public static class setImageVersionExpiry_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("setImageVersionExpiry_args"); + public static class requestImageReplication_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("requestImageReplication_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 EXPIRE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("expireTime", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageVersionExpiry_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageVersionExpiry_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestImageReplication_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestImageReplication_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public long expireTime; // required + public String imageVersionId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"), - EXPIRE_TIME((short)3, "expireTime"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -33352,10 +33438,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; - case 3: // EXPIRE_TIME - return EXPIRE_TIME; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -33396,67 +33480,56 @@ public class SatelliteServer { } // isset id assignments - private static final int __EXPIRETIME_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.EXPIRE_TIME, new org.apache.thrift.meta_data.FieldMetaData("expireTime", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageReplication_args.class, metaDataMap); } - public setImageVersionExpiry_args() { + public requestImageReplication_args() { } - public setImageVersionExpiry_args( + public requestImageReplication_args( String userToken, - String imageBaseId, - long expireTime) + String imageVersionId) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.expireTime = expireTime; - setExpireTimeIsSet(true); + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public setImageVersionExpiry_args(setImageVersionExpiry_args other) { - __isset_bitfield = other.__isset_bitfield; + public requestImageReplication_args(requestImageReplication_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } - this.expireTime = other.expireTime; } - public setImageVersionExpiry_args deepCopy() { - return new setImageVersionExpiry_args(this); + public requestImageReplication_args deepCopy() { + return new requestImageReplication_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; - setExpireTimeIsSet(false); - this.expireTime = 0; + this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public setImageVersionExpiry_args setUserToken(String userToken) { + public requestImageReplication_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -33476,53 +33549,30 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public String getImageVersionId() { + return this.imageVersionId; } - public setImageVersionExpiry_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public requestImageReplication_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 long getExpireTime() { - return this.expireTime; - } - - public setImageVersionExpiry_args setExpireTime(long expireTime) { - this.expireTime = expireTime; - setExpireTimeIsSet(true); - return this; - } - - public void unsetExpireTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); - } - - /** Returns true if field expireTime is set (has been assigned a value) and false otherwise */ - public boolean isSetExpireTime() { - return EncodingUtils.testBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); - } - - public void setExpireTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -33533,19 +33583,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: - if (value == null) { - unsetImageBaseId(); - } else { - setImageBaseId((String)value); - } - break; - - case EXPIRE_TIME: + case IMAGE_VERSION_ID: if (value == null) { - unsetExpireTime(); + unsetImageVersionId(); } else { - setExpireTime((Long)value); + setImageVersionId((String)value); } break; @@ -33557,11 +33599,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); - - case EXPIRE_TIME: - return Long.valueOf(getExpireTime()); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -33576,10 +33615,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); - case EXPIRE_TIME: - return isSetExpireTime(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -33588,12 +33625,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageVersionExpiry_args) - return this.equals((setImageVersionExpiry_args)that); + if (that instanceof requestImageReplication_args) + return this.equals((requestImageReplication_args)that); return false; } - public boolean equals(setImageVersionExpiry_args that) { + public boolean equals(requestImageReplication_args that) { if (that == null) return false; @@ -33606,21 +33643,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) - return false; - if (!this.imageBaseId.equals(that.imageBaseId)) - return false; - } - - boolean this_present_expireTime = true; - boolean that_present_expireTime = true; - if (this_present_expireTime || that_present_expireTime) { - if (!(this_present_expireTime && that_present_expireTime)) + 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.expireTime != that.expireTime) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -33633,7 +33661,7 @@ public class SatelliteServer { } @Override - public int compareTo(setImageVersionExpiry_args other) { + public int compareTo(requestImageReplication_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -33650,22 +33678,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetExpireTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expireTime, other.expireTime); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -33687,7 +33705,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_args("); + StringBuilder sb = new StringBuilder("requestImageReplication_args("); boolean first = true; sb.append("userToken:"); @@ -33698,17 +33716,13 @@ 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(", "); - sb.append("expireTime:"); - sb.append(this.expireTime); - first = false; sb.append(")"); return sb.toString(); } @@ -33728,23 +33742,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 setImageVersionExpiry_argsStandardSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_argsStandardScheme getScheme() { - return new setImageVersionExpiry_argsStandardScheme(); + private static class requestImageReplication_argsStandardSchemeFactory implements SchemeFactory { + public requestImageReplication_argsStandardScheme getScheme() { + return new requestImageReplication_argsStandardScheme(); } } - private static class setImageVersionExpiry_argsStandardScheme extends StandardScheme { + private static class requestImageReplication_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33762,18 +33774,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID + case 2: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // EXPIRE_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.expireTime = iprot.readI64(); - struct.setExpireTimeIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -33789,7 +33793,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageReplication_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33798,99 +33802,86 @@ 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(); } - oprot.writeFieldBegin(EXPIRE_TIME_FIELD_DESC); - oprot.writeI64(struct.expireTime); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageVersionExpiry_argsTupleSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_argsTupleScheme getScheme() { - return new setImageVersionExpiry_argsTupleScheme(); + private static class requestImageReplication_argsTupleSchemeFactory implements SchemeFactory { + public requestImageReplication_argsTupleScheme getScheme() { + return new requestImageReplication_argsTupleScheme(); } } - private static class setImageVersionExpiry_argsTupleScheme extends TupleScheme { + private static class requestImageReplication_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_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.isSetExpireTime()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); - } - if (struct.isSetExpireTime()) { - oprot.writeI64(struct.expireTime); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } - if (incoming.get(2)) { - struct.expireTime = iprot.readI64(); - struct.setExpireTimeIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } } } } - public static class setImageVersionExpiry_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("setImageVersionExpiry_result"); + public static class requestImageReplication_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("requestImageReplication_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField DATE_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("dateError", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageVersionExpiry_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageVersionExpiry_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestImageReplication_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestImageReplication_resultTupleSchemeFactory()); } + public String success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required - public TInvalidDateParam dateError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), - SERVER_ERROR((short)3, "serverError"), - DATE_ERROR((short)4, "dateError"); + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -33905,14 +33896,14 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; case 3: // SERVER_ERROR return SERVER_ERROR; - case 4: // DATE_ERROR - return DATE_ERROR; default: return null; } @@ -33956,38 +33947,41 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.DATE_ERROR, new org.apache.thrift.meta_data.FieldMetaData("dateError", 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(setImageVersionExpiry_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageReplication_result.class, metaDataMap); } - public setImageVersionExpiry_result() { + public requestImageReplication_result() { } - public setImageVersionExpiry_result( + public requestImageReplication_result( + String success, TAuthorizationException authError, TNotFoundException notFound, - TInvocationException serverError, - TInvalidDateParam dateError) + TInvocationException serverError) { this(); + this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; - this.dateError = dateError; } /** * Performs a deep copy on other. */ - public setImageVersionExpiry_result(setImageVersionExpiry_result other) { + public requestImageReplication_result(requestImageReplication_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -33997,28 +33991,49 @@ public class SatelliteServer { if (other.isSetServerError()) { this.serverError = new TInvocationException(other.serverError); } - if (other.isSetDateError()) { - this.dateError = new TInvalidDateParam(other.dateError); - } } - public setImageVersionExpiry_result deepCopy() { - return new setImageVersionExpiry_result(this); + public requestImageReplication_result deepCopy() { + return new requestImageReplication_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.notFound = null; this.serverError = null; - this.dateError = null; + } + + public String getSuccess() { + return this.success; + } + + public requestImageReplication_result setSuccess(String 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 setImageVersionExpiry_result setAuthError(TAuthorizationException authError) { + public requestImageReplication_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -34042,7 +34057,7 @@ public class SatelliteServer { return this.notFound; } - public setImageVersionExpiry_result setNotFound(TNotFoundException notFound) { + public requestImageReplication_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -34066,7 +34081,7 @@ public class SatelliteServer { return this.serverError; } - public setImageVersionExpiry_result setServerError(TInvocationException serverError) { + public requestImageReplication_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -34086,32 +34101,16 @@ public class SatelliteServer { } } - public TInvalidDateParam getDateError() { - return this.dateError; - } - - public setImageVersionExpiry_result setDateError(TInvalidDateParam dateError) { - this.dateError = dateError; - return this; - } - - public void unsetDateError() { - this.dateError = null; - } - - /** Returns true if field dateError is set (has been assigned a value) and false otherwise */ - public boolean isSetDateError() { - return this.dateError != null; - } - - public void setDateErrorIsSet(boolean value) { - if (!value) { - this.dateError = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((String)value); + } + break; + case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -34136,19 +34135,14 @@ public class SatelliteServer { } break; - case DATE_ERROR: - if (value == null) { - unsetDateError(); - } else { - setDateError((TInvalidDateParam)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -34158,9 +34152,6 @@ public class SatelliteServer { case SERVER_ERROR: return getServerError(); - case DATE_ERROR: - return getDateError(); - } throw new IllegalStateException(); } @@ -34172,14 +34163,14 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); - case DATE_ERROR: - return isSetDateError(); } throw new IllegalStateException(); } @@ -34188,15 +34179,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageVersionExpiry_result) - return this.equals((setImageVersionExpiry_result)that); + if (that instanceof requestImageReplication_result) + return this.equals((requestImageReplication_result)that); return false; } - public boolean equals(setImageVersionExpiry_result that) { + public boolean equals(requestImageReplication_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) { @@ -34224,15 +34224,6 @@ public class SatelliteServer { return false; } - boolean this_present_dateError = true && this.isSetDateError(); - boolean that_present_dateError = true && that.isSetDateError(); - if (this_present_dateError || that_present_dateError) { - if (!(this_present_dateError && that_present_dateError)) - return false; - if (!this.dateError.equals(that.dateError)) - return false; - } - return true; } @@ -34242,13 +34233,23 @@ public class SatelliteServer { } @Override - public int compareTo(setImageVersionExpiry_result other) { + public int compareTo(requestImageReplication_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; @@ -34279,16 +34280,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDateError()).compareTo(other.isSetDateError()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDateError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateError, other.dateError); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -34306,9 +34297,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_result("); + StringBuilder sb = new StringBuilder("requestImageReplication_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"); @@ -34332,14 +34331,6 @@ public class SatelliteServer { sb.append(this.serverError); } first = false; - if (!first) sb.append(", "); - sb.append("dateError:"); - if (this.dateError == null) { - sb.append("null"); - } else { - sb.append(this.dateError); - } - first = false; sb.append(")"); return sb.toString(); } @@ -34365,15 +34356,15 @@ public class SatelliteServer { } } - private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_resultStandardScheme getScheme() { - return new setImageVersionExpiry_resultStandardScheme(); + private static class requestImageReplication_resultStandardSchemeFactory implements SchemeFactory { + public requestImageReplication_resultStandardScheme getScheme() { + return new requestImageReplication_resultStandardScheme(); } } - private static class setImageVersionExpiry_resultStandardScheme extends StandardScheme { + private static class requestImageReplication_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34383,6 +34374,14 @@ 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(); @@ -34410,15 +34409,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DATE_ERROR - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.dateError = new TInvalidDateParam(); - struct.dateError.read(iprot); - struct.setDateErrorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -34430,10 +34420,15 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageReplication_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); @@ -34449,42 +34444,40 @@ public class SatelliteServer { struct.serverError.write(oprot); oprot.writeFieldEnd(); } - if (struct.dateError != null) { - oprot.writeFieldBegin(DATE_ERROR_FIELD_DESC); - struct.dateError.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageVersionExpiry_resultTupleSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_resultTupleScheme getScheme() { - return new setImageVersionExpiry_resultTupleScheme(); + private static class requestImageReplication_resultTupleSchemeFactory implements SchemeFactory { + public requestImageReplication_resultTupleScheme getScheme() { + return new requestImageReplication_resultTupleScheme(); } } - private static class setImageVersionExpiry_resultTupleScheme extends TupleScheme { + private static class requestImageReplication_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNotFound()) { + if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetServerError()) { + if (struct.isSetNotFound()) { optionals.set(2); } - if (struct.isSetDateError()) { + if (struct.isSetServerError()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + oprot.writeString(struct.success); + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -34494,35 +34487,31 @@ public class SatelliteServer { if (struct.isSetServerError()) { struct.serverError.write(oprot); } - if (struct.isSetDateError()) { - struct.dateError.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_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)) { + if (incoming.get(2)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(3)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); } - if (incoming.get(3)) { - struct.dateError = new TInvalidDateParam(); - struct.dateError.read(iprot); - struct.setDateErrorIsSet(true); - } } } @@ -37783,14 +37772,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); - struct.success = new ArrayList(_list222.size); - for (int _i223 = 0; _i223 < _list222.size; ++_i223) + org.apache.thrift.protocol.TList _list238 = iprot.readListBegin(); + struct.success = new ArrayList(_list238.size); + for (int _i239 = 0; _i239 < _list238.size; ++_i239) { - LectureSummary _elem224; - _elem224 = new LectureSummary(); - _elem224.read(iprot); - struct.success.add(_elem224); + LectureSummary _elem240; + _elem240 = new LectureSummary(); + _elem240.read(iprot); + struct.success.add(_elem240); } iprot.readListEnd(); } @@ -37836,9 +37825,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 _iter225 : struct.success) + for (LectureSummary _iter241 : struct.success) { - _iter225.write(oprot); + _iter241.write(oprot); } oprot.writeListEnd(); } @@ -37885,9 +37874,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (LectureSummary _iter226 : struct.success) + for (LectureSummary _iter242 : struct.success) { - _iter226.write(oprot); + _iter242.write(oprot); } } } @@ -37905,14 +37894,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - 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) + org.apache.thrift.protocol.TList _list243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list243.size); + for (int _i244 = 0; _i244 < _list243.size; ++_i244) { - LectureSummary _elem229; - _elem229 = new LectureSummary(); - _elem229.read(iprot); - struct.success.add(_elem229); + LectureSummary _elem245; + _elem245 = new LectureSummary(); + _elem245.read(iprot); + struct.success.add(_elem245); } } struct.setSuccessIsSet(true); @@ -40549,16 +40538,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map230 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map230.size); - for (int _i231 = 0; _i231 < _map230.size; ++_i231) + org.apache.thrift.protocol.TMap _map246 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map246.size); + for (int _i247 = 0; _i247 < _map246.size; ++_i247) { - String _key232; - LecturePermissions _val233; - _key232 = iprot.readString(); - _val233 = new LecturePermissions(); - _val233.read(iprot); - struct.permissions.put(_key232, _val233); + String _key248; + LecturePermissions _val249; + _key248 = iprot.readString(); + _val249 = new LecturePermissions(); + _val249.read(iprot); + struct.permissions.put(_key248, _val249); } iprot.readMapEnd(); } @@ -40596,10 +40585,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 _iter234 : struct.permissions.entrySet()) + for (Map.Entry _iter250 : struct.permissions.entrySet()) { - oprot.writeString(_iter234.getKey()); - _iter234.getValue().write(oprot); + oprot.writeString(_iter250.getKey()); + _iter250.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -40642,10 +40631,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter235 : struct.permissions.entrySet()) + for (Map.Entry _iter251 : struct.permissions.entrySet()) { - oprot.writeString(_iter235.getKey()); - _iter235.getValue().write(oprot); + oprot.writeString(_iter251.getKey()); + _iter251.getValue().write(oprot); } } } @@ -40665,16 +40654,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - 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) + org.apache.thrift.protocol.TMap _map252 = 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*_map252.size); + for (int _i253 = 0; _i253 < _map252.size; ++_i253) { - String _key238; - LecturePermissions _val239; - _key238 = iprot.readString(); - _val239 = new LecturePermissions(); - _val239.read(iprot); - struct.permissions.put(_key238, _val239); + String _key254; + LecturePermissions _val255; + _key254 = iprot.readString(); + _val255 = new LecturePermissions(); + _val255.read(iprot); + struct.permissions.put(_key254, _val255); } } struct.setPermissionsIsSet(true); @@ -42243,16 +42232,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map240 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map240.size); - for (int _i241 = 0; _i241 < _map240.size; ++_i241) + org.apache.thrift.protocol.TMap _map256 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map256.size); + for (int _i257 = 0; _i257 < _map256.size; ++_i257) { - String _key242; - LecturePermissions _val243; - _key242 = iprot.readString(); - _val243 = new LecturePermissions(); - _val243.read(iprot); - struct.success.put(_key242, _val243); + String _key258; + LecturePermissions _val259; + _key258 = iprot.readString(); + _val259 = new LecturePermissions(); + _val259.read(iprot); + struct.success.put(_key258, _val259); } iprot.readMapEnd(); } @@ -42307,10 +42296,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 _iter244 : struct.success.entrySet()) + for (Map.Entry _iter260 : struct.success.entrySet()) { - oprot.writeString(_iter244.getKey()); - _iter244.getValue().write(oprot); + oprot.writeString(_iter260.getKey()); + _iter260.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -42365,10 +42354,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter245 : struct.success.entrySet()) + for (Map.Entry _iter261 : struct.success.entrySet()) { - oprot.writeString(_iter245.getKey()); - _iter245.getValue().write(oprot); + oprot.writeString(_iter261.getKey()); + _iter261.getValue().write(oprot); } } } @@ -42389,16 +42378,16 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - 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) + org.apache.thrift.protocol.TMap _map262 = 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*_map262.size); + for (int _i263 = 0; _i263 < _map262.size; ++_i263) { - String _key248; - LecturePermissions _val249; - _key248 = iprot.readString(); - _val249 = new LecturePermissions(); - _val249.read(iprot); - struct.success.put(_key248, _val249); + String _key264; + LecturePermissions _val265; + _key264 = iprot.readString(); + _val265 = new LecturePermissions(); + _val265.read(iprot); + struct.success.put(_key264, _val265); } } struct.setSuccessIsSet(true); -- cgit v1.2.3-55-g7522