From ce366d169ddfb316c08953188bbd01ae50ac99c8 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 31 Aug 2016 16:42:38 +0200 Subject: new API calls for VMX edit stuff --- .../openslx/bwlp/thrift/iface/SatelliteServer.java | 6307 ++++++++++++++------ .../java/org/openslx/util/vm/VmwareConfig.java | 29 +- src/main/thrift/bwlp.thrift | 8 + 3 files changed, 4565 insertions(+), 1779 deletions(-) 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 88cda96..98559f7 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-04-18") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-08-31") public class SatelliteServer { public interface Iface { @@ -99,6 +99,10 @@ public class SatelliteServer { public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; + public ByteBuffer getImageVersionVirtConfig(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + + public ByteBuffer setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; public String publishImageVersion(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException; @@ -183,6 +187,10 @@ 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 getImageVersionVirtConfig(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta, 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 publishImageVersion(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1060,6 +1068,73 @@ public class SatelliteServer { return; } + public ByteBuffer getImageVersionVirtConfig(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + send_getImageVersionVirtConfig(userToken, imageVersionId); + return recv_getImageVersionVirtConfig(); + } + + public void send_getImageVersionVirtConfig(String userToken, String imageVersionId) throws org.apache.thrift.TException + { + getImageVersionVirtConfig_args args = new getImageVersionVirtConfig_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + sendBase("getImageVersionVirtConfig", args); + } + + public ByteBuffer recv_getImageVersionVirtConfig() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_result(); + receiveBase(result, "getImageVersionVirtConfig"); + 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, "getImageVersionVirtConfig failed: unknown result"); + } + + public ByteBuffer setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + send_setImageVersionVirtConfig(userToken, imageVersionId, meta); + return recv_setImageVersionVirtConfig(); + } + + public void send_setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta) throws org.apache.thrift.TException + { + setImageVersionVirtConfig_args args = new setImageVersionVirtConfig_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + args.setMeta(meta); + sendBase("setImageVersionVirtConfig", args); + } + + public ByteBuffer recv_setImageVersionVirtConfig() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_result(); + receiveBase(result, "setImageVersionVirtConfig"); + 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, "setImageVersionVirtConfig failed: unknown result"); + } + public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { send_requestImageReplication(userToken, imageVersionId); @@ -2422,6 +2497,79 @@ public class SatelliteServer { } } + public void getImageVersionVirtConfig(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + getImageVersionVirtConfig_call method_call = new getImageVersionVirtConfig_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class getImageVersionVirtConfig_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userToken; + private String imageVersionId; + public getImageVersionVirtConfig_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("getImageVersionVirtConfig", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getImageVersionVirtConfig_args args = new getImageVersionVirtConfig_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + args.write(prot); + prot.writeMessageEnd(); + } + + public ByteBuffer 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_getImageVersionVirtConfig(); + } + } + + public void setImageVersionVirtConfig(String userToken, String imageVersionId, ByteBuffer meta, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + setImageVersionVirtConfig_call method_call = new setImageVersionVirtConfig_call(userToken, imageVersionId, meta, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class setImageVersionVirtConfig_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userToken; + private String imageVersionId; + private ByteBuffer meta; + public setImageVersionVirtConfig_call(String userToken, String imageVersionId, ByteBuffer meta, 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; + this.meta = meta; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setImageVersionVirtConfig", org.apache.thrift.protocol.TMessageType.CALL, 0)); + setImageVersionVirtConfig_args args = new setImageVersionVirtConfig_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + args.setMeta(meta); + args.write(prot); + prot.writeMessageEnd(); + } + + public ByteBuffer 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_setImageVersionVirtConfig(); + } + } + 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); @@ -2824,6 +2972,8 @@ public class SatelliteServer { processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); processMap.put("setImageVersionExpiry", new setImageVersionExpiry()); + processMap.put("getImageVersionVirtConfig", new getImageVersionVirtConfig()); + processMap.put("setImageVersionVirtConfig", new setImageVersionVirtConfig()); processMap.put("requestImageReplication", new requestImageReplication()); processMap.put("publishImageVersion", new publishImageVersion()); processMap.put("createLecture", new createLecture()); @@ -3594,6 +3744,62 @@ public class SatelliteServer { } } + public static class getImageVersionVirtConfig extends org.apache.thrift.ProcessFunction { + public getImageVersionVirtConfig() { + super("getImageVersionVirtConfig"); + } + + public getImageVersionVirtConfig_args getEmptyArgsInstance() { + return new getImageVersionVirtConfig_args(); + } + + protected boolean isOneway() { + return false; + } + + public getImageVersionVirtConfig_result getResult(I iface, getImageVersionVirtConfig_args args) throws org.apache.thrift.TException { + getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_result(); + try { + result.success = iface.getImageVersionVirtConfig(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 setImageVersionVirtConfig extends org.apache.thrift.ProcessFunction { + public setImageVersionVirtConfig() { + super("setImageVersionVirtConfig"); + } + + public setImageVersionVirtConfig_args getEmptyArgsInstance() { + return new setImageVersionVirtConfig_args(); + } + + protected boolean isOneway() { + return false; + } + + public setImageVersionVirtConfig_result getResult(I iface, setImageVersionVirtConfig_args args) throws org.apache.thrift.TException { + setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_result(); + try { + result.success = iface.setImageVersionVirtConfig(args.userToken, args.imageVersionId, args.meta); + } catch (TAuthorizationException authError) { + result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TInvocationException serverError) { + result.serverError = serverError; + } + return result; + } + } + public static class requestImageReplication extends org.apache.thrift.ProcessFunction { public requestImageReplication() { super("requestImageReplication"); @@ -3921,6 +4127,8 @@ public class SatelliteServer { processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); processMap.put("setImageVersionExpiry", new setImageVersionExpiry()); + processMap.put("getImageVersionVirtConfig", new getImageVersionVirtConfig()); + processMap.put("setImageVersionVirtConfig", new setImageVersionVirtConfig()); processMap.put("requestImageReplication", new requestImageReplication()); processMap.put("publishImageVersion", new publishImageVersion()); processMap.put("createLecture", new createLecture()); @@ -5750,20 +5958,20 @@ public class SatelliteServer { } } - public static class requestImageReplication extends org.apache.thrift.AsyncProcessFunction { - public requestImageReplication() { - super("requestImageReplication"); + public static class getImageVersionVirtConfig extends org.apache.thrift.AsyncProcessFunction { + public getImageVersionVirtConfig() { + super("getImageVersionVirtConfig"); } - public requestImageReplication_args getEmptyArgsInstance() { - return new requestImageReplication_args(); + public getImageVersionVirtConfig_args getEmptyArgsInstance() { + return new getImageVersionVirtConfig_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - requestImageReplication_result result = new requestImageReplication_result(); + return new AsyncMethodCallback() { + public void onComplete(ByteBuffer o) { + getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -5776,7 +5984,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - requestImageReplication_result result = new requestImageReplication_result(); + getImageVersionVirtConfig_result result = new getImageVersionVirtConfig_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -5812,25 +6020,25 @@ public class SatelliteServer { 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 void start(I iface, getImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getImageVersionVirtConfig(args.userToken, args.imageVersionId,resultHandler); } } - public static class publishImageVersion extends org.apache.thrift.AsyncProcessFunction { - public publishImageVersion() { - super("publishImageVersion"); + public static class setImageVersionVirtConfig extends org.apache.thrift.AsyncProcessFunction { + public setImageVersionVirtConfig() { + super("setImageVersionVirtConfig"); } - public publishImageVersion_args getEmptyArgsInstance() { - return new publishImageVersion_args(); + public setImageVersionVirtConfig_args getEmptyArgsInstance() { + return new setImageVersionVirtConfig_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - publishImageVersion_result result = new publishImageVersion_result(); + return new AsyncMethodCallback() { + public void onComplete(ByteBuffer o) { + setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -5843,7 +6051,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - publishImageVersion_result result = new publishImageVersion_result(); + setImageVersionVirtConfig_result result = new setImageVersionVirtConfig_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -5858,11 +6066,6 @@ public class SatelliteServer { result.serverError = (TInvocationException) e; result.setServerErrorIsSet(true); msg = result; - } - else if (e instanceof TTransferRejectedException) { - result.tre = (TTransferRejectedException) e; - result.setTreIsSet(true); - msg = result; } else { @@ -5884,25 +6087,25 @@ public class SatelliteServer { return false; } - public void start(I iface, publishImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.publishImageVersion(args.userToken, args.imageVersionId,resultHandler); + public void start(I iface, setImageVersionVirtConfig_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.setImageVersionVirtConfig(args.userToken, args.imageVersionId, args.meta,resultHandler); } } - public static class createLecture extends org.apache.thrift.AsyncProcessFunction { - public createLecture() { - super("createLecture"); + public static class requestImageReplication extends org.apache.thrift.AsyncProcessFunction { + public requestImageReplication() { + super("requestImageReplication"); } - public createLecture_args getEmptyArgsInstance() { - return new createLecture_args(); + 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) { - createLecture_result result = new createLecture_result(); + requestImageReplication_result result = new requestImageReplication_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -5915,26 +6118,21 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - createLecture_result result = new createLecture_result(); + requestImageReplication_result result = new requestImageReplication_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); msg = result; } - else if (e instanceof TInvocationException) { - result.serverError = (TInvocationException) e; - result.setServerErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvalidDateParam) { - result.dateError = (TInvalidDateParam) e; - result.setDateErrorIsSet(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 { @@ -5956,25 +6154,26 @@ public class SatelliteServer { return false; } - public void start(I iface, createLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.createLecture(args.userToken, args.lecture,resultHandler); + 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 updateLecture extends org.apache.thrift.AsyncProcessFunction { - public updateLecture() { - super("updateLecture"); + public static class publishImageVersion extends org.apache.thrift.AsyncProcessFunction { + public publishImageVersion() { + super("publishImageVersion"); } - public updateLecture_args getEmptyArgsInstance() { - return new updateLecture_args(); + public publishImageVersion_args getEmptyArgsInstance() { + return new publishImageVersion_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateLecture_result result = new updateLecture_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + publishImageVersion_result result = new publishImageVersion_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -5986,7 +6185,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateLecture_result result = new updateLecture_result(); + publishImageVersion_result result = new publishImageVersion_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -6002,9 +6201,9 @@ public class SatelliteServer { result.setServerErrorIsSet(true); msg = result; } - else if (e instanceof TInvalidDateParam) { - result.dateError = (TInvalidDateParam) e; - result.setDateErrorIsSet(true); + else if (e instanceof TTransferRejectedException) { + result.tre = (TTransferRejectedException) e; + result.setTreIsSet(true); msg = result; } else @@ -6027,25 +6226,25 @@ public class SatelliteServer { return false; } - public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateLecture(args.userToken, args.lectureId, args.lecture,resultHandler); + public void start(I iface, publishImageVersion_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.publishImageVersion(args.userToken, args.imageVersionId,resultHandler); } } - public static class getLectureList extends org.apache.thrift.AsyncProcessFunction> { - public getLectureList() { - super("getLectureList"); + public static class createLecture extends org.apache.thrift.AsyncProcessFunction { + public createLecture() { + super("createLecture"); } - public getLectureList_args getEmptyArgsInstance() { - return new getLectureList_args(); + public createLecture_args getEmptyArgsInstance() { + return new createLecture_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getLectureList_result result = new getLectureList_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + createLecture_result result = new createLecture_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -6058,7 +6257,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLectureList_result result = new getLectureList_result(); + createLecture_result result = new createLecture_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -6068,6 +6267,16 @@ public class SatelliteServer { result.serverError = (TInvocationException) e; result.setServerErrorIsSet(true); msg = result; + } + else if (e instanceof TInvalidDateParam) { + result.dateError = (TInvalidDateParam) e; + result.setDateErrorIsSet(true); + msg = result; + } + else if (e instanceof TNotFoundException) { + result.notFound = (TNotFoundException) e; + result.setNotFoundIsSet(true); + msg = result; } else { @@ -6089,26 +6298,25 @@ public class SatelliteServer { return false; } - public void start(I iface, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getLectureList(args.userToken, args.page,resultHandler); + public void start(I iface, createLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.createLecture(args.userToken, args.lecture,resultHandler); } } - public static class getLectureDetails extends org.apache.thrift.AsyncProcessFunction { - public getLectureDetails() { - super("getLectureDetails"); + public static class updateLecture extends org.apache.thrift.AsyncProcessFunction { + public updateLecture() { + super("updateLecture"); } - public getLectureDetails_args getEmptyArgsInstance() { - return new getLectureDetails_args(); + public updateLecture_args getEmptyArgsInstance() { + return new updateLecture_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(LectureRead o) { - getLectureDetails_result result = new getLectureDetails_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateLecture_result result = new updateLecture_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -6120,7 +6328,7 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLectureDetails_result result = new getLectureDetails_result(); + updateLecture_result result = new updateLecture_result(); if (e instanceof TAuthorizationException) { result.authError = (TAuthorizationException) e; result.setAuthErrorIsSet(true); @@ -6135,6 +6343,11 @@ public class SatelliteServer { result.serverError = (TInvocationException) e; result.setServerErrorIsSet(true); msg = result; + } + else if (e instanceof TInvalidDateParam) { + result.dateError = (TInvalidDateParam) e; + result.setDateErrorIsSet(true); + msg = result; } else { @@ -6156,25 +6369,26 @@ public class SatelliteServer { return false; } - public void start(I iface, getLectureDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLectureDetails(args.userToken, args.lectureId,resultHandler); + public void start(I iface, updateLecture_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateLecture(args.userToken, args.lectureId, args.lecture,resultHandler); } } - public static class deleteLecture extends org.apache.thrift.AsyncProcessFunction { - public deleteLecture() { - super("deleteLecture"); + public static class getLectureList extends org.apache.thrift.AsyncProcessFunction> { + public getLectureList() { + super("getLectureList"); } - public deleteLecture_args getEmptyArgsInstance() { - return new deleteLecture_args(); + public getLectureList_args getEmptyArgsInstance() { + return new getLectureList_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteLecture_result result = new deleteLecture_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getLectureList_result result = new getLectureList_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -6186,17 +6400,145 @@ public class SatelliteServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteLecture_result result = new deleteLecture_result(); + getLectureList_result result = new getLectureList_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, getLectureList_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getLectureList(args.userToken, args.page,resultHandler); + } + } + + public static class getLectureDetails extends org.apache.thrift.AsyncProcessFunction { + public getLectureDetails() { + super("getLectureDetails"); + } + + public getLectureDetails_args getEmptyArgsInstance() { + return new getLectureDetails_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(LectureRead o) { + getLectureDetails_result result = new getLectureDetails_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; + getLectureDetails_result result = new getLectureDetails_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, getLectureDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLectureDetails(args.userToken, args.lectureId,resultHandler); + } + } + + public static class deleteLecture extends org.apache.thrift.AsyncProcessFunction { + public deleteLecture() { + super("deleteLecture"); + } + + public deleteLecture_args getEmptyArgsInstance() { + return new deleteLecture_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteLecture_result result = new deleteLecture_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + deleteLecture_result result = new deleteLecture_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); @@ -26079,59 +26421,2352 @@ 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_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(updateImageBase_args.class, metaDataMap); + } + + public updateImageBase_args() { + } + + public updateImageBase_args( + String userToken, + String imageBaseId, + ImageBaseWrite image) + { + this(); + this.userToken = userToken; + this.imageBaseId = imageBaseId; + this.image = image; + } + + /** + * Performs a deep copy on other. + */ + public updateImageBase_args(updateImageBase_args other) { + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; + } + if (other.isSetImage()) { + this.image = new ImageBaseWrite(other.image); + } + } + + public updateImageBase_args deepCopy() { + return new updateImageBase_args(this); + } + + @Override + public void clear() { + this.userToken = null; + this.imageBaseId = null; + this.image = null; + } + + public String getUserToken() { + return this.userToken; + } + + public updateImageBase_args setUserToken(String userToken) { + this.userToken = userToken; + return this; + } + + public void unsetUserToken() { + this.userToken = null; + } + + /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUserToken() { + return this.userToken != null; + } + + public void setUserTokenIsSet(boolean value) { + if (!value) { + this.userToken = null; + } + } + + public String getImageBaseId() { + return this.imageBaseId; + } + + public updateImageBase_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; + return this; + } + + public void unsetImageBaseId() { + this.imageBaseId = null; + } + + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; + } + + public void setImageBaseIdIsSet(boolean value) { + if (!value) { + this.imageBaseId = null; + } + } + + public ImageBaseWrite getImage() { + return this.image; + } + + public 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; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_TOKEN: + if (value == null) { + unsetUserToken(); + } else { + setUserToken((String)value); + } + break; + + case IMAGE_BASE_ID: + if (value == null) { + unsetImageBaseId(); + } else { + setImageBaseId((String)value); + } + break; + + case IMAGE: + if (value == null) { + unsetImage(); + } else { + setImage((ImageBaseWrite)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_TOKEN: + return getUserToken(); + + case IMAGE_BASE_ID: + return getImageBaseId(); + + case IMAGE: + return getImage(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); + case IMAGE: + return isSetImage(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageBase_args) + return this.equals((updateImageBase_args)that); + return false; + } + + public boolean equals(updateImageBase_args that) { + if (that == null) + return false; + + boolean this_present_userToken = true && this.isSetUserToken(); + boolean that_present_userToken = true && that.isSetUserToken(); + if (this_present_userToken || that_present_userToken) { + if (!(this_present_userToken && that_present_userToken)) + return false; + if (!this.userToken.equals(that.userToken)) + return false; + } + + boolean this_present_imageBaseId = true && this.isSetImageBaseId(); + boolean that_present_imageBaseId = true && that.isSetImageBaseId(); + if (this_present_imageBaseId || that_present_imageBaseId) { + if (!(this_present_imageBaseId && that_present_imageBaseId)) + return false; + if (!this.imageBaseId.equals(that.imageBaseId)) + return false; + } + + boolean this_present_image = true && this.isSetImage(); + boolean that_present_image = true && that.isSetImage(); + if (this_present_image || that_present_image) { + if (!(this_present_image && that_present_image)) + return false; + if (!this.image.equals(that.image)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_userToken = true && (isSetUserToken()); + list.add(present_userToken); + if (present_userToken) + list.add(userToken); + + boolean present_imageBaseId = true && (isSetImageBaseId()); + list.add(present_imageBaseId); + if (present_imageBaseId) + list.add(imageBaseId); + + boolean present_image = true && (isSetImage()); + list.add(present_image); + if (present_image) + list.add(image); + + return list.hashCode(); + } + + @Override + public int compareTo(updateImageBase_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateImageBase_args("); + boolean first = true; + + sb.append("userToken:"); + if (this.userToken == null) { + sb.append("null"); + } else { + sb.append(this.userToken); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { + sb.append("null"); + } else { + sb.append(this.imageBaseId); + } + first = false; + if (!first) sb.append(", "); + sb.append("image:"); + if (this.image == null) { + sb.append("null"); + } else { + sb.append(this.image); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (image != null) { + image.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { + public updateImageBase_argsStandardScheme getScheme() { + return new updateImageBase_argsStandardScheme(); + } + } + + private static class updateImageBase_argsStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IMAGE_BASE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // 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); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); + oprot.writeFieldEnd(); + } + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); + oprot.writeFieldEnd(); + } + if (struct.image != null) { + oprot.writeFieldBegin(IMAGE_FIELD_DESC); + struct.image.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { + public updateImageBase_argsTupleScheme getScheme() { + return new updateImageBase_argsTupleScheme(); + } + } + + private static class updateImageBase_argsTupleScheme extends TupleScheme { + + @Override + 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.isSetImageBaseId()) { + optionals.set(1); + } + if (struct.isSetImage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); + } + if (struct.isSetImage()) { + struct.image.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } + if (incoming.get(2)) { + struct.image = new ImageBaseWrite(); + struct.image.read(iprot); + struct.setImageIsSet(true); + } + } + } + + } + + public static class updateImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_result"); + + private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + 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 updateImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); + } + + public TAuthorizationException authError; // 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 { + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + IMG_ERROR((short)3, "imgError"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // AUTH_ERROR + return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // IMG_ERROR + return IMG_ERROR; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_result.class, metaDataMap); + } + + public updateImageBase_result() { + } + + public updateImageBase_result( + TAuthorizationException authError, + TNotFoundException notFound, + TInvocationException imgError) + { + this(); + this.authError = authError; + this.notFound = notFound; + this.imgError = imgError; + } + + /** + * Performs a deep copy on other. + */ + public updateImageBase_result(updateImageBase_result other) { + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetImgError()) { + this.imgError = new TInvocationException(other.imgError); + } + } + + public updateImageBase_result deepCopy() { + return new updateImageBase_result(this); + } + + @Override + public void clear() { + this.authError = null; + this.notFound = null; + this.imgError = null; + } + + public TAuthorizationException getAuthError() { + return this.authError; + } + + public updateImageBase_result setAuthError(TAuthorizationException authError) { + this.authError = authError; + return this; + } + + public void unsetAuthError() { + this.authError = null; + } + + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; + } + + public void setAuthErrorIsSet(boolean value) { + if (!value) { + this.authError = null; + } + } + + public TNotFoundException getNotFound() { + return this.notFound; + } + + public updateImageBase_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; + return this; + } + + public void unsetNotFound() { + this.notFound = null; + } + + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; + } + + public void setNotFoundIsSet(boolean value) { + if (!value) { + this.notFound = null; + } + } + + public TInvocationException getImgError() { + return this.imgError; + } + + public updateImageBase_result setImgError(TInvocationException imgError) { + this.imgError = imgError; + return this; + } + + public void unsetImgError() { + this.imgError = null; + } + + /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ + public boolean isSetImgError() { + return this.imgError != null; + } + + public void setImgErrorIsSet(boolean value) { + if (!value) { + this.imgError = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + + case IMG_ERROR: + if (value == null) { + unsetImgError(); + } else { + setImgError((TInvocationException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case AUTH_ERROR: + return getAuthError(); + + case NOT_FOUND: + return getNotFound(); + + case IMG_ERROR: + return getImgError(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case AUTH_ERROR: + return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageBase_result) + return this.equals((updateImageBase_result)that); + return false; + } + + public boolean equals(updateImageBase_result that) { + if (that == null) + return false; + + boolean this_present_authError = true && this.isSetAuthError(); + boolean that_present_authError = true && that.isSetAuthError(); + if (this_present_authError || that_present_authError) { + if (!(this_present_authError && that_present_authError)) + return false; + if (!this.authError.equals(that.authError)) + return false; + } + + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_imgError = true && this.isSetImgError(); + boolean that_present_imgError = true && that.isSetImgError(); + if (this_present_imgError || that_present_imgError) { + if (!(this_present_imgError && that_present_imgError)) + return false; + if (!this.imgError.equals(that.imgError)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_authError = true && (isSetAuthError()); + list.add(present_authError); + if (present_authError) + list.add(authError); + + boolean present_notFound = true && (isSetNotFound()); + list.add(present_notFound); + if (present_notFound) + list.add(notFound); + + boolean present_imgError = true && (isSetImgError()); + list.add(present_imgError); + if (present_imgError) + list.add(imgError); + + return list.hashCode(); + } + + @Override + public int compareTo(updateImageBase_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateImageBase_result("); + boolean first = true; + + sb.append("authError:"); + if (this.authError == null) { + sb.append("null"); + } else { + sb.append(this.authError); + } + first = false; + if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("imgError:"); + if (this.imgError == null) { + sb.append("null"); + } else { + sb.append(this.imgError); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { + public updateImageBase_resultStandardScheme getScheme() { + return new updateImageBase_resultStandardScheme(); + } + } + + private static class updateImageBase_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // AUTH_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMG_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imgError = new TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { + public updateImageBase_resultTupleScheme getScheme() { + return new updateImageBase_resultTupleScheme(); + } + } + + private static class updateImageBase_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetAuthError()) { + optionals.set(0); + } + if (struct.isSetNotFound()) { + optionals.set(1); + } + if (struct.isSetImgError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetImgError()) { + struct.imgError.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(2)) { + struct.imgError = new TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } + } + } + + } + + public static class updateImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_args"); + + private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("image", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_argsTupleSchemeFactory()); + } + + public String userToken; // required + public String imageVersionId; // required + public ImageVersionWrite image; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_TOKEN((short)1, "userToken"), + IMAGE_VERSION_ID((short)2, "imageVersionId"), + IMAGE((short)3, "image"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_TOKEN + return USER_TOKEN; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; + case 3: // IMAGE + return IMAGE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.IMAGE, new org.apache.thrift.meta_data.FieldMetaData("image", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageVersionWrite.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); + } + + public updateImageVersion_args() { + } + + public updateImageVersion_args( + String userToken, + String imageVersionId, + ImageVersionWrite image) + { + this(); + this.userToken = userToken; + this.imageVersionId = imageVersionId; + this.image = image; + } + + /** + * Performs a deep copy on other. + */ + public updateImageVersion_args(updateImageVersion_args other) { + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; + } + if (other.isSetImage()) { + this.image = new ImageVersionWrite(other.image); + } + } + + public updateImageVersion_args deepCopy() { + return new updateImageVersion_args(this); + } + + @Override + public void clear() { + this.userToken = null; + this.imageVersionId = null; + this.image = null; + } + + public String getUserToken() { + return this.userToken; + } + + public updateImageVersion_args setUserToken(String userToken) { + this.userToken = userToken; + return this; + } + + public void unsetUserToken() { + this.userToken = null; + } + + /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUserToken() { + return this.userToken != null; + } + + public void setUserTokenIsSet(boolean value) { + if (!value) { + this.userToken = null; + } + } + + public String getImageVersionId() { + return this.imageVersionId; + } + + public updateImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; + return this; + } + + public void unsetImageVersionId() { + this.imageVersionId = null; + } + + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; + } + + public void setImageVersionIdIsSet(boolean value) { + if (!value) { + this.imageVersionId = null; + } + } + + public ImageVersionWrite getImage() { + return this.image; + } + + public updateImageVersion_args setImage(ImageVersionWrite image) { + this.image = image; + return this; + } + + public void unsetImage() { + this.image = null; + } + + /** Returns true if field image is set (has been assigned a value) and false otherwise */ + public boolean isSetImage() { + return this.image != null; + } + + public void setImageIsSet(boolean value) { + if (!value) { + this.image = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_TOKEN: + if (value == null) { + unsetUserToken(); + } else { + setUserToken((String)value); + } + break; + + case IMAGE_VERSION_ID: + if (value == null) { + unsetImageVersionId(); + } else { + setImageVersionId((String)value); + } + break; + + case IMAGE: + if (value == null) { + unsetImage(); + } else { + setImage((ImageVersionWrite)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case USER_TOKEN: + return getUserToken(); + + case IMAGE_VERSION_ID: + return getImageVersionId(); + + case IMAGE: + return getImage(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); + case IMAGE: + return isSetImage(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageVersion_args) + return this.equals((updateImageVersion_args)that); + return false; + } + + public boolean equals(updateImageVersion_args that) { + if (that == null) + return false; + + boolean this_present_userToken = true && this.isSetUserToken(); + boolean that_present_userToken = true && that.isSetUserToken(); + if (this_present_userToken || that_present_userToken) { + if (!(this_present_userToken && that_present_userToken)) + return false; + if (!this.userToken.equals(that.userToken)) + return false; + } + + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) + return false; + if (!this.imageVersionId.equals(that.imageVersionId)) + return false; + } + + boolean this_present_image = true && this.isSetImage(); + boolean that_present_image = true && that.isSetImage(); + if (this_present_image || that_present_image) { + if (!(this_present_image && that_present_image)) + return false; + if (!this.image.equals(that.image)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_userToken = true && (isSetUserToken()); + list.add(present_userToken); + if (present_userToken) + list.add(userToken); + + boolean present_imageVersionId = true && (isSetImageVersionId()); + list.add(present_imageVersionId); + if (present_imageVersionId) + list.add(imageVersionId); + + boolean present_image = true && (isSetImage()); + list.add(present_image); + if (present_image) + list.add(image); + + return list.hashCode(); + } + + @Override + public int compareTo(updateImageVersion_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateImageVersion_args("); + boolean first = true; + + sb.append("userToken:"); + if (this.userToken == null) { + sb.append("null"); + } else { + sb.append(this.userToken); + } + first = false; + if (!first) sb.append(", "); + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { + sb.append("null"); + } else { + sb.append(this.imageVersionId); + } + first = false; + if (!first) sb.append(", "); + sb.append("image:"); + if (this.image == null) { + sb.append("null"); + } else { + sb.append(this.image); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (image != null) { + image.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_argsStandardScheme getScheme() { + return new updateImageVersion_argsStandardScheme(); + } + } + + private static class updateImageVersion_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // USER_TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // IMAGE_VERSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMAGE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.image = new ImageVersionWrite(); + struct.image.read(iprot); + struct.setImageIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); + oprot.writeFieldEnd(); + } + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); + oprot.writeFieldEnd(); + } + if (struct.image != null) { + oprot.writeFieldBegin(IMAGE_FIELD_DESC); + struct.image.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_argsTupleScheme getScheme() { + return new updateImageVersion_argsTupleScheme(); + } + } + + private static class updateImageVersion_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserToken()) { + optionals.set(0); + } + if (struct.isSetImageVersionId()) { + optionals.set(1); + } + if (struct.isSetImage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); + } + if (struct.isSetImage()) { + struct.image.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); + } + if (incoming.get(2)) { + struct.image = new ImageVersionWrite(); + struct.image.read(iprot); + struct.setImageIsSet(true); + } + } + } + + } + + public static class updateImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_result"); + + private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); + } + + public TAuthorizationException authError; // required + public TNotFoundException notFound; // required + public 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 { + AUTH_ERROR((short)1, "authError"), + NOT_FOUND((short)2, "notFound"), + IMG_ERROR((short)3, "imgError"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // AUTH_ERROR + return AUTH_ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // IMG_ERROR + return IMG_ERROR; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); + } + + public updateImageVersion_result() { + } + + public updateImageVersion_result( + TAuthorizationException authError, + TNotFoundException notFound, + TInvocationException imgError) + { + this(); + this.authError = authError; + this.notFound = notFound; + this.imgError = imgError; + } + + /** + * Performs a deep copy on other. + */ + public updateImageVersion_result(updateImageVersion_result other) { + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetImgError()) { + this.imgError = new TInvocationException(other.imgError); + } + } + + public updateImageVersion_result deepCopy() { + return new updateImageVersion_result(this); + } + + @Override + public void clear() { + this.authError = null; + this.notFound = null; + this.imgError = null; + } + + public TAuthorizationException getAuthError() { + return this.authError; + } + + public updateImageVersion_result setAuthError(TAuthorizationException authError) { + this.authError = authError; + return this; + } + + public void unsetAuthError() { + this.authError = null; + } + + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; + } + + public void setAuthErrorIsSet(boolean value) { + if (!value) { + this.authError = null; + } + } + + public TNotFoundException getNotFound() { + return this.notFound; + } + + public updateImageVersion_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; + return this; + } + + public void unsetNotFound() { + this.notFound = null; + } + + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; + } + + public void setNotFoundIsSet(boolean value) { + if (!value) { + this.notFound = null; + } + } + + public TInvocationException getImgError() { + return this.imgError; + } + + public updateImageVersion_result setImgError(TInvocationException imgError) { + this.imgError = imgError; + return this; + } + + public void unsetImgError() { + this.imgError = null; + } + + /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ + public boolean isSetImgError() { + return this.imgError != null; + } + + public void setImgErrorIsSet(boolean value) { + if (!value) { + this.imgError = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + + case IMG_ERROR: + if (value == null) { + unsetImgError(); + } else { + setImgError((TInvocationException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case AUTH_ERROR: + return getAuthError(); + + case NOT_FOUND: + return getNotFound(); + + case IMG_ERROR: + return getImgError(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case AUTH_ERROR: + return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateImageVersion_result) + return this.equals((updateImageVersion_result)that); + return false; + } + + public boolean equals(updateImageVersion_result that) { + if (that == null) + return false; + + boolean this_present_authError = true && this.isSetAuthError(); + boolean that_present_authError = true && that.isSetAuthError(); + if (this_present_authError || that_present_authError) { + if (!(this_present_authError && that_present_authError)) + return false; + if (!this.authError.equals(that.authError)) + return false; + } + + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_imgError = true && this.isSetImgError(); + boolean that_present_imgError = true && that.isSetImgError(); + if (this_present_imgError || that_present_imgError) { + if (!(this_present_imgError && that_present_imgError)) + return false; + if (!this.imgError.equals(that.imgError)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_authError = true && (isSetAuthError()); + list.add(present_authError); + if (present_authError) + list.add(authError); + + boolean present_notFound = true && (isSetNotFound()); + list.add(present_notFound); + if (present_notFound) + list.add(notFound); + + boolean present_imgError = true && (isSetImgError()); + list.add(present_imgError); + if (present_imgError) + list.add(imgError); + + return list.hashCode(); + } + + @Override + public int compareTo(updateImageVersion_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateImageVersion_result("); + boolean first = true; + + sb.append("authError:"); + if (this.authError == null) { + sb.append("null"); + } else { + sb.append(this.authError); + } + first = false; + if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); + sb.append("imgError:"); + if (this.imgError == null) { + sb.append("null"); + } else { + sb.append(this.imgError); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_resultStandardScheme getScheme() { + return new updateImageVersion_resultStandardScheme(); + } + } + + private static class updateImageVersion_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // AUTH_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMG_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imgError = new TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_resultTupleScheme getScheme() { + return new updateImageVersion_resultTupleScheme(); + } + } + + private static class updateImageVersion_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetAuthError()) { + optionals.set(0); + } + if (struct.isSetNotFound()) { + optionals.set(1); + } + if (struct.isSetImgError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetImgError()) { + struct.imgError.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(2)) { + struct.imgError = new TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); + } + } + } + + } + + public static class deleteImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_args"); + + private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new deleteImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); + } + + public String userToken; // required + public String imageVersionId; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + USER_TOKEN((short)1, "userToken"), + IMAGE_VERSION_ID((short)2, "imageVersionId"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // USER_TOKEN + return USER_TOKEN; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - 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(updateImageBase_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); } - public updateImageBase_args() { + public deleteImageVersion_args() { } - public updateImageBase_args( + public deleteImageVersion_args( String userToken, - String imageBaseId, - ImageBaseWrite image) + String imageVersionId) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.image = image; + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public updateImageBase_args(updateImageBase_args other) { + public deleteImageVersion_args(deleteImageVersion_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; - } - if (other.isSetImage()) { - this.image = new ImageBaseWrite(other.image); + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } } - public updateImageBase_args deepCopy() { - return new updateImageBase_args(this); + public deleteImageVersion_args deepCopy() { + return new deleteImageVersion_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; - this.image = null; + this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public updateImageBase_args setUserToken(String userToken) { + public deleteImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -26151,51 +28786,27 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; - } - - public updateImageBase_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; - return this; - } - - public void unsetImageBaseId() { - this.imageBaseId = null; - } - - /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageBaseId() { - return this.imageBaseId != null; - } - - public void setImageBaseIdIsSet(boolean value) { - if (!value) { - this.imageBaseId = null; - } - } - - public ImageBaseWrite getImage() { - return this.image; + public String getImageVersionId() { + return this.imageVersionId; } - public updateImageBase_args setImage(ImageBaseWrite image) { - this.image = image; + public deleteImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetImage() { - this.image = null; + public void unsetImageVersionId() { + this.imageVersionId = null; } - /** Returns true if field image is set (has been assigned a value) and false otherwise */ - public boolean isSetImage() { - return this.image != null; + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setImageIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.image = null; + this.imageVersionId = null; } } @@ -26209,19 +28820,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: - if (value == null) { - unsetImageBaseId(); - } else { - setImageBaseId((String)value); - } - break; - - case IMAGE: + case IMAGE_VERSION_ID: if (value == null) { - unsetImage(); + unsetImageVersionId(); } else { - setImage((ImageBaseWrite)value); + setImageVersionId((String)value); } break; @@ -26233,11 +28836,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); - - case IMAGE: - return getImage(); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -26252,10 +28852,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); - case IMAGE: - return isSetImage(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -26264,12 +28862,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 deleteImageVersion_args) + return this.equals((deleteImageVersion_args)that); return false; } - public boolean equals(updateImageBase_args that) { + public boolean equals(deleteImageVersion_args that) { if (that == null) return false; @@ -26282,21 +28880,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) - return false; - if (!this.imageBaseId.equals(that.imageBaseId)) - return false; - } - - boolean this_present_image = true && this.isSetImage(); - boolean that_present_image = true && that.isSetImage(); - if (this_present_image || that_present_image) { - if (!(this_present_image && that_present_image)) + boolean this_present_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.image.equals(that.image)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -26312,21 +28901,16 @@ public class SatelliteServer { if (present_userToken) list.add(userToken); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_image = true && (isSetImage()); - list.add(present_image); - if (present_image) - list.add(image); + boolean present_imageVersionId = true && (isSetImageVersionId()); + list.add(present_imageVersionId); + if (present_imageVersionId) + list.add(imageVersionId); return list.hashCode(); } @Override - public int compareTo(updateImageBase_args other) { + public int compareTo(deleteImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -26343,22 +28927,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -26380,7 +28954,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_args("); + StringBuilder sb = new StringBuilder("deleteImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -26391,19 +28965,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { - sb.append("null"); - } else { - sb.append(this.imageBaseId); - } - first = false; - if (!first) sb.append(", "); - sb.append("image:"); - if (this.image == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.image); + sb.append(this.imageVersionId); } first = false; sb.append(")"); @@ -26413,9 +28979,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 { @@ -26434,15 +28997,15 @@ public class SatelliteServer { } } - private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { - public updateImageBase_argsStandardScheme getScheme() { - return new updateImageBase_argsStandardScheme(); + private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsStandardScheme getScheme() { + return new deleteImageVersion_argsStandardScheme(); } } - private static class updateImageBase_argsStandardScheme extends StandardScheme { + private static class deleteImageVersion_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, deleteImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26460,19 +29023,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: // IMAGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.image = new ImageBaseWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -26488,7 +29042,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, deleteImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -26497,14 +29051,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); - oprot.writeFieldEnd(); - } - if (struct.image != null) { - oprot.writeFieldBegin(IMAGE_FIELD_DESC); - struct.image.write(oprot); + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -26513,83 +29062,72 @@ public class SatelliteServer { } - private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { - public updateImageBase_argsTupleScheme getScheme() { - return new updateImageBase_argsTupleScheme(); + private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsTupleScheme getScheme() { + return new deleteImageVersion_argsTupleScheme(); } } - private static class updateImageBase_argsTupleScheme extends TupleScheme { + private static class deleteImageVersion_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, deleteImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageBaseId()) { + if (struct.isSetImageVersionId()) { optionals.set(1); } - if (struct.isSetImage()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); - } - if (struct.isSetImage()) { - struct.image.write(oprot); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @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, deleteImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } - if (incoming.get(2)) { - struct.image = new ImageBaseWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } } } } - public static class updateImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_result"); + public static class 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 updateImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_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(); @@ -26608,8 +29146,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; } @@ -26657,57 +29195,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(updateImageBase_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_result.class, metaDataMap); } - public updateImageBase_result() { + public deleteImageVersion_result() { } - public updateImageBase_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 updateImageBase_result(updateImageBase_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 updateImageBase_result deepCopy() { - return new updateImageBase_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 updateImageBase_result setAuthError(TAuthorizationException authError) { + public deleteImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -26731,7 +29269,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageBase_result setNotFound(TNotFoundException notFound) { + public deleteImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -26751,27 +29289,27 @@ public class SatelliteServer { } } - public TInvocationException getImgError() { - return this.imgError; + public TInvocationException getServerError() { + return this.serverError; } - public updateImageBase_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; } } @@ -26793,11 +29331,11 @@ public class SatelliteServer { } break; - case IMG_ERROR: + case SERVER_ERROR: if (value == null) { - unsetImgError(); + unsetServerError(); } else { - setImgError((TInvocationException)value); + setServerError((TInvocationException)value); } break; @@ -26812,8 +29350,8 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); - case IMG_ERROR: - return getImgError(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -26830,8 +29368,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); - case IMG_ERROR: - return isSetImgError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -26840,12 +29378,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 deleteImageVersion_result) + return this.equals((deleteImageVersion_result)that); return false; } - public boolean equals(updateImageBase_result that) { + public boolean equals(deleteImageVersion_result that) { if (that == null) return false; @@ -26867,12 +29405,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; } @@ -26893,16 +29431,16 @@ public class SatelliteServer { if (present_notFound) list.add(notFound); - boolean present_imgError = true && (isSetImgError()); - list.add(present_imgError); - if (present_imgError) - list.add(imgError); + boolean present_serverError = true && (isSetServerError()); + list.add(present_serverError); + if (present_serverError) + list.add(serverError); return list.hashCode(); } @Override - public int compareTo(updateImageBase_result other) { + public int compareTo(deleteImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -26929,12 +29467,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; } @@ -26956,7 +29494,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_result("); + StringBuilder sb = new StringBuilder("deleteImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -26975,11 +29513,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(")"); @@ -27007,15 +29545,15 @@ public class SatelliteServer { } } - private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { - public updateImageBase_resultStandardScheme getScheme() { - return new updateImageBase_resultStandardScheme(); + private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultStandardScheme getScheme() { + return new deleteImageVersion_resultStandardScheme(); } } - private static class updateImageBase_resultStandardScheme extends StandardScheme { + private static class deleteImageVersion_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27043,11 +29581,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); } @@ -27063,7 +29601,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, deleteImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -27077,9 +29615,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(); @@ -27088,16 +29626,16 @@ public class SatelliteServer { } - private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { - public updateImageBase_resultTupleScheme getScheme() { - return new updateImageBase_resultTupleScheme(); + private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultTupleScheme getScheme() { + return new deleteImageVersion_resultTupleScheme(); } } - private static class updateImageBase_resultTupleScheme extends TupleScheme { + private static class deleteImageVersion_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -27106,7 +29644,7 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetImgError()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -27116,13 +29654,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, updateImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -27136,37 +29674,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 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 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_FIELD_DESC = new org.apache.thrift.protocol.TField("image", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final 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 deleteImageBase_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageBase_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required - public ImageVersionWrite image; // 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((short)3, "image"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -27183,10 +29718,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; - case 3: // IMAGE - return IMAGE; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; default: return null; } @@ -27232,59 +29765,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.IMAGE, new org.apache.thrift.meta_data.FieldMetaData("image", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageVersionWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_args.class, metaDataMap); } - public updateImageVersion_args() { + public deleteImageBase_args() { } - public updateImageVersion_args( + public deleteImageBase_args( String userToken, - String imageVersionId, - ImageVersionWrite image) + String imageBaseId) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; - this.image = image; + this.imageBaseId = imageBaseId; } /** * Performs a deep copy on other. */ - public updateImageVersion_args(updateImageVersion_args other) { + public deleteImageBase_args(deleteImageBase_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); + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } } - public updateImageVersion_args deepCopy() { - return new updateImageVersion_args(this); + public deleteImageBase_args deepCopy() { + return new deleteImageBase_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; - this.image = null; + this.imageBaseId = null; } public String getUserToken() { return this.userToken; } - public updateImageVersion_args setUserToken(String userToken) { + public deleteImageBase_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -27304,51 +29829,27 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; - } - - public updateImageVersion_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; - return this; - } - - public void unsetImageVersionId() { - this.imageVersionId = null; - } - - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; - } - - public void setImageVersionIdIsSet(boolean value) { - if (!value) { - this.imageVersionId = null; - } - } - - public ImageVersionWrite getImage() { - return this.image; + public String getImageBaseId() { + return this.imageBaseId; } - public updateImageVersion_args setImage(ImageVersionWrite image) { - this.image = image; + public deleteImageBase_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetImage() { - this.image = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field image is set (has been assigned a value) and false otherwise */ - public boolean isSetImage() { - return this.image != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setImageIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.image = null; + this.imageBaseId = null; } } @@ -27362,19 +29863,11 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: - if (value == null) { - unsetImageVersionId(); - } else { - setImageVersionId((String)value); - } - break; - - case IMAGE: + case IMAGE_BASE_ID: if (value == null) { - unsetImage(); + unsetImageBaseId(); } else { - setImage((ImageVersionWrite)value); + setImageBaseId((String)value); } break; @@ -27386,11 +29879,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); - - case IMAGE: - return getImage(); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -27405,10 +29895,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); - case IMAGE: - return isSetImage(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); } throw new IllegalStateException(); } @@ -27417,12 +29905,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 deleteImageBase_args) + return this.equals((deleteImageBase_args)that); return false; } - public boolean equals(updateImageVersion_args that) { + public boolean equals(deleteImageBase_args that) { if (that == null) return false; @@ -27435,21 +29923,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)) - return false; - if (!this.imageVersionId.equals(that.imageVersionId)) - return false; - } - - boolean this_present_image = true && this.isSetImage(); - boolean that_present_image = true && that.isSetImage(); - if (this_present_image || that_present_image) { - if (!(this_present_image && that_present_image)) + 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.image.equals(that.image)) + if (!this.imageBaseId.equals(that.imageBaseId)) return false; } @@ -27465,21 +29944,16 @@ public class SatelliteServer { if (present_userToken) list.add(userToken); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); - - boolean present_image = true && (isSetImage()); - list.add(present_image); - if (present_image) - list.add(image); + boolean present_imageBaseId = true && (isSetImageBaseId()); + list.add(present_imageBaseId); + if (present_imageBaseId) + list.add(imageBaseId); return list.hashCode(); } @Override - public int compareTo(updateImageVersion_args other) { + public int compareTo(deleteImageBase_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -27496,22 +29970,12 @@ 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; - } - } - lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } @@ -27533,7 +29997,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_args("); + StringBuilder sb = new StringBuilder("deleteImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -27544,19 +30008,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { - sb.append("null"); - } else { - sb.append(this.imageVersionId); - } - first = false; - if (!first) sb.append(", "); - sb.append("image:"); - if (this.image == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.image); + sb.append(this.imageBaseId); } first = false; sb.append(")"); @@ -27566,9 +30022,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 { @@ -27587,15 +30040,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_argsStandardScheme getScheme() { - return new updateImageVersion_argsStandardScheme(); + private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageBase_argsStandardScheme getScheme() { + return new deleteImageBase_argsStandardScheme(); } } - private static class updateImageVersion_argsStandardScheme extends StandardScheme { + private static class deleteImageBase_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, deleteImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27613,19 +30066,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); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // IMAGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.image = new ImageVersionWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27641,7 +30085,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, deleteImageBase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -27650,14 +30094,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); - oprot.writeFieldEnd(); - } - if (struct.image != null) { - oprot.writeFieldBegin(IMAGE_FIELD_DESC); - struct.image.write(oprot); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -27666,83 +30105,72 @@ public class SatelliteServer { } - private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_argsTupleScheme getScheme() { - return new updateImageVersion_argsTupleScheme(); + private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageBase_argsTupleScheme getScheme() { + return new deleteImageBase_argsTupleScheme(); } } - private static class updateImageVersion_argsTupleScheme extends TupleScheme { + private static class deleteImageBase_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, 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); } - 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); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } } @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, deleteImageBase_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.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); - } - if (incoming.get(2)) { - struct.image = new ImageVersionWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(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 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); - 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 deleteImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageBase_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(); @@ -27761,8 +30189,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; } @@ -27810,57 +30238,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(deleteImageBase_result.class, metaDataMap); } - public updateImageVersion_result() { + public deleteImageBase_result() { } - public updateImageVersion_result( + public deleteImageBase_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 deleteImageBase_result(deleteImageBase_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 deleteImageBase_result deepCopy() { + return new deleteImageBase_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 deleteImageBase_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -27884,7 +30312,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageBase_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -27904,27 +30332,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 deleteImageBase_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; } } @@ -27946,11 +30374,11 @@ public class SatelliteServer { } break; - case IMG_ERROR: + case SERVER_ERROR: if (value == null) { - unsetImgError(); + unsetServerError(); } else { - setImgError((TInvocationException)value); + setServerError((TInvocationException)value); } break; @@ -27965,8 +30393,8 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); - case IMG_ERROR: - return getImgError(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -27983,8 +30411,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); - case IMG_ERROR: - return isSetImgError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -27993,12 +30421,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 deleteImageBase_result) + return this.equals((deleteImageBase_result)that); return false; } - public boolean equals(updateImageVersion_result that) { + public boolean equals(deleteImageBase_result that) { if (that == null) return false; @@ -28020,12 +30448,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; } @@ -28046,16 +30474,16 @@ public class SatelliteServer { if (present_notFound) list.add(notFound); - boolean present_imgError = true && (isSetImgError()); - list.add(present_imgError); - if (present_imgError) - list.add(imgError); + boolean present_serverError = true && (isSetServerError()); + list.add(present_serverError); + if (present_serverError) + list.add(serverError); return list.hashCode(); } @Override - public int compareTo(updateImageVersion_result other) { + public int compareTo(deleteImageBase_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28082,12 +30510,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; } @@ -28109,7 +30537,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_result("); + StringBuilder sb = new StringBuilder("deleteImageBase_result("); boolean first = true; sb.append("authError:"); @@ -28128,11 +30556,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(")"); @@ -28160,15 +30588,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_resultStandardScheme getScheme() { - return new updateImageVersion_resultStandardScheme(); + private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageBase_resultStandardScheme getScheme() { + return new deleteImageBase_resultStandardScheme(); } } - private static class updateImageVersion_resultStandardScheme extends StandardScheme { + private static class deleteImageBase_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, deleteImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28196,11 +30624,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); } @@ -28216,7 +30644,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, deleteImageBase_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28230,9 +30658,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(); @@ -28241,16 +30669,16 @@ public class SatelliteServer { } - private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_resultTupleScheme getScheme() { - return new updateImageVersion_resultTupleScheme(); + private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageBase_resultTupleScheme getScheme() { + return new deleteImageBase_resultTupleScheme(); } } - private static class updateImageVersion_resultTupleScheme extends TupleScheme { + private static class deleteImageBase_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, deleteImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -28259,7 +30687,7 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetImgError()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -28269,13 +30697,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, deleteImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -28289,34 +30717,37 @@ 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 writeImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_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 deleteImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required + public String imageBaseId; // required + public Map permissions; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + PERMISSIONS((short)3, "permissions"); private static final Map byName = new HashMap(); @@ -28333,8 +30764,10 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; + case 3: // PERMISSIONS + return PERMISSIONS; default: return null; } @@ -28380,51 +30813,73 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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(deleteImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); } - public deleteImageVersion_args() { + public writeImagePermissions_args() { } - public deleteImageVersion_args( + public writeImagePermissions_args( String userToken, - String imageVersionId) + String imageBaseId, + Map permissions) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; + this.imageBaseId = imageBaseId; + this.permissions = permissions; } /** * Performs a deep copy on other. */ - public deleteImageVersion_args(deleteImageVersion_args other) { + public writeImagePermissions_args(writeImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; + } + if (other.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 deleteImageVersion_args deepCopy() { - return new deleteImageVersion_args(this); + public writeImagePermissions_args deepCopy() { + return new writeImagePermissions_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; + this.imageBaseId = null; + this.permissions = null; } public String getUserToken() { return this.userToken; } - public deleteImageVersion_args setUserToken(String userToken) { + public writeImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -28444,27 +30899,62 @@ 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 writeImagePermissions_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetImageVersionId() { - this.imageVersionId = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setImageVersionIdIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.imageVersionId = null; + this.imageBaseId = null; + } + } + + public 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; } } @@ -28478,11 +30968,19 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: + case IMAGE_BASE_ID: if (value == null) { - unsetImageVersionId(); + unsetImageBaseId(); } else { - setImageVersionId((String)value); + setImageBaseId((String)value); + } + break; + + case PERMISSIONS: + if (value == null) { + unsetPermissions(); + } else { + setPermissions((Map)value); } break; @@ -28494,8 +30992,11 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_BASE_ID: + return getImageBaseId(); + + case PERMISSIONS: + return getPermissions(); } throw new IllegalStateException(); @@ -28510,8 +31011,10 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); + case PERMISSIONS: + return isSetPermissions(); } throw new IllegalStateException(); } @@ -28520,12 +31023,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 writeImagePermissions_args) + return this.equals((writeImagePermissions_args)that); return false; } - public boolean equals(deleteImageVersion_args that) { + public boolean equals(writeImagePermissions_args that) { if (that == null) return false; @@ -28538,12 +31041,21 @@ public class SatelliteServer { return false; } - boolean this_present_imageVersionId = true && this.isSetImageVersionId(); - boolean that_present_imageVersionId = true && that.isSetImageVersionId(); - if (this_present_imageVersionId || that_present_imageVersionId) { - if (!(this_present_imageVersionId && that_present_imageVersionId)) + boolean this_present_imageBaseId = true && this.isSetImageBaseId(); + boolean that_present_imageBaseId = true && that.isSetImageBaseId(); + if (this_present_imageBaseId || that_present_imageBaseId) { + if (!(this_present_imageBaseId && that_present_imageBaseId)) return false; - if (!this.imageVersionId.equals(that.imageVersionId)) + if (!this.imageBaseId.equals(that.imageBaseId)) + return false; + } + + boolean this_present_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; } @@ -28559,16 +31071,21 @@ public class SatelliteServer { if (present_userToken) list.add(userToken); - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); + boolean present_imageBaseId = true && (isSetImageBaseId()); + list.add(present_imageBaseId); + if (present_imageBaseId) + list.add(imageBaseId); + + boolean present_permissions = true && (isSetPermissions()); + list.add(present_permissions); + if (present_permissions) + list.add(permissions); return list.hashCode(); } @Override - public int compareTo(deleteImageVersion_args other) { + public int compareTo(writeImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28585,12 +31102,22 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(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; } @@ -28612,7 +31139,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_args("); + StringBuilder sb = new StringBuilder("writeImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -28623,11 +31150,19 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.imageBaseId); + } + first = false; + if (!first) sb.append(", "); + sb.append("permissions:"); + if (this.permissions == null) { + sb.append("null"); + } else { + sb.append(this.permissions); } first = false; sb.append(")"); @@ -28655,15 +31190,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsStandardScheme getScheme() { - return new deleteImageVersion_argsStandardScheme(); + private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsStandardScheme getScheme() { + return new writeImagePermissions_argsStandardScheme(); } } - private static class deleteImageVersion_argsStandardScheme extends StandardScheme { + private static class writeImagePermissions_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, writeImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28681,10 +31216,31 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID + case 2: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PERMISSIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map242 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map242.size); + String _key243; + ImagePermissions _val244; + for (int _i245 = 0; _i245 < _map242.size; ++_i245) + { + _key243 = iprot.readString(); + _val244 = new ImagePermissions(); + _val244.read(iprot); + struct.permissions.put(_key243, _val244); + } + iprot.readMapEnd(); + } + struct.setPermissionsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -28700,7 +31256,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, writeImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28709,9 +31265,22 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); + oprot.writeFieldEnd(); + } + if (struct.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 _iter246 : struct.permissions.entrySet()) + { + oprot.writeString(_iter246.getKey()); + _iter246.getValue().write(oprot); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -28720,52 +31289,81 @@ public class SatelliteServer { } - private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsTupleScheme getScheme() { - return new deleteImageVersion_argsTupleScheme(); + private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsTupleScheme getScheme() { + return new writeImagePermissions_argsTupleScheme(); } } - private static class deleteImageVersion_argsTupleScheme extends TupleScheme { + private static class writeImagePermissions_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, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetPermissions()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); + } + if (struct.isSetPermissions()) { + { + oprot.writeI32(struct.permissions.size()); + for (Map.Entry _iter247 : struct.permissions.entrySet()) + { + oprot.writeString(_iter247.getKey()); + _iter247.getValue().write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, 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); } if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TMap _map248 = 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*_map248.size); + String _key249; + ImagePermissions _val250; + for (int _i251 = 0; _i251 < _map248.size; ++_i251) + { + _key249 = iprot.readString(); + _val250 = new ImagePermissions(); + _val250.read(iprot); + struct.permissions.put(_key249, _val250); + } + } + struct.setPermissionsIsSet(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 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); @@ -28773,8 +31371,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 writeImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -28856,13 +31454,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(writeImagePermissions_result.class, metaDataMap); } - public deleteImageVersion_result() { + public writeImagePermissions_result() { } - public deleteImageVersion_result( + public writeImagePermissions_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -28876,7 +31474,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public deleteImageVersion_result(deleteImageVersion_result other) { + public writeImagePermissions_result(writeImagePermissions_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -28888,8 +31486,8 @@ public class SatelliteServer { } } - public deleteImageVersion_result deepCopy() { - return new deleteImageVersion_result(this); + public writeImagePermissions_result deepCopy() { + return new writeImagePermissions_result(this); } @Override @@ -28903,7 +31501,7 @@ public class SatelliteServer { return this.authError; } - public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + public writeImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -28927,7 +31525,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + public writeImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -28951,7 +31549,7 @@ public class SatelliteServer { return this.serverError; } - public deleteImageVersion_result setServerError(TInvocationException serverError) { + public writeImagePermissions_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -29036,12 +31634,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 writeImagePermissions_result) + return this.equals((writeImagePermissions_result)that); return false; } - public boolean equals(deleteImageVersion_result that) { + public boolean equals(writeImagePermissions_result that) { if (that == null) return false; @@ -29098,7 +31696,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_result other) { + public int compareTo(writeImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -29152,7 +31750,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_result("); + StringBuilder sb = new StringBuilder("writeImagePermissions_result("); boolean first = true; sb.append("authError:"); @@ -29203,15 +31801,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultStandardScheme getScheme() { - return new deleteImageVersion_resultStandardScheme(); + private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultStandardScheme getScheme() { + return new writeImagePermissions_resultStandardScheme(); } } - private static class deleteImageVersion_resultStandardScheme extends StandardScheme { + private static class writeImagePermissions_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, writeImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29259,7 +31857,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, writeImagePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29284,16 +31882,16 @@ public class SatelliteServer { } - private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultTupleScheme getScheme() { - return new deleteImageVersion_resultTupleScheme(); + private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultTupleScheme getScheme() { + return new writeImagePermissions_resultTupleScheme(); } } - private static class deleteImageVersion_resultTupleScheme extends TupleScheme { + private static class writeImagePermissions_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, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -29318,7 +31916,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, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -29341,16 +31939,16 @@ 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 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 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 getImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required @@ -29426,13 +32024,13 @@ public class SatelliteServer { 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(deleteImageBase_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); } - public deleteImageBase_args() { + public getImagePermissions_args() { } - public deleteImageBase_args( + public getImagePermissions_args( String userToken, String imageBaseId) { @@ -29444,7 +32042,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public deleteImageBase_args(deleteImageBase_args other) { + public getImagePermissions_args(getImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } @@ -29453,8 +32051,8 @@ public class SatelliteServer { } } - public deleteImageBase_args deepCopy() { - return new deleteImageBase_args(this); + public getImagePermissions_args deepCopy() { + return new getImagePermissions_args(this); } @Override @@ -29467,7 +32065,7 @@ public class SatelliteServer { return this.userToken; } - public deleteImageBase_args setUserToken(String userToken) { + public getImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -29491,7 +32089,7 @@ public class SatelliteServer { return this.imageBaseId; } - public deleteImageBase_args setImageBaseId(String imageBaseId) { + public getImagePermissions_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -29563,12 +32161,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 getImagePermissions_args) + return this.equals((getImagePermissions_args)that); return false; } - public boolean equals(deleteImageBase_args that) { + public boolean equals(getImagePermissions_args that) { if (that == null) return false; @@ -29611,7 +32209,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageBase_args other) { + public int compareTo(getImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -29655,7 +32253,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_args("); + StringBuilder sb = new StringBuilder("getImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -29698,15 +32296,15 @@ public class SatelliteServer { } } - private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageBase_argsStandardScheme getScheme() { - return new deleteImageBase_argsStandardScheme(); + private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_argsStandardScheme getScheme() { + return new getImagePermissions_argsStandardScheme(); } } - private static class deleteImageBase_argsStandardScheme extends StandardScheme { + private static class getImagePermissions_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, getImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29743,7 +32341,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, getImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29763,16 +32361,16 @@ public class SatelliteServer { } - private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageBase_argsTupleScheme getScheme() { - return new deleteImageBase_argsTupleScheme(); + private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_argsTupleScheme getScheme() { + return new getImagePermissions_argsTupleScheme(); } } - private static class deleteImageBase_argsTupleScheme extends TupleScheme { + private static class getImagePermissions_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, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -29791,7 +32389,7 @@ public class SatelliteServer { } @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, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -29807,25 +32405,28 @@ public class SatelliteServer { } - 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 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 deleteImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageBase_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"); @@ -29843,6 +32444,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 @@ -29892,6 +32495,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, @@ -29899,18 +32506,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(deleteImageBase_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); } - public deleteImageBase_result() { + public getImagePermissions_result() { } - public deleteImageBase_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; @@ -29919,7 +32528,22 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public deleteImageBase_result(deleteImageBase_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); } @@ -29931,22 +32555,58 @@ public class SatelliteServer { } } - public deleteImageBase_result deepCopy() { - return new deleteImageBase_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 deleteImageBase_result setAuthError(TAuthorizationException authError) { + public getImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -29970,7 +32630,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageBase_result setNotFound(TNotFoundException notFound) { + public getImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -29994,7 +32654,7 @@ public class SatelliteServer { return this.serverError; } - public deleteImageBase_result setServerError(TInvocationException serverError) { + public getImagePermissions_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -30016,6 +32676,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(); @@ -30045,6 +32713,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -30065,6 +32736,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -30079,15 +32752,24 @@ 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 getImagePermissions_result) + return this.equals((getImagePermissions_result)that); return false; } - public boolean equals(deleteImageBase_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) { @@ -30122,6 +32804,11 @@ public class SatelliteServer { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_authError = true && (isSetAuthError()); list.add(present_authError); if (present_authError) @@ -30141,13 +32828,23 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageBase_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; @@ -30195,9 +32892,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_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"); @@ -30246,15 +32951,15 @@ public class SatelliteServer { } } - private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageBase_resultStandardScheme getScheme() { - return new deleteImageBase_resultStandardScheme(); + private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_resultStandardScheme getScheme() { + return new getImagePermissions_resultStandardScheme(); } } - private static class deleteImageBase_resultStandardScheme extends StandardScheme { + private static class getImagePermissions_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, getImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30264,6 +32969,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 _map252 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map252.size); + String _key253; + ImagePermissions _val254; + for (int _i255 = 0; _i255 < _map252.size; ++_i255) + { + _key253 = iprot.readString(); + _val254 = new ImagePermissions(); + _val254.read(iprot); + struct.success.put(_key253, _val254); + } + 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(); @@ -30302,10 +33028,23 @@ 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, 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 _iter256 : struct.success.entrySet()) + { + oprot.writeString(_iter256.getKey()); + _iter256.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -30327,28 +33066,41 @@ public class SatelliteServer { } - private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageBase_resultTupleScheme getScheme() { - return new deleteImageBase_resultTupleScheme(); + private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_resultTupleScheme getScheme() { + return new getImagePermissions_resultTupleScheme(); } } - private static class deleteImageBase_resultTupleScheme extends TupleScheme { + private static class getImagePermissions_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, 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 _iter257 : struct.success.entrySet()) + { + oprot.writeString(_iter257.getKey()); + _iter257.getValue().write(oprot); + } + } + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -30361,20 +33113,36 @@ 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, 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 _map258 = 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*_map258.size); + String _key259; + ImagePermissions _val260; + for (int _i261 = 0; _i261 < _map258.size; ++_i261) + { + _key259 = iprot.readString(); + _val260 = new ImagePermissions(); + _val260.read(iprot); + struct.success.put(_key259, _val260); + } + } + 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); @@ -30384,28 +33152,28 @@ 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 setImageOwner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); + private static final org.apache.thrift.protocol.TField NEW_OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOwnerId", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required - public Map permissions; // required + public String newOwnerId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), IMAGE_BASE_ID((short)2, "imageBaseId"), - PERMISSIONS((short)3, "permissions"); + NEW_OWNER_ID((short)3, "newOwnerId"); private static final Map byName = new HashMap(); @@ -30424,8 +33192,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; - case 3: // PERMISSIONS - return PERMISSIONS; + case 3: // NEW_OWNER_ID + return NEW_OWNER_ID; default: return null; } @@ -30473,71 +33241,57 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); + tmpMap.put(_Fields.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); } - public writeImagePermissions_args() { + public setImageOwner_args() { } - public writeImagePermissions_args( + public setImageOwner_args( String userToken, String imageBaseId, - Map permissions) + String newOwnerId) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; - this.permissions = permissions; + this.newOwnerId = newOwnerId; } /** * Performs a deep copy on other. */ - public writeImagePermissions_args(writeImagePermissions_args other) { + public setImageOwner_args(setImageOwner_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } - if (other.isSetPermissions()) { - Map __this__permissions = new HashMap(other.permissions.size()); - for (Map.Entry other_element : other.permissions.entrySet()) { - - String other_element_key = other_element.getKey(); - ImagePermissions other_element_value = other_element.getValue(); - - String __this__permissions_copy_key = other_element_key; - - ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); - - __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); - } - this.permissions = __this__permissions; + if (other.isSetNewOwnerId()) { + this.newOwnerId = other.newOwnerId; } } - public writeImagePermissions_args deepCopy() { - return new writeImagePermissions_args(this); + public setImageOwner_args deepCopy() { + return new setImageOwner_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; - this.permissions = null; + this.newOwnerId = null; } public String getUserToken() { return this.userToken; } - public writeImagePermissions_args setUserToken(String userToken) { + public setImageOwner_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -30561,7 +33315,7 @@ public class SatelliteServer { return this.imageBaseId; } - public writeImagePermissions_args setImageBaseId(String imageBaseId) { + public setImageOwner_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -30581,38 +33335,27 @@ public class SatelliteServer { } } - public int getPermissionsSize() { - return (this.permissions == null) ? 0 : this.permissions.size(); - } - - public void putToPermissions(String key, ImagePermissions val) { - if (this.permissions == null) { - this.permissions = new HashMap(); - } - this.permissions.put(key, val); - } - - public Map getPermissions() { - return this.permissions; + public String getNewOwnerId() { + return this.newOwnerId; } - public writeImagePermissions_args setPermissions(Map permissions) { - this.permissions = permissions; + public setImageOwner_args setNewOwnerId(String newOwnerId) { + this.newOwnerId = newOwnerId; return this; } - public void unsetPermissions() { - this.permissions = null; + public void unsetNewOwnerId() { + this.newOwnerId = null; } - /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ - public boolean isSetPermissions() { - return this.permissions != null; + /** Returns true if field newOwnerId is set (has been assigned a value) and false otherwise */ + public boolean isSetNewOwnerId() { + return this.newOwnerId != null; } - public void setPermissionsIsSet(boolean value) { + public void setNewOwnerIdIsSet(boolean value) { if (!value) { - this.permissions = null; + this.newOwnerId = null; } } @@ -30634,11 +33377,11 @@ public class SatelliteServer { } break; - case PERMISSIONS: + case NEW_OWNER_ID: if (value == null) { - unsetPermissions(); + unsetNewOwnerId(); } else { - setPermissions((Map)value); + setNewOwnerId((String)value); } break; @@ -30653,8 +33396,8 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); - case PERMISSIONS: - return getPermissions(); + case NEW_OWNER_ID: + return getNewOwnerId(); } throw new IllegalStateException(); @@ -30671,8 +33414,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); - case PERMISSIONS: - return isSetPermissions(); + case NEW_OWNER_ID: + return isSetNewOwnerId(); } throw new IllegalStateException(); } @@ -30681,12 +33424,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_args) - return this.equals((writeImagePermissions_args)that); + if (that instanceof setImageOwner_args) + return this.equals((setImageOwner_args)that); return false; } - public boolean equals(writeImagePermissions_args that) { + public boolean equals(setImageOwner_args that) { if (that == null) return false; @@ -30708,12 +33451,12 @@ public class SatelliteServer { return false; } - boolean this_present_permissions = true && this.isSetPermissions(); - boolean that_present_permissions = true && that.isSetPermissions(); - if (this_present_permissions || that_present_permissions) { - if (!(this_present_permissions && that_present_permissions)) + boolean this_present_newOwnerId = true && this.isSetNewOwnerId(); + boolean that_present_newOwnerId = true && that.isSetNewOwnerId(); + if (this_present_newOwnerId || that_present_newOwnerId) { + if (!(this_present_newOwnerId && that_present_newOwnerId)) return false; - if (!this.permissions.equals(that.permissions)) + if (!this.newOwnerId.equals(that.newOwnerId)) return false; } @@ -30734,16 +33477,16 @@ public class SatelliteServer { if (present_imageBaseId) list.add(imageBaseId); - boolean present_permissions = true && (isSetPermissions()); - list.add(present_permissions); - if (present_permissions) - list.add(permissions); + boolean present_newOwnerId = true && (isSetNewOwnerId()); + list.add(present_newOwnerId); + if (present_newOwnerId) + list.add(newOwnerId); return list.hashCode(); } @Override - public int compareTo(writeImagePermissions_args other) { + public int compareTo(setImageOwner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -30770,12 +33513,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); if (lastComparison != 0) { return lastComparison; } - if (isSetPermissions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); + if (isSetNewOwnerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); if (lastComparison != 0) { return lastComparison; } @@ -30797,7 +33540,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_args("); + StringBuilder sb = new StringBuilder("setImageOwner_args("); boolean first = true; sb.append("userToken:"); @@ -30816,11 +33559,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("permissions:"); - if (this.permissions == null) { + sb.append("newOwnerId:"); + if (this.newOwnerId == null) { sb.append("null"); } else { - sb.append(this.permissions); + sb.append(this.newOwnerId); } first = false; sb.append(")"); @@ -30848,15 +33591,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsStandardScheme getScheme() { - return new writeImagePermissions_argsStandardScheme(); + private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { + public setImageOwner_argsStandardScheme getScheme() { + return new setImageOwner_argsStandardScheme(); } } - private static class writeImagePermissions_argsStandardScheme extends StandardScheme { + private static class setImageOwner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30882,23 +33625,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PERMISSIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map242 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map242.size); - String _key243; - ImagePermissions _val244; - for (int _i245 = 0; _i245 < _map242.size; ++_i245) - { - _key243 = iprot.readString(); - _val244 = new ImagePermissions(); - _val244.read(iprot); - struct.permissions.put(_key243, _val244); - } - iprot.readMapEnd(); - } - struct.setPermissionsIsSet(true); + case 3: // NEW_OWNER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -30914,7 +33644,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -30928,17 +33658,9 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - if (struct.permissions != null) { - oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter246 : struct.permissions.entrySet()) - { - oprot.writeString(_iter246.getKey()); - _iter246.getValue().write(oprot); - } - oprot.writeMapEnd(); - } + if (struct.newOwnerId != null) { + oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); + oprot.writeString(struct.newOwnerId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -30947,16 +33669,16 @@ public class SatelliteServer { } - private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsTupleScheme getScheme() { - return new writeImagePermissions_argsTupleScheme(); + private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { + public setImageOwner_argsTupleScheme getScheme() { + return new setImageOwner_argsTupleScheme(); } } - private static class writeImagePermissions_argsTupleScheme extends TupleScheme { + private static class setImageOwner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -30965,7 +33687,7 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetPermissions()) { + if (struct.isSetNewOwnerId()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -30975,20 +33697,13 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } - if (struct.isSetPermissions()) { - { - oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter247 : struct.permissions.entrySet()) - { - oprot.writeString(_iter247.getKey()); - _iter247.getValue().write(oprot); - } - } + if (struct.isSetNewOwnerId()) { + oprot.writeString(struct.newOwnerId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -31000,28 +33715,16 @@ public class SatelliteServer { struct.setImageBaseIdIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map248 = 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*_map248.size); - String _key249; - ImagePermissions _val250; - for (int _i251 = 0; _i251 < _map248.size; ++_i251) - { - _key249 = iprot.readString(); - _val250 = new ImagePermissions(); - _val250.read(iprot); - struct.permissions.put(_key249, _val250); - } - } - struct.setPermissionsIsSet(true); + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); } } } } - public static class writeImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_result"); + public static class setImageOwner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_result"); private static final org.apache.thrift.protocol.TField 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); @@ -31029,8 +33732,8 @@ public class SatelliteServer { private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -31112,13 +33815,13 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); } - public writeImagePermissions_result() { + public setImageOwner_result() { } - public writeImagePermissions_result( + public setImageOwner_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -31132,7 +33835,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public writeImagePermissions_result(writeImagePermissions_result other) { + public setImageOwner_result(setImageOwner_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -31144,8 +33847,8 @@ public class SatelliteServer { } } - public writeImagePermissions_result deepCopy() { - return new writeImagePermissions_result(this); + public setImageOwner_result deepCopy() { + return new setImageOwner_result(this); } @Override @@ -31159,7 +33862,7 @@ public class SatelliteServer { return this.authError; } - public writeImagePermissions_result setAuthError(TAuthorizationException authError) { + public setImageOwner_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -31183,7 +33886,7 @@ public class SatelliteServer { return this.notFound; } - public writeImagePermissions_result setNotFound(TNotFoundException notFound) { + public setImageOwner_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -31207,7 +33910,7 @@ public class SatelliteServer { return this.serverError; } - public writeImagePermissions_result setServerError(TInvocationException serverError) { + public setImageOwner_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -31292,12 +33995,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_result) - return this.equals((writeImagePermissions_result)that); + if (that instanceof setImageOwner_result) + return this.equals((setImageOwner_result)that); return false; } - public boolean equals(writeImagePermissions_result that) { + public boolean equals(setImageOwner_result that) { if (that == null) return false; @@ -31354,7 +34057,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_result other) { + public int compareTo(setImageOwner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -31408,7 +34111,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_result("); + StringBuilder sb = new StringBuilder("setImageOwner_result("); boolean first = true; sb.append("authError:"); @@ -31459,15 +34162,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultStandardScheme getScheme() { - return new writeImagePermissions_resultStandardScheme(); + private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { + public setImageOwner_resultStandardScheme getScheme() { + return new setImageOwner_resultStandardScheme(); } } - private static class writeImagePermissions_resultStandardScheme extends StandardScheme { + private static class setImageOwner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -31515,7 +34218,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -31540,16 +34243,16 @@ public class SatelliteServer { } - private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultTupleScheme getScheme() { - return new writeImagePermissions_resultTupleScheme(); + private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { + public setImageOwner_resultTupleScheme getScheme() { + return new setImageOwner_resultTupleScheme(); } } - private static class writeImagePermissions_resultTupleScheme extends TupleScheme { + private static class setImageOwner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -31574,7 +34277,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -31597,25 +34300,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 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 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 getImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageVersionExpiry_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionExpiry_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // 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"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + EXPIRE_TIME((short)3, "expireTime"); private static final Map byName = new HashMap(); @@ -31634,6 +34340,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; + case 3: // EXPIRE_TIME + return EXPIRE_TIME; default: return null; } @@ -31674,6 +34382,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); @@ -31681,49 +34391,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.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(getImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_args.class, metaDataMap); } - public getImagePermissions_args() { + public setImageVersionExpiry_args() { } - public getImagePermissions_args( + public setImageVersionExpiry_args( String userToken, - String imageBaseId) + String imageBaseId, + long expireTime) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; + this.expireTime = expireTime; + setExpireTimeIsSet(true); } /** * Performs a deep copy on other. */ - public getImagePermissions_args(getImagePermissions_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; } + this.expireTime = other.expireTime; } - public getImagePermissions_args deepCopy() { - return new getImagePermissions_args(this); + public setImageVersionExpiry_args deepCopy() { + return new setImageVersionExpiry_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; + setExpireTimeIsSet(false); + this.expireTime = 0; } public String getUserToken() { return this.userToken; } - public getImagePermissions_args setUserToken(String userToken) { + public setImageVersionExpiry_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -31747,7 +34466,7 @@ public class SatelliteServer { return this.imageBaseId; } - public getImagePermissions_args setImageBaseId(String imageBaseId) { + public setImageVersionExpiry_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -31767,6 +34486,29 @@ public class SatelliteServer { } } + 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: @@ -31785,6 +34527,14 @@ public class SatelliteServer { } break; + case EXPIRE_TIME: + if (value == null) { + unsetExpireTime(); + } else { + setExpireTime((Long)value); + } + break; + } } @@ -31796,6 +34546,9 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); + case EXPIRE_TIME: + return getExpireTime(); + } throw new IllegalStateException(); } @@ -31811,6 +34564,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); + case EXPIRE_TIME: + return isSetExpireTime(); } throw new IllegalStateException(); } @@ -31819,12 +34574,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 setImageVersionExpiry_args) + return this.equals((setImageVersionExpiry_args)that); return false; } - public boolean equals(getImagePermissions_args that) { + public boolean equals(setImageVersionExpiry_args that) { if (that == null) return false; @@ -31846,6 +34601,15 @@ public class SatelliteServer { 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)) + return false; + if (this.expireTime != that.expireTime) + return false; + } + return true; } @@ -31863,11 +34627,16 @@ public class SatelliteServer { if (present_imageBaseId) list.add(imageBaseId); + boolean present_expireTime = true; + list.add(present_expireTime); + if (present_expireTime) + list.add(expireTime); + return list.hashCode(); } @Override - public int compareTo(getImagePermissions_args other) { + public int compareTo(setImageVersionExpiry_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -31894,6 +34663,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetExpireTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expireTime, other.expireTime); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -31911,7 +34690,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_args("); + StringBuilder sb = new StringBuilder("setImageVersionExpiry_args("); boolean first = true; sb.append("userToken:"); @@ -31929,6 +34708,10 @@ public class SatelliteServer { sb.append(this.imageBaseId); } first = false; + if (!first) sb.append(", "); + sb.append("expireTime:"); + sb.append(this.expireTime); + first = false; sb.append(")"); return sb.toString(); } @@ -31948,21 +34731,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 getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_argsStandardScheme getScheme() { - return new getImagePermissions_argsStandardScheme(); + private static class setImageVersionExpiry_argsStandardSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_argsStandardScheme getScheme() { + return new setImageVersionExpiry_argsStandardScheme(); } } - private static class getImagePermissions_argsStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_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, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -31988,6 +34773,14 @@ public class SatelliteServer { 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); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -31999,7 +34792,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, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -32013,22 +34806,25 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(EXPIRE_TIME_FIELD_DESC); + oprot.writeI64(struct.expireTime); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_argsTupleScheme getScheme() { - return new getImagePermissions_argsTupleScheme(); + private static class setImageVersionExpiry_argsTupleSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_argsTupleScheme getScheme() { + return new setImageVersionExpiry_argsTupleScheme(); } } - private static class getImagePermissions_argsTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_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, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -32037,19 +34833,25 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetExpireTime()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } + if (struct.isSetExpireTime()) { + oprot.writeI64(struct.expireTime); + } } @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, setImageVersionExpiry_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); @@ -32058,36 +34860,40 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } + if (incoming.get(2)) { + struct.expireTime = iprot.readI64(); + struct.setExpireTimeIsSet(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 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 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 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 getImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageVersionExpiry_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionExpiry_resultTupleSchemeFactory()); } - public Map 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"); + SERVER_ERROR((short)3, "serverError"), + DATE_ERROR((short)4, "dateError"); private static final Map byName = new HashMap(); @@ -32102,14 +34908,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; } @@ -32153,55 +34959,38 @@ 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, 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(getImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_result.class, metaDataMap); } - public getImagePermissions_result() { + public setImageVersionExpiry_result() { } - public getImagePermissions_result( - Map success, + public setImageVersionExpiry_result( TAuthorizationException authError, TNotFoundException notFound, - TInvocationException serverError) + TInvocationException serverError, + TInvalidDateParam dateError) { this(); - this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; + this.dateError = dateError; } /** * 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 setImageVersionExpiry_result(setImageVersionExpiry_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -32211,60 +35000,28 @@ public class SatelliteServer { if (other.isSetServerError()) { this.serverError = new TInvocationException(other.serverError); } + if (other.isSetDateError()) { + this.dateError = new TInvalidDateParam(other.dateError); + } } - public getImagePermissions_result deepCopy() { - return new getImagePermissions_result(this); + public setImageVersionExpiry_result deepCopy() { + return new setImageVersionExpiry_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; - } + this.dateError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public getImagePermissions_result setAuthError(TAuthorizationException authError) { + public setImageVersionExpiry_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -32288,7 +35045,7 @@ public class SatelliteServer { return this.notFound; } - public getImagePermissions_result setNotFound(TNotFoundException notFound) { + public setImageVersionExpiry_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -32312,7 +35069,7 @@ public class SatelliteServer { return this.serverError; } - public getImagePermissions_result setServerError(TInvocationException serverError) { + public setImageVersionExpiry_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -32332,16 +35089,32 @@ 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((Map)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -32366,14 +35139,19 @@ 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(); @@ -32383,6 +35161,9 @@ public class SatelliteServer { case SERVER_ERROR: return getServerError(); + case DATE_ERROR: + return getDateError(); + } throw new IllegalStateException(); } @@ -32394,14 +35175,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(); } @@ -32410,24 +35191,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 setImageVersionExpiry_result) + return this.equals((setImageVersionExpiry_result)that); return false; } - public boolean equals(getImagePermissions_result that) { + public boolean equals(setImageVersionExpiry_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) { @@ -32455,6 +35227,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; } @@ -32462,11 +35243,6 @@ public class SatelliteServer { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - boolean present_authError = true && (isSetAuthError()); list.add(present_authError); if (present_authError) @@ -32482,27 +35258,22 @@ public class SatelliteServer { if (present_serverError) list.add(serverError); + boolean present_dateError = true && (isSetDateError()); + list.add(present_dateError); + if (present_dateError) + list.add(dateError); + return list.hashCode(); } @Override - public int compareTo(getImagePermissions_result other) { + public int compareTo(setImageVersionExpiry_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; @@ -32533,6 +35304,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; } @@ -32550,17 +35331,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_result("); + StringBuilder sb = new StringBuilder("setImageVersionExpiry_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"); @@ -32584,6 +35357,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(); } @@ -32609,15 +35390,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_resultStandardScheme getScheme() { - return new getImagePermissions_resultStandardScheme(); + private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_resultStandardScheme getScheme() { + return new setImageVersionExpiry_resultStandardScheme(); } } - private static class getImagePermissions_resultStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_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, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -32627,27 +35408,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 _map252 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map252.size); - String _key253; - ImagePermissions _val254; - for (int _i255 = 0; _i255 < _map252.size; ++_i255) - { - _key253 = iprot.readString(); - _val254 = new ImagePermissions(); - _val254.read(iprot); - struct.success.put(_key253, _val254); - } - 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(); @@ -32675,6 +35435,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); } @@ -32686,23 +35455,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, setImageVersionExpiry_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 _iter256 : struct.success.entrySet()) - { - oprot.writeString(_iter256.getKey()); - _iter256.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -32718,47 +35474,42 @@ 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 getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_resultTupleScheme getScheme() { - return new getImagePermissions_resultTupleScheme(); + private static class setImageVersionExpiry_resultTupleSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_resultTupleScheme getScheme() { + return new setImageVersionExpiry_resultTupleScheme(); } } - private static class getImagePermissions_resultTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_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, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetServerError()) { optionals.set(2); } - if (struct.isSetServerError()) { + if (struct.isSetDateError()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter257 : struct.success.entrySet()) - { - oprot.writeString(_iter257.getKey()); - _iter257.getValue().write(oprot); - } - } - } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -32768,70 +35519,59 @@ 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, getImagePermissions_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(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map258 = 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*_map258.size); - String _key259; - ImagePermissions _val260; - for (int _i261 = 0; _i261 < _map258.size; ++_i261) - { - _key259 = iprot.readString(); - _val260 = new ImagePermissions(); - _val260.read(iprot); - struct.success.put(_key259, _val260); - } - } - 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); } + if (incoming.get(3)) { + struct.dateError = new TInvalidDateParam(); + struct.dateError.read(iprot); + struct.setDateErrorIsSet(true); + } } } } - 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 getImageVersionVirtConfig_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("getImageVersionVirtConfig_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 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 setImageOwner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageVersionVirtConfig_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageVersionVirtConfig_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public String newOwnerId; // 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"), - NEW_OWNER_ID((short)3, "newOwnerId"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -32848,10 +35588,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; - case 3: // NEW_OWNER_ID - return NEW_OWNER_ID; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -32897,59 +35635,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_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(setImageOwner_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageVersionVirtConfig_args.class, metaDataMap); } - public setImageOwner_args() { + public getImageVersionVirtConfig_args() { } - public setImageOwner_args( + public getImageVersionVirtConfig_args( String userToken, - String imageBaseId, - String newOwnerId) + String imageVersionId) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.newOwnerId = newOwnerId; + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public setImageOwner_args(setImageOwner_args other) { + public getImageVersionVirtConfig_args(getImageVersionVirtConfig_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; - } - if (other.isSetNewOwnerId()) { - this.newOwnerId = other.newOwnerId; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } } - public setImageOwner_args deepCopy() { - return new setImageOwner_args(this); + public getImageVersionVirtConfig_args deepCopy() { + return new getImageVersionVirtConfig_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; - this.newOwnerId = null; + this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public setImageOwner_args setUserToken(String userToken) { + public getImageVersionVirtConfig_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -32969,51 +35699,27 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; - } - - public setImageOwner_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; - return this; - } - - public void unsetImageBaseId() { - this.imageBaseId = null; - } - - /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageBaseId() { - return this.imageBaseId != null; - } - - public void setImageBaseIdIsSet(boolean value) { - if (!value) { - this.imageBaseId = null; - } - } - - public String getNewOwnerId() { - return this.newOwnerId; + public String getImageVersionId() { + return this.imageVersionId; } - public setImageOwner_args setNewOwnerId(String newOwnerId) { - this.newOwnerId = newOwnerId; + public getImageVersionVirtConfig_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetNewOwnerId() { - this.newOwnerId = null; + public void unsetImageVersionId() { + this.imageVersionId = null; } - /** 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 imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setNewOwnerIdIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.newOwnerId = null; + this.imageVersionId = null; } } @@ -33027,19 +35733,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: - if (value == null) { - unsetImageBaseId(); - } else { - setImageBaseId((String)value); - } - break; - - case NEW_OWNER_ID: + case IMAGE_VERSION_ID: if (value == null) { - unsetNewOwnerId(); + unsetImageVersionId(); } else { - setNewOwnerId((String)value); + setImageVersionId((String)value); } break; @@ -33051,11 +35749,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); - - case NEW_OWNER_ID: - return getNewOwnerId(); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -33070,10 +35765,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); - case NEW_OWNER_ID: - return isSetNewOwnerId(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -33082,12 +35775,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 getImageVersionVirtConfig_args) + return this.equals((getImageVersionVirtConfig_args)that); return false; } - public boolean equals(setImageOwner_args that) { + public boolean equals(getImageVersionVirtConfig_args that) { if (that == null) return false; @@ -33100,21 +35793,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_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_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.newOwnerId.equals(that.newOwnerId)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -33130,21 +35814,16 @@ public class SatelliteServer { if (present_userToken) list.add(userToken); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_newOwnerId = true && (isSetNewOwnerId()); - list.add(present_newOwnerId); - if (present_newOwnerId) - list.add(newOwnerId); + boolean present_imageVersionId = true && (isSetImageVersionId()); + list.add(present_imageVersionId); + if (present_imageVersionId) + list.add(imageVersionId); return list.hashCode(); } @Override - public int compareTo(setImageOwner_args other) { + public int compareTo(getImageVersionVirtConfig_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -33161,22 +35840,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(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetNewOwnerId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -33198,7 +35867,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_args("); + StringBuilder sb = new StringBuilder("getImageVersionVirtConfig_args("); boolean first = true; sb.append("userToken:"); @@ -33209,19 +35878,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { - sb.append("null"); - } else { - sb.append(this.imageBaseId); - } - first = false; - if (!first) sb.append(", "); - sb.append("newOwnerId:"); - if (this.newOwnerId == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.newOwnerId); + sb.append(this.imageVersionId); } first = false; sb.append(")"); @@ -33249,15 +35910,15 @@ public class SatelliteServer { } } - private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { - public setImageOwner_argsStandardScheme getScheme() { - return new setImageOwner_argsStandardScheme(); + private static class getImageVersionVirtConfig_argsStandardSchemeFactory implements SchemeFactory { + public getImageVersionVirtConfig_argsStandardScheme getScheme() { + return new getImageVersionVirtConfig_argsStandardScheme(); } } - private static class setImageOwner_argsStandardScheme extends StandardScheme { + private static class getImageVersionVirtConfig_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, getImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33275,18 +35936,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // NEW_OWNER_ID + case 2: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.newOwnerId = iprot.readString(); - struct.setNewOwnerIdIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -33302,7 +35955,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, getImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33311,14 +35964,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); - oprot.writeFieldEnd(); - } - if (struct.newOwnerId != null) { - oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); - oprot.writeString(struct.newOwnerId); + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -33327,79 +35975,72 @@ public class SatelliteServer { } - private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { - public setImageOwner_argsTupleScheme getScheme() { - return new setImageOwner_argsTupleScheme(); + private static class getImageVersionVirtConfig_argsTupleSchemeFactory implements SchemeFactory { + public getImageVersionVirtConfig_argsTupleScheme getScheme() { + return new getImageVersionVirtConfig_argsTupleScheme(); } } - private static class setImageOwner_argsTupleScheme extends TupleScheme { + private static class getImageVersionVirtConfig_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, getImageVersionVirtConfig_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.isSetNewOwnerId()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); - } - if (struct.isSetNewOwnerId()) { - oprot.writeString(struct.newOwnerId); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @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, getImageVersionVirtConfig_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.newOwnerId = iprot.readString(); - struct.setNewOwnerIdIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(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 getImageVersionVirtConfig_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("getImageVersionVirtConfig_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageOwner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageVersionVirtConfig_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageVersionVirtConfig_resultTupleSchemeFactory()); } + public ByteBuffer 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"); @@ -33417,6 +36058,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 @@ -33466,6 +36109,8 @@ 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.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -33473,18 +36118,20 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageVersionVirtConfig_result.class, metaDataMap); } - public setImageOwner_result() { + public getImageVersionVirtConfig_result() { } - public setImageOwner_result( + public getImageVersionVirtConfig_result( + ByteBuffer success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) { this(); + this.success = org.apache.thrift.TBaseHelper.copyBinary(success); this.authError = authError; this.notFound = notFound; this.serverError = serverError; @@ -33493,7 +36140,10 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public setImageOwner_result(setImageOwner_result other) { + public getImageVersionVirtConfig_result(getImageVersionVirtConfig_result other) { + if (other.isSetSuccess()) { + this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success); + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -33505,22 +36155,57 @@ public class SatelliteServer { } } - public setImageOwner_result deepCopy() { - return new setImageOwner_result(this); + public getImageVersionVirtConfig_result deepCopy() { + return new getImageVersionVirtConfig_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.notFound = null; this.serverError = null; } + public byte[] getSuccess() { + setSuccess(org.apache.thrift.TBaseHelper.rightSize(success)); + return success == null ? null : success.array(); + } + + public ByteBuffer bufferForSuccess() { + return org.apache.thrift.TBaseHelper.copyBinary(success); + } + + public getImageVersionVirtConfig_result setSuccess(byte[] success) { + this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length)); + return this; + } + + public getImageVersionVirtConfig_result setSuccess(ByteBuffer success) { + this.success = org.apache.thrift.TBaseHelper.copyBinary(success); + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public TAuthorizationException getAuthError() { return this.authError; } - public setImageOwner_result setAuthError(TAuthorizationException authError) { + public getImageVersionVirtConfig_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -33544,7 +36229,7 @@ public class SatelliteServer { return this.notFound; } - public setImageOwner_result setNotFound(TNotFoundException notFound) { + public getImageVersionVirtConfig_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -33568,7 +36253,7 @@ public class SatelliteServer { return this.serverError; } - public setImageOwner_result setServerError(TInvocationException serverError) { + public getImageVersionVirtConfig_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -33590,6 +36275,14 @@ public class SatelliteServer { 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(); @@ -33619,6 +36312,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -33639,6 +36335,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -33653,15 +36351,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageOwner_result) - return this.equals((setImageOwner_result)that); + if (that instanceof getImageVersionVirtConfig_result) + return this.equals((getImageVersionVirtConfig_result)that); return false; } - public boolean equals(setImageOwner_result that) { + public boolean equals(getImageVersionVirtConfig_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) { @@ -33696,6 +36403,11 @@ public class SatelliteServer { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_authError = true && (isSetAuthError()); list.add(present_authError); if (present_authError) @@ -33715,13 +36427,23 @@ public class SatelliteServer { } @Override - public int compareTo(setImageOwner_result other) { + public int compareTo(getImageVersionVirtConfig_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; @@ -33769,9 +36491,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_result("); + StringBuilder sb = new StringBuilder("getImageVersionVirtConfig_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"); @@ -33820,15 +36550,15 @@ public class SatelliteServer { } } - private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { - public setImageOwner_resultStandardScheme getScheme() { - return new setImageOwner_resultStandardScheme(); + private static class getImageVersionVirtConfig_resultStandardSchemeFactory implements SchemeFactory { + public getImageVersionVirtConfig_resultStandardScheme getScheme() { + return new getImageVersionVirtConfig_resultStandardScheme(); } } - private static class setImageOwner_resultStandardScheme extends StandardScheme { + private static class getImageVersionVirtConfig_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, getImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33838,6 +36568,14 @@ 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(); @@ -33876,10 +36614,15 @@ 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, getImageVersionVirtConfig_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); @@ -33901,28 +36644,34 @@ public class SatelliteServer { } - private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { - public setImageOwner_resultTupleScheme getScheme() { - return new setImageOwner_resultTupleScheme(); + private static class getImageVersionVirtConfig_resultTupleSchemeFactory implements SchemeFactory { + public getImageVersionVirtConfig_resultTupleScheme getScheme() { + return new getImageVersionVirtConfig_resultTupleScheme(); } } - private static class setImageOwner_resultTupleScheme extends TupleScheme { + private static class getImageVersionVirtConfig_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, getImageVersionVirtConfig_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.writeBinary(struct.success); + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -33935,20 +36684,24 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { + struct.success = iprot.readBinary(); + 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); @@ -33958,28 +36711,28 @@ public class SatelliteServer { } - 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 setImageVersionVirtConfig_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("setImageVersionVirtConfig_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 org.apache.thrift.protocol.TField META_FIELD_DESC = new org.apache.thrift.protocol.TField("meta", org.apache.thrift.protocol.TType.STRING, (short)3); 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 setImageVersionVirtConfig_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionVirtConfig_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public long expireTime; // required + public String imageVersionId; // required + public ByteBuffer meta; // 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"), + META((short)3, "meta"); private static final Map byName = new HashMap(); @@ -33996,10 +36749,10 @@ 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; + case 3: // META + return META; default: return null; } @@ -34040,67 +36793,64 @@ 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"))); + tmpMap.put(_Fields.META, new org.apache.thrift.meta_data.FieldMetaData("meta", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionVirtConfig_args.class, metaDataMap); } - public setImageVersionExpiry_args() { + public setImageVersionVirtConfig_args() { } - public setImageVersionExpiry_args( + public setImageVersionVirtConfig_args( String userToken, - String imageBaseId, - long expireTime) + String imageVersionId, + ByteBuffer meta) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.expireTime = expireTime; - setExpireTimeIsSet(true); + this.imageVersionId = imageVersionId; + this.meta = org.apache.thrift.TBaseHelper.copyBinary(meta); } /** * Performs a deep copy on other. */ - public setImageVersionExpiry_args(setImageVersionExpiry_args other) { - __isset_bitfield = other.__isset_bitfield; + public setImageVersionVirtConfig_args(setImageVersionVirtConfig_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.isSetMeta()) { + this.meta = org.apache.thrift.TBaseHelper.copyBinary(other.meta); } - this.expireTime = other.expireTime; } - public setImageVersionExpiry_args deepCopy() { - return new setImageVersionExpiry_args(this); + public setImageVersionVirtConfig_args deepCopy() { + return new setImageVersionVirtConfig_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; - setExpireTimeIsSet(false); - this.expireTime = 0; + this.imageVersionId = null; + this.meta = null; } public String getUserToken() { return this.userToken; } - public setImageVersionExpiry_args setUserToken(String userToken) { + public setImageVersionVirtConfig_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -34120,51 +36870,62 @@ 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 setImageVersionVirtConfig_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 byte[] getMeta() { + setMeta(org.apache.thrift.TBaseHelper.rightSize(meta)); + return meta == null ? null : meta.array(); } - public setImageVersionExpiry_args setExpireTime(long expireTime) { - this.expireTime = expireTime; - setExpireTimeIsSet(true); + public ByteBuffer bufferForMeta() { + return org.apache.thrift.TBaseHelper.copyBinary(meta); + } + + public setImageVersionVirtConfig_args setMeta(byte[] meta) { + this.meta = meta == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(meta, meta.length)); return this; } - public void unsetExpireTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); + public setImageVersionVirtConfig_args setMeta(ByteBuffer meta) { + this.meta = org.apache.thrift.TBaseHelper.copyBinary(meta); + return this; } - /** 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 unsetMeta() { + this.meta = null; } - public void setExpireTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value); + /** Returns true if field meta is set (has been assigned a value) and false otherwise */ + public boolean isSetMeta() { + return this.meta != null; + } + + public void setMetaIsSet(boolean value) { + if (!value) { + this.meta = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -34177,19 +36938,19 @@ 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; - case EXPIRE_TIME: + case META: if (value == null) { - unsetExpireTime(); + unsetMeta(); } else { - setExpireTime((Long)value); + setMeta((ByteBuffer)value); } break; @@ -34201,11 +36962,11 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case IMAGE_VERSION_ID: + return getImageVersionId(); - case EXPIRE_TIME: - return getExpireTime(); + case META: + return getMeta(); } throw new IllegalStateException(); @@ -34220,10 +36981,10 @@ 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(); + case META: + return isSetMeta(); } throw new IllegalStateException(); } @@ -34232,12 +36993,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 setImageVersionVirtConfig_args) + return this.equals((setImageVersionVirtConfig_args)that); return false; } - public boolean equals(setImageVersionExpiry_args that) { + public boolean equals(setImageVersionVirtConfig_args that) { if (that == null) return false; @@ -34250,21 +37011,21 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) + boolean this_present_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; } - 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_meta = true && this.isSetMeta(); + boolean that_present_meta = true && that.isSetMeta(); + if (this_present_meta || that_present_meta) { + if (!(this_present_meta && that_present_meta)) return false; - if (this.expireTime != that.expireTime) + if (!this.meta.equals(that.meta)) return false; } @@ -34280,21 +37041,21 @@ public class SatelliteServer { if (present_userToken) list.add(userToken); - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); + boolean present_imageVersionId = true && (isSetImageVersionId()); + list.add(present_imageVersionId); + if (present_imageVersionId) + list.add(imageVersionId); - boolean present_expireTime = true; - list.add(present_expireTime); - if (present_expireTime) - list.add(expireTime); + boolean present_meta = true && (isSetMeta()); + list.add(present_meta); + if (present_meta) + list.add(meta); return list.hashCode(); } @Override - public int compareTo(setImageVersionExpiry_args other) { + public int compareTo(setImageVersionVirtConfig_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -34311,22 +37072,22 @@ 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; } } - lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime()); + lastComparison = Boolean.valueOf(isSetMeta()).compareTo(other.isSetMeta()); if (lastComparison != 0) { return lastComparison; } - if (isSetExpireTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expireTime, other.expireTime); + if (isSetMeta()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.meta, other.meta); if (lastComparison != 0) { return lastComparison; } @@ -34348,7 +37109,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_args("); + StringBuilder sb = new StringBuilder("setImageVersionVirtConfig_args("); boolean first = true; sb.append("userToken:"); @@ -34359,16 +37120,20 @@ 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); + sb.append("meta:"); + if (this.meta == null) { + sb.append("null"); + } else { + org.apache.thrift.TBaseHelper.toString(this.meta, sb); + } first = false; sb.append(")"); return sb.toString(); @@ -34389,23 +37154,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 setImageVersionVirtConfig_argsStandardSchemeFactory implements SchemeFactory { + public setImageVersionVirtConfig_argsStandardScheme getScheme() { + return new setImageVersionVirtConfig_argsStandardScheme(); } } - private static class setImageVersionExpiry_argsStandardScheme extends StandardScheme { + private static class setImageVersionVirtConfig_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, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34423,18 +37186,18 @@ 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: // EXPIRE_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.expireTime = iprot.readI64(); - struct.setExpireTimeIsSet(true); + case 3: // META + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.meta = iprot.readBinary(); + struct.setMetaIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -34450,7 +37213,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, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -34459,55 +37222,57 @@ 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.meta != null) { + oprot.writeFieldBegin(META_FIELD_DESC); + oprot.writeBinary(struct.meta); 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 setImageVersionVirtConfig_argsTupleSchemeFactory implements SchemeFactory { + public setImageVersionVirtConfig_argsTupleScheme getScheme() { + return new setImageVersionVirtConfig_argsTupleScheme(); } } - private static class setImageVersionExpiry_argsTupleScheme extends TupleScheme { + private static class setImageVersionVirtConfig_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, setImageVersionVirtConfig_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()) { + if (struct.isSetMeta()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } - if (struct.isSetExpireTime()) { - oprot.writeI64(struct.expireTime); + if (struct.isSetMeta()) { + oprot.writeBinary(struct.meta); } } @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, setImageVersionVirtConfig_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -34515,43 +37280,43 @@ 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.expireTime = iprot.readI64(); - struct.setExpireTimeIsSet(true); + struct.meta = iprot.readBinary(); + struct.setMetaIsSet(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 setImageVersionVirtConfig_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("setImageVersionVirtConfig_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 setImageVersionVirtConfig_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionVirtConfig_resultTupleSchemeFactory()); } + public ByteBuffer 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(); @@ -34566,14 +37331,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; } @@ -34617,38 +37382,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 , 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.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(setImageVersionVirtConfig_result.class, metaDataMap); } - public setImageVersionExpiry_result() { + public setImageVersionVirtConfig_result() { } - public setImageVersionExpiry_result( + public setImageVersionVirtConfig_result( + ByteBuffer success, TAuthorizationException authError, TNotFoundException notFound, - TInvocationException serverError, - TInvalidDateParam dateError) + TInvocationException serverError) { this(); + this.success = org.apache.thrift.TBaseHelper.copyBinary(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 setImageVersionVirtConfig_result(setImageVersionVirtConfig_result other) { + if (other.isSetSuccess()) { + this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success); + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -34658,28 +37426,59 @@ 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 setImageVersionVirtConfig_result deepCopy() { + return new setImageVersionVirtConfig_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.notFound = null; this.serverError = null; - this.dateError = null; + } + + public byte[] getSuccess() { + setSuccess(org.apache.thrift.TBaseHelper.rightSize(success)); + return success == null ? null : success.array(); + } + + public ByteBuffer bufferForSuccess() { + return org.apache.thrift.TBaseHelper.copyBinary(success); + } + + public setImageVersionVirtConfig_result setSuccess(byte[] success) { + this.success = success == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(success, success.length)); + return this; + } + + public setImageVersionVirtConfig_result setSuccess(ByteBuffer success) { + this.success = org.apache.thrift.TBaseHelper.copyBinary(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 setImageVersionVirtConfig_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -34703,7 +37502,7 @@ public class SatelliteServer { return this.notFound; } - public setImageVersionExpiry_result setNotFound(TNotFoundException notFound) { + public setImageVersionVirtConfig_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -34727,7 +37526,7 @@ public class SatelliteServer { return this.serverError; } - public setImageVersionExpiry_result setServerError(TInvocationException serverError) { + public setImageVersionVirtConfig_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -34747,32 +37546,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((ByteBuffer)value); + } + break; + case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -34797,19 +37580,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(); @@ -34819,9 +37597,6 @@ public class SatelliteServer { case SERVER_ERROR: return getServerError(); - case DATE_ERROR: - return getDateError(); - } throw new IllegalStateException(); } @@ -34833,14 +37608,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(); } @@ -34849,15 +37624,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 setImageVersionVirtConfig_result) + return this.equals((setImageVersionVirtConfig_result)that); return false; } - public boolean equals(setImageVersionExpiry_result that) { + public boolean equals(setImageVersionVirtConfig_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) { @@ -34885,15 +37669,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; } @@ -34901,6 +37676,11 @@ public class SatelliteServer { public int hashCode() { List list = new ArrayList(); + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + boolean present_authError = true && (isSetAuthError()); list.add(present_authError); if (present_authError) @@ -34916,22 +37696,27 @@ public class SatelliteServer { if (present_serverError) list.add(serverError); - boolean present_dateError = true && (isSetDateError()); - list.add(present_dateError); - if (present_dateError) - list.add(dateError); - return list.hashCode(); } @Override - public int compareTo(setImageVersionExpiry_result other) { + public int compareTo(setImageVersionVirtConfig_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; @@ -34962,16 +37747,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; } @@ -34989,9 +37764,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_result("); + StringBuilder sb = new StringBuilder("setImageVersionVirtConfig_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"); @@ -35015,14 +37798,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(); } @@ -35048,15 +37823,15 @@ public class SatelliteServer { } } - private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_resultStandardScheme getScheme() { - return new setImageVersionExpiry_resultStandardScheme(); + private static class setImageVersionVirtConfig_resultStandardSchemeFactory implements SchemeFactory { + public setImageVersionVirtConfig_resultStandardScheme getScheme() { + return new setImageVersionVirtConfig_resultStandardScheme(); } } - private static class setImageVersionExpiry_resultStandardScheme extends StandardScheme { + private static class setImageVersionVirtConfig_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, setImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -35066,6 +37841,14 @@ 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(); @@ -35093,15 +37876,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); } @@ -35113,10 +37887,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, setImageVersionVirtConfig_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); @@ -35132,42 +37911,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 setImageVersionVirtConfig_resultTupleSchemeFactory implements SchemeFactory { + public setImageVersionVirtConfig_resultTupleScheme getScheme() { + return new setImageVersionVirtConfig_resultTupleScheme(); } } - private static class setImageVersionExpiry_resultTupleScheme extends TupleScheme { + private static class setImageVersionVirtConfig_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, setImageVersionVirtConfig_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.writeBinary(struct.success); + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -35177,35 +37954,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, setImageVersionVirtConfig_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); 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(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); - } } } diff --git a/src/main/java/org/openslx/util/vm/VmwareConfig.java b/src/main/java/org/openslx/util/vm/VmwareConfig.java index 18b60df..aa82419 100644 --- a/src/main/java/org/openslx/util/vm/VmwareConfig.java +++ b/src/main/java/org/openslx/util/vm/VmwareConfig.java @@ -75,17 +75,8 @@ public class VmwareConfig private void init( byte[] vmxContent, int length ) { - String csName = detectCharset( new ByteArrayInputStream( vmxContent, 0, length ) ); - Charset cs = null; try { - cs = Charset.forName( csName ); - } catch ( Exception e ) { - LOGGER.warn( "Could not instantiate charset " + csName, e ); - } - if ( cs == null ) - cs = StandardCharsets.ISO_8859_1; - try { - BufferedReader reader = new BufferedReader( new InputStreamReader( new ByteArrayInputStream( vmxContent, 0, length ), cs ) ); + BufferedReader reader = getVmxReader( vmxContent, length ); String line; while ( ( line = reader.readLine() ) != null ) { KeyValuePair entry = parse( line ); @@ -98,6 +89,20 @@ public class VmwareConfig } } + public static BufferedReader getVmxReader( byte[] vmxContent, int length ) throws IOException { + String csName = detectCharset( new ByteArrayInputStream( vmxContent, 0, length ) ); + Charset cs = null; + try { + cs = Charset.forName( csName ); + } catch ( Exception e ) { + LOGGER.warn( "Could not instantiate charset " + csName, e ); + } + if ( cs == null ) + cs = StandardCharsets.ISO_8859_1; + return new BufferedReader( new InputStreamReader( new ByteArrayInputStream( vmxContent, 0, length ), cs ) ); + + } + private String unescape( String value ) { String ret = value; @@ -110,7 +115,7 @@ public class VmwareConfig return ret; } - private String detectCharset( InputStream is ) + public static String detectCharset( InputStream is ) { try { BufferedReader csDetectReader = new BufferedReader( new InputStreamReader( is, StandardCharsets.ISO_8859_1 ) ); @@ -140,7 +145,7 @@ public class VmwareConfig private static final Pattern settingMatcher2 = Pattern.compile( "^\\s*(#?[a-z0-9\\.\\:_]+)\\s*=\\s*([^\"]*)\\s*$", Pattern.CASE_INSENSITIVE ); - private KeyValuePair parse( String line ) + private static KeyValuePair parse( String line ) { Matcher matcher = settingMatcher1.matcher( line ); if ( !matcher.matches() ) { diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 4985da0..e60574d 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -526,6 +526,14 @@ service SatelliteServer { void setImageVersionExpiry(1: Token userToken, 2: UUID imageBaseId 3: UnixTimestamp expireTime) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError, 4:TInvalidDateParam dateError), + // Get image's VM metadata for the given version + binary getImageVersionVirtConfig(1: Token userToken, 2: UUID imageVersionId) + throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + + // Set image's VM metadata for the given version + binary setImageVersionVirtConfig(1: Token userToken, 2: UUID imageVersionId, 3: binary meta) + throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Client asks server to replicate an image from the master server UUID requestImageReplication(1:Token userToken, 2: UUID imageVersionId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), -- cgit v1.2.3-55-g7522