summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java1638
1 files changed, 1367 insertions, 271 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 53bfd52..517614e 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 = "2018-05-11")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2018-11-23")
public class SatelliteServer {
public interface Iface {
@@ -127,6 +127,8 @@ public class SatelliteServer {
public void setLectureOwner(String userToken, String lectureId, String newOwnerId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException;
+ public PredefinedData getPredefinedData(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException;
+
}
public interface AsyncIface {
@@ -219,6 +221,8 @@ public class SatelliteServer {
public void setLectureOwner(String userToken, String lectureId, String newOwnerId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+ public void getPredefinedData(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
+
}
public static class Client extends org.apache.thrift.TServiceClient implements Iface {
@@ -1521,6 +1525,35 @@ public class SatelliteServer {
return;
}
+ public PredefinedData getPredefinedData(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ {
+ send_getPredefinedData(userToken);
+ return recv_getPredefinedData();
+ }
+
+ public void send_getPredefinedData(String userToken) throws org.apache.thrift.TException
+ {
+ getPredefinedData_args args = new getPredefinedData_args();
+ args.setUserToken(userToken);
+ sendBase("getPredefinedData", args);
+ }
+
+ public PredefinedData recv_getPredefinedData() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException
+ {
+ getPredefinedData_result result = new getPredefinedData_result();
+ receiveBase(result, "getPredefinedData");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.authError != null) {
+ throw result.authError;
+ }
+ if (result.serverError != null) {
+ throw result.serverError;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPredefinedData failed: unknown result");
+ }
+
}
public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
@@ -3058,6 +3091,38 @@ public class SatelliteServer {
}
}
+ public void getPredefinedData(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getPredefinedData_call method_call = new getPredefinedData_call(userToken, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getPredefinedData_call extends org.apache.thrift.async.TAsyncMethodCall {
+ private String userToken;
+ public getPredefinedData_call(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.userToken = userToken;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPredefinedData", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getPredefinedData_args args = new getPredefinedData_args();
+ args.setUserToken(userToken);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public PredefinedData getResult() throws TAuthorizationException, 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_getPredefinedData();
+ }
+ }
+
}
public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
@@ -3115,6 +3180,7 @@ public class SatelliteServer {
processMap.put("writeLecturePermissions", new writeLecturePermissions());
processMap.put("getLecturePermissions", new getLecturePermissions());
processMap.put("setLectureOwner", new setLectureOwner());
+ processMap.put("getPredefinedData", new getPredefinedData());
return processMap;
}
@@ -4261,6 +4327,32 @@ public class SatelliteServer {
}
}
+ public static class getPredefinedData<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPredefinedData_args> {
+ public getPredefinedData() {
+ super("getPredefinedData");
+ }
+
+ public getPredefinedData_args getEmptyArgsInstance() {
+ return new getPredefinedData_args();
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public getPredefinedData_result getResult(I iface, getPredefinedData_args args) throws org.apache.thrift.TException {
+ getPredefinedData_result result = new getPredefinedData_result();
+ try {
+ result.success = iface.getPredefinedData(args.userToken);
+ } catch (TAuthorizationException authError) {
+ result.authError = authError;
+ } catch (TInvocationException serverError) {
+ result.serverError = serverError;
+ }
+ return result;
+ }
+ }
+
}
public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
@@ -4318,6 +4410,7 @@ public class SatelliteServer {
processMap.put("writeLecturePermissions", new writeLecturePermissions());
processMap.put("getLecturePermissions", new getLecturePermissions());
processMap.put("setLectureOwner", new setLectureOwner());
+ processMap.put("getPredefinedData", new getPredefinedData());
return processMap;
}
@@ -7059,6 +7152,68 @@ public class SatelliteServer {
}
}
+ public static class getPredefinedData<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getPredefinedData_args, PredefinedData> {
+ public getPredefinedData() {
+ super("getPredefinedData");
+ }
+
+ public getPredefinedData_args getEmptyArgsInstance() {
+ return new getPredefinedData_args();
+ }
+
+ public AsyncMethodCallback<PredefinedData> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new AsyncMethodCallback<PredefinedData>() {
+ public void onComplete(PredefinedData o) {
+ getPredefinedData_result result = new getPredefinedData_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;
+ getPredefinedData_result result = new getPredefinedData_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
+ {
+ 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, getPredefinedData_args args, org.apache.thrift.async.AsyncMethodCallback<PredefinedData> resultHandler) throws TException {
+ iface.getPredefinedData(args.userToken,resultHandler);
+ }
+ }
+
}
public static class getVersion_args implements org.apache.thrift.TBase<getVersion_args, getVersion_args._Fields>, java.io.Serializable, Cloneable, Comparable<getVersion_args> {
@@ -9679,13 +9834,13 @@ public class SatelliteServer {
case 4: // BLOCK_HASHES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list186 = iprot.readListBegin();
- struct.blockHashes = new ArrayList<ByteBuffer>(_list186.size);
- ByteBuffer _elem187;
- for (int _i188 = 0; _i188 < _list186.size; ++_i188)
+ org.apache.thrift.protocol.TList _list218 = iprot.readListBegin();
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list218.size);
+ ByteBuffer _elem219;
+ for (int _i220 = 0; _i220 < _list218.size; ++_i220)
{
- _elem187 = iprot.readBinary();
- struct.blockHashes.add(_elem187);
+ _elem219 = iprot.readBinary();
+ struct.blockHashes.add(_elem219);
}
iprot.readListEnd();
}
@@ -9734,9 +9889,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size()));
- for (ByteBuffer _iter189 : struct.blockHashes)
+ for (ByteBuffer _iter221 : struct.blockHashes)
{
- oprot.writeBinary(_iter189);
+ oprot.writeBinary(_iter221);
}
oprot.writeListEnd();
}
@@ -9793,9 +9948,9 @@ public class SatelliteServer {
if (struct.isSetBlockHashes()) {
{
oprot.writeI32(struct.blockHashes.size());
- for (ByteBuffer _iter190 : struct.blockHashes)
+ for (ByteBuffer _iter222 : struct.blockHashes)
{
- oprot.writeBinary(_iter190);
+ oprot.writeBinary(_iter222);
}
}
}
@@ -9822,13 +9977,13 @@ public class SatelliteServer {
}
if (incoming.get(3)) {
{
- org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.blockHashes = new ArrayList<ByteBuffer>(_list191.size);
- ByteBuffer _elem192;
- for (int _i193 = 0; _i193 < _list191.size; ++_i193)
+ org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list223.size);
+ ByteBuffer _elem224;
+ for (int _i225 = 0; _i225 < _list223.size; ++_i225)
{
- _elem192 = iprot.readBinary();
- struct.blockHashes.add(_elem192);
+ _elem224 = iprot.readBinary();
+ struct.blockHashes.add(_elem224);
}
}
struct.setBlockHashesIsSet(true);
@@ -11121,13 +11276,13 @@ public class SatelliteServer {
case 2: // BLOCK_HASHES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list194 = iprot.readListBegin();
- struct.blockHashes = new ArrayList<ByteBuffer>(_list194.size);
- ByteBuffer _elem195;
- for (int _i196 = 0; _i196 < _list194.size; ++_i196)
+ org.apache.thrift.protocol.TList _list226 = iprot.readListBegin();
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list226.size);
+ ByteBuffer _elem227;
+ for (int _i228 = 0; _i228 < _list226.size; ++_i228)
{
- _elem195 = iprot.readBinary();
- struct.blockHashes.add(_elem195);
+ _elem227 = iprot.readBinary();
+ struct.blockHashes.add(_elem227);
}
iprot.readListEnd();
}
@@ -11168,9 +11323,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size()));
- for (ByteBuffer _iter197 : struct.blockHashes)
+ for (ByteBuffer _iter229 : struct.blockHashes)
{
- oprot.writeBinary(_iter197);
+ oprot.writeBinary(_iter229);
}
oprot.writeListEnd();
}
@@ -11215,9 +11370,9 @@ public class SatelliteServer {
if (struct.isSetBlockHashes()) {
{
oprot.writeI32(struct.blockHashes.size());
- for (ByteBuffer _iter198 : struct.blockHashes)
+ for (ByteBuffer _iter230 : struct.blockHashes)
{
- oprot.writeBinary(_iter198);
+ oprot.writeBinary(_iter230);
}
}
}
@@ -11236,13 +11391,13 @@ public class SatelliteServer {
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.blockHashes = new ArrayList<ByteBuffer>(_list199.size);
- ByteBuffer _elem200;
- for (int _i201 = 0; _i201 < _list199.size; ++_i201)
+ org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.blockHashes = new ArrayList<ByteBuffer>(_list231.size);
+ ByteBuffer _elem232;
+ for (int _i233 = 0; _i233 < _list231.size; ++_i233)
{
- _elem200 = iprot.readBinary();
- struct.blockHashes.add(_elem200);
+ _elem232 = iprot.readBinary();
+ struct.blockHashes.add(_elem232);
}
}
struct.setBlockHashesIsSet(true);
@@ -19757,14 +19912,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list202 = iprot.readListBegin();
- struct.success = new ArrayList<UserInfo>(_list202.size);
- UserInfo _elem203;
- for (int _i204 = 0; _i204 < _list202.size; ++_i204)
+ org.apache.thrift.protocol.TList _list234 = iprot.readListBegin();
+ struct.success = new ArrayList<UserInfo>(_list234.size);
+ UserInfo _elem235;
+ for (int _i236 = 0; _i236 < _list234.size; ++_i236)
{
- _elem203 = new UserInfo();
- _elem203.read(iprot);
- struct.success.add(_elem203);
+ _elem235 = new UserInfo();
+ _elem235.read(iprot);
+ struct.success.add(_elem235);
}
iprot.readListEnd();
}
@@ -19810,9 +19965,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (UserInfo _iter205 : struct.success)
+ for (UserInfo _iter237 : struct.success)
{
- _iter205.write(oprot);
+ _iter237.write(oprot);
}
oprot.writeListEnd();
}
@@ -19859,9 +20014,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (UserInfo _iter206 : struct.success)
+ for (UserInfo _iter238 : struct.success)
{
- _iter206.write(oprot);
+ _iter238.write(oprot);
}
}
}
@@ -19879,14 +20034,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<UserInfo>(_list207.size);
- UserInfo _elem208;
- for (int _i209 = 0; _i209 < _list207.size; ++_i209)
+ org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<UserInfo>(_list239.size);
+ UserInfo _elem240;
+ for (int _i241 = 0; _i241 < _list239.size; ++_i241)
{
- _elem208 = new UserInfo();
- _elem208.read(iprot);
- struct.success.add(_elem208);
+ _elem240 = new UserInfo();
+ _elem240.read(iprot);
+ struct.success.add(_elem240);
}
}
struct.setSuccessIsSet(true);
@@ -22352,14 +22507,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list210 = iprot.readListBegin();
- struct.success = new ArrayList<OperatingSystem>(_list210.size);
- OperatingSystem _elem211;
- for (int _i212 = 0; _i212 < _list210.size; ++_i212)
+ org.apache.thrift.protocol.TList _list242 = iprot.readListBegin();
+ struct.success = new ArrayList<OperatingSystem>(_list242.size);
+ OperatingSystem _elem243;
+ for (int _i244 = 0; _i244 < _list242.size; ++_i244)
{
- _elem211 = new OperatingSystem();
- _elem211.read(iprot);
- struct.success.add(_elem211);
+ _elem243 = new OperatingSystem();
+ _elem243.read(iprot);
+ struct.success.add(_elem243);
}
iprot.readListEnd();
}
@@ -22387,9 +22542,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (OperatingSystem _iter213 : struct.success)
+ for (OperatingSystem _iter245 : struct.success)
{
- _iter213.write(oprot);
+ _iter245.write(oprot);
}
oprot.writeListEnd();
}
@@ -22420,9 +22575,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (OperatingSystem _iter214 : struct.success)
+ for (OperatingSystem _iter246 : struct.success)
{
- _iter214.write(oprot);
+ _iter246.write(oprot);
}
}
}
@@ -22434,14 +22589,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<OperatingSystem>(_list215.size);
- OperatingSystem _elem216;
- for (int _i217 = 0; _i217 < _list215.size; ++_i217)
+ org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<OperatingSystem>(_list247.size);
+ OperatingSystem _elem248;
+ for (int _i249 = 0; _i249 < _list247.size; ++_i249)
{
- _elem216 = new OperatingSystem();
- _elem216.read(iprot);
- struct.success.add(_elem216);
+ _elem248 = new OperatingSystem();
+ _elem248.read(iprot);
+ struct.success.add(_elem248);
}
}
struct.setSuccessIsSet(true);
@@ -23015,14 +23170,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list218 = iprot.readListBegin();
- struct.success = new ArrayList<Virtualizer>(_list218.size);
- Virtualizer _elem219;
- for (int _i220 = 0; _i220 < _list218.size; ++_i220)
+ org.apache.thrift.protocol.TList _list250 = iprot.readListBegin();
+ struct.success = new ArrayList<Virtualizer>(_list250.size);
+ Virtualizer _elem251;
+ for (int _i252 = 0; _i252 < _list250.size; ++_i252)
{
- _elem219 = new Virtualizer();
- _elem219.read(iprot);
- struct.success.add(_elem219);
+ _elem251 = new Virtualizer();
+ _elem251.read(iprot);
+ struct.success.add(_elem251);
}
iprot.readListEnd();
}
@@ -23050,9 +23205,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Virtualizer _iter221 : struct.success)
+ for (Virtualizer _iter253 : struct.success)
{
- _iter221.write(oprot);
+ _iter253.write(oprot);
}
oprot.writeListEnd();
}
@@ -23083,9 +23238,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Virtualizer _iter222 : struct.success)
+ for (Virtualizer _iter254 : struct.success)
{
- _iter222.write(oprot);
+ _iter254.write(oprot);
}
}
}
@@ -23097,14 +23252,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Virtualizer>(_list223.size);
- Virtualizer _elem224;
- for (int _i225 = 0; _i225 < _list223.size; ++_i225)
+ org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Virtualizer>(_list255.size);
+ Virtualizer _elem256;
+ for (int _i257 = 0; _i257 < _list255.size; ++_i257)
{
- _elem224 = new Virtualizer();
- _elem224.read(iprot);
- struct.success.add(_elem224);
+ _elem256 = new Virtualizer();
+ _elem256.read(iprot);
+ struct.success.add(_elem256);
}
}
struct.setSuccessIsSet(true);
@@ -23678,14 +23833,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list226 = iprot.readListBegin();
- struct.success = new ArrayList<Organization>(_list226.size);
- Organization _elem227;
- for (int _i228 = 0; _i228 < _list226.size; ++_i228)
+ org.apache.thrift.protocol.TList _list258 = iprot.readListBegin();
+ struct.success = new ArrayList<Organization>(_list258.size);
+ Organization _elem259;
+ for (int _i260 = 0; _i260 < _list258.size; ++_i260)
{
- _elem227 = new Organization();
- _elem227.read(iprot);
- struct.success.add(_elem227);
+ _elem259 = new Organization();
+ _elem259.read(iprot);
+ struct.success.add(_elem259);
}
iprot.readListEnd();
}
@@ -23713,9 +23868,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Organization _iter229 : struct.success)
+ for (Organization _iter261 : struct.success)
{
- _iter229.write(oprot);
+ _iter261.write(oprot);
}
oprot.writeListEnd();
}
@@ -23746,9 +23901,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Organization _iter230 : struct.success)
+ for (Organization _iter262 : struct.success)
{
- _iter230.write(oprot);
+ _iter262.write(oprot);
}
}
}
@@ -23760,14 +23915,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list231 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Organization>(_list231.size);
- Organization _elem232;
- for (int _i233 = 0; _i233 < _list231.size; ++_i233)
+ org.apache.thrift.protocol.TList _list263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Organization>(_list263.size);
+ Organization _elem264;
+ for (int _i265 = 0; _i265 < _list263.size; ++_i265)
{
- _elem232 = new Organization();
- _elem232.read(iprot);
- struct.success.add(_elem232);
+ _elem264 = new Organization();
+ _elem264.read(iprot);
+ struct.success.add(_elem264);
}
}
struct.setSuccessIsSet(true);
@@ -24341,14 +24496,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list234 = iprot.readListBegin();
- struct.success = new ArrayList<Location>(_list234.size);
- Location _elem235;
- for (int _i236 = 0; _i236 < _list234.size; ++_i236)
+ org.apache.thrift.protocol.TList _list266 = iprot.readListBegin();
+ struct.success = new ArrayList<Location>(_list266.size);
+ Location _elem267;
+ for (int _i268 = 0; _i268 < _list266.size; ++_i268)
{
- _elem235 = new Location();
- _elem235.read(iprot);
- struct.success.add(_elem235);
+ _elem267 = new Location();
+ _elem267.read(iprot);
+ struct.success.add(_elem267);
}
iprot.readListEnd();
}
@@ -24376,9 +24531,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Location _iter237 : struct.success)
+ for (Location _iter269 : struct.success)
{
- _iter237.write(oprot);
+ _iter269.write(oprot);
}
oprot.writeListEnd();
}
@@ -24409,9 +24564,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Location _iter238 : struct.success)
+ for (Location _iter270 : struct.success)
{
- _iter238.write(oprot);
+ _iter270.write(oprot);
}
}
}
@@ -24423,14 +24578,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<Location>(_list239.size);
- Location _elem240;
- for (int _i241 = 0; _i241 < _list239.size; ++_i241)
+ org.apache.thrift.protocol.TList _list271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<Location>(_list271.size);
+ Location _elem272;
+ for (int _i273 = 0; _i273 < _list271.size; ++_i273)
{
- _elem240 = new Location();
- _elem240.read(iprot);
- struct.success.add(_elem240);
+ _elem272 = new Location();
+ _elem272.read(iprot);
+ struct.success.add(_elem272);
}
}
struct.setSuccessIsSet(true);
@@ -25539,13 +25694,13 @@ public class SatelliteServer {
case 2: // TAG_SEARCH
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list242 = iprot.readListBegin();
- struct.tagSearch = new ArrayList<String>(_list242.size);
- String _elem243;
- for (int _i244 = 0; _i244 < _list242.size; ++_i244)
+ org.apache.thrift.protocol.TList _list274 = iprot.readListBegin();
+ struct.tagSearch = new ArrayList<String>(_list274.size);
+ String _elem275;
+ for (int _i276 = 0; _i276 < _list274.size; ++_i276)
{
- _elem243 = iprot.readString();
- struct.tagSearch.add(_elem243);
+ _elem275 = iprot.readString();
+ struct.tagSearch.add(_elem275);
}
iprot.readListEnd();
}
@@ -25586,9 +25741,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(TAG_SEARCH_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tagSearch.size()));
- for (String _iter245 : struct.tagSearch)
+ for (String _iter277 : struct.tagSearch)
{
- oprot.writeString(_iter245);
+ oprot.writeString(_iter277);
}
oprot.writeListEnd();
}
@@ -25631,9 +25786,9 @@ public class SatelliteServer {
if (struct.isSetTagSearch()) {
{
oprot.writeI32(struct.tagSearch.size());
- for (String _iter246 : struct.tagSearch)
+ for (String _iter278 : struct.tagSearch)
{
- oprot.writeString(_iter246);
+ oprot.writeString(_iter278);
}
}
}
@@ -25652,13 +25807,13 @@ public class SatelliteServer {
}
if (incoming.get(1)) {
{
- org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
- struct.tagSearch = new ArrayList<String>(_list247.size);
- String _elem248;
- for (int _i249 = 0; _i249 < _list247.size; ++_i249)
+ org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
+ struct.tagSearch = new ArrayList<String>(_list279.size);
+ String _elem280;
+ for (int _i281 = 0; _i281 < _list279.size; ++_i281)
{
- _elem248 = iprot.readString();
- struct.tagSearch.add(_elem248);
+ _elem280 = iprot.readString();
+ struct.tagSearch.add(_elem280);
}
}
struct.setTagSearchIsSet(true);
@@ -26152,14 +26307,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list250 = iprot.readListBegin();
- struct.success = new ArrayList<ImageSummaryRead>(_list250.size);
- ImageSummaryRead _elem251;
- for (int _i252 = 0; _i252 < _list250.size; ++_i252)
+ org.apache.thrift.protocol.TList _list282 = iprot.readListBegin();
+ struct.success = new ArrayList<ImageSummaryRead>(_list282.size);
+ ImageSummaryRead _elem283;
+ for (int _i284 = 0; _i284 < _list282.size; ++_i284)
{
- _elem251 = new ImageSummaryRead();
- _elem251.read(iprot);
- struct.success.add(_elem251);
+ _elem283 = new ImageSummaryRead();
+ _elem283.read(iprot);
+ struct.success.add(_elem283);
}
iprot.readListEnd();
}
@@ -26205,9 +26360,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (ImageSummaryRead _iter253 : struct.success)
+ for (ImageSummaryRead _iter285 : struct.success)
{
- _iter253.write(oprot);
+ _iter285.write(oprot);
}
oprot.writeListEnd();
}
@@ -26254,9 +26409,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (ImageSummaryRead _iter254 : struct.success)
+ for (ImageSummaryRead _iter286 : struct.success)
{
- _iter254.write(oprot);
+ _iter286.write(oprot);
}
}
}
@@ -26274,14 +26429,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<ImageSummaryRead>(_list255.size);
- ImageSummaryRead _elem256;
- for (int _i257 = 0; _i257 < _list255.size; ++_i257)
+ org.apache.thrift.protocol.TList _list287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<ImageSummaryRead>(_list287.size);
+ ImageSummaryRead _elem288;
+ for (int _i289 = 0; _i289 < _list287.size; ++_i289)
{
- _elem256 = new ImageSummaryRead();
- _elem256.read(iprot);
- struct.success.add(_elem256);
+ _elem288 = new ImageSummaryRead();
+ _elem288.read(iprot);
+ struct.success.add(_elem288);
}
}
struct.setSuccessIsSet(true);
@@ -33388,16 +33543,16 @@ public class SatelliteServer {
case 3: // PERMISSIONS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map258 = iprot.readMapBegin();
- struct.permissions = new HashMap<String,ImagePermissions>(2*_map258.size);
- String _key259;
- ImagePermissions _val260;
- for (int _i261 = 0; _i261 < _map258.size; ++_i261)
+ org.apache.thrift.protocol.TMap _map290 = iprot.readMapBegin();
+ struct.permissions = new HashMap<String,ImagePermissions>(2*_map290.size);
+ String _key291;
+ ImagePermissions _val292;
+ for (int _i293 = 0; _i293 < _map290.size; ++_i293)
{
- _key259 = iprot.readString();
- _val260 = new ImagePermissions();
- _val260.read(iprot);
- struct.permissions.put(_key259, _val260);
+ _key291 = iprot.readString();
+ _val292 = new ImagePermissions();
+ _val292.read(iprot);
+ struct.permissions.put(_key291, _val292);
}
iprot.readMapEnd();
}
@@ -33435,10 +33590,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size()));
- for (Map.Entry<String, ImagePermissions> _iter262 : struct.permissions.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter294 : struct.permissions.entrySet())
{
- oprot.writeString(_iter262.getKey());
- _iter262.getValue().write(oprot);
+ oprot.writeString(_iter294.getKey());
+ _iter294.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -33481,10 +33636,10 @@ public class SatelliteServer {
if (struct.isSetPermissions()) {
{
oprot.writeI32(struct.permissions.size());
- for (Map.Entry<String, ImagePermissions> _iter263 : struct.permissions.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter295 : struct.permissions.entrySet())
{
- oprot.writeString(_iter263.getKey());
- _iter263.getValue().write(oprot);
+ oprot.writeString(_iter295.getKey());
+ _iter295.getValue().write(oprot);
}
}
}
@@ -33504,16 +33659,16 @@ public class SatelliteServer {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TMap _map264 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.permissions = new HashMap<String,ImagePermissions>(2*_map264.size);
- String _key265;
- ImagePermissions _val266;
- for (int _i267 = 0; _i267 < _map264.size; ++_i267)
+ org.apache.thrift.protocol.TMap _map296 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.permissions = new HashMap<String,ImagePermissions>(2*_map296.size);
+ String _key297;
+ ImagePermissions _val298;
+ for (int _i299 = 0; _i299 < _map296.size; ++_i299)
{
- _key265 = iprot.readString();
- _val266 = new ImagePermissions();
- _val266.read(iprot);
- struct.permissions.put(_key265, _val266);
+ _key297 = iprot.readString();
+ _val298 = new ImagePermissions();
+ _val298.read(iprot);
+ struct.permissions.put(_key297, _val298);
}
}
struct.setPermissionsIsSet(true);
@@ -35133,16 +35288,16 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map268 = iprot.readMapBegin();
- struct.success = new HashMap<String,ImagePermissions>(2*_map268.size);
- String _key269;
- ImagePermissions _val270;
- for (int _i271 = 0; _i271 < _map268.size; ++_i271)
+ org.apache.thrift.protocol.TMap _map300 = iprot.readMapBegin();
+ struct.success = new HashMap<String,ImagePermissions>(2*_map300.size);
+ String _key301;
+ ImagePermissions _val302;
+ for (int _i303 = 0; _i303 < _map300.size; ++_i303)
{
- _key269 = iprot.readString();
- _val270 = new ImagePermissions();
- _val270.read(iprot);
- struct.success.put(_key269, _val270);
+ _key301 = iprot.readString();
+ _val302 = new ImagePermissions();
+ _val302.read(iprot);
+ struct.success.put(_key301, _val302);
}
iprot.readMapEnd();
}
@@ -35197,10 +35352,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Map.Entry<String, ImagePermissions> _iter272 : struct.success.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter304 : struct.success.entrySet())
{
- oprot.writeString(_iter272.getKey());
- _iter272.getValue().write(oprot);
+ oprot.writeString(_iter304.getKey());
+ _iter304.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -35255,10 +35410,10 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, ImagePermissions> _iter273 : struct.success.entrySet())
+ for (Map.Entry<String, ImagePermissions> _iter305 : struct.success.entrySet())
{
- oprot.writeString(_iter273.getKey());
- _iter273.getValue().write(oprot);
+ oprot.writeString(_iter305.getKey());
+ _iter305.getValue().write(oprot);
}
}
}
@@ -35279,16 +35434,16 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map274 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new HashMap<String,ImagePermissions>(2*_map274.size);
- String _key275;
- ImagePermissions _val276;
- for (int _i277 = 0; _i277 < _map274.size; ++_i277)
+ org.apache.thrift.protocol.TMap _map306 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new HashMap<String,ImagePermissions>(2*_map306.size);
+ String _key307;
+ ImagePermissions _val308;
+ for (int _i309 = 0; _i309 < _map306.size; ++_i309)
{
- _key275 = iprot.readString();
- _val276 = new ImagePermissions();
- _val276.read(iprot);
- struct.success.put(_key275, _val276);
+ _key307 = iprot.readString();
+ _val308 = new ImagePermissions();
+ _val308.read(iprot);
+ struct.success.put(_key307, _val308);
}
}
struct.setSuccessIsSet(true);
@@ -45897,14 +46052,14 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
- org.apache.thrift.protocol.TList _list278 = iprot.readListBegin();
- struct.success = new ArrayList<LectureSummary>(_list278.size);
- LectureSummary _elem279;
- for (int _i280 = 0; _i280 < _list278.size; ++_i280)
+ org.apache.thrift.protocol.TList _list310 = iprot.readListBegin();
+ struct.success = new ArrayList<LectureSummary>(_list310.size);
+ LectureSummary _elem311;
+ for (int _i312 = 0; _i312 < _list310.size; ++_i312)
{
- _elem279 = new LectureSummary();
- _elem279.read(iprot);
- struct.success.add(_elem279);
+ _elem311 = new LectureSummary();
+ _elem311.read(iprot);
+ struct.success.add(_elem311);
}
iprot.readListEnd();
}
@@ -45950,9 +46105,9 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (LectureSummary _iter281 : struct.success)
+ for (LectureSummary _iter313 : struct.success)
{
- _iter281.write(oprot);
+ _iter313.write(oprot);
}
oprot.writeListEnd();
}
@@ -45999,9 +46154,9 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (LectureSummary _iter282 : struct.success)
+ for (LectureSummary _iter314 : struct.success)
{
- _iter282.write(oprot);
+ _iter314.write(oprot);
}
}
}
@@ -46019,14 +46174,14 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(3);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new ArrayList<LectureSummary>(_list283.size);
- LectureSummary _elem284;
- for (int _i285 = 0; _i285 < _list283.size; ++_i285)
+ org.apache.thrift.protocol.TList _list315 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new ArrayList<LectureSummary>(_list315.size);
+ LectureSummary _elem316;
+ for (int _i317 = 0; _i317 < _list315.size; ++_i317)
{
- _elem284 = new LectureSummary();
- _elem284.read(iprot);
- struct.success.add(_elem284);
+ _elem316 = new LectureSummary();
+ _elem316.read(iprot);
+ struct.success.add(_elem316);
}
}
struct.setSuccessIsSet(true);
@@ -48743,16 +48898,16 @@ public class SatelliteServer {
case 3: // PERMISSIONS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map286 = iprot.readMapBegin();
- struct.permissions = new HashMap<String,LecturePermissions>(2*_map286.size);
- String _key287;
- LecturePermissions _val288;
- for (int _i289 = 0; _i289 < _map286.size; ++_i289)
+ org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin();
+ struct.permissions = new HashMap<String,LecturePermissions>(2*_map318.size);
+ String _key319;
+ LecturePermissions _val320;
+ for (int _i321 = 0; _i321 < _map318.size; ++_i321)
{
- _key287 = iprot.readString();
- _val288 = new LecturePermissions();
- _val288.read(iprot);
- struct.permissions.put(_key287, _val288);
+ _key319 = iprot.readString();
+ _val320 = new LecturePermissions();
+ _val320.read(iprot);
+ struct.permissions.put(_key319, _val320);
}
iprot.readMapEnd();
}
@@ -48790,10 +48945,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size()));
- for (Map.Entry<String, LecturePermissions> _iter290 : struct.permissions.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter322 : struct.permissions.entrySet())
{
- oprot.writeString(_iter290.getKey());
- _iter290.getValue().write(oprot);
+ oprot.writeString(_iter322.getKey());
+ _iter322.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -48836,10 +48991,10 @@ public class SatelliteServer {
if (struct.isSetPermissions()) {
{
oprot.writeI32(struct.permissions.size());
- for (Map.Entry<String, LecturePermissions> _iter291 : struct.permissions.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter323 : struct.permissions.entrySet())
{
- oprot.writeString(_iter291.getKey());
- _iter291.getValue().write(oprot);
+ oprot.writeString(_iter323.getKey());
+ _iter323.getValue().write(oprot);
}
}
}
@@ -48859,16 +49014,16 @@ public class SatelliteServer {
}
if (incoming.get(2)) {
{
- org.apache.thrift.protocol.TMap _map292 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.permissions = new HashMap<String,LecturePermissions>(2*_map292.size);
- String _key293;
- LecturePermissions _val294;
- for (int _i295 = 0; _i295 < _map292.size; ++_i295)
+ org.apache.thrift.protocol.TMap _map324 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.permissions = new HashMap<String,LecturePermissions>(2*_map324.size);
+ String _key325;
+ LecturePermissions _val326;
+ for (int _i327 = 0; _i327 < _map324.size; ++_i327)
{
- _key293 = iprot.readString();
- _val294 = new LecturePermissions();
- _val294.read(iprot);
- struct.permissions.put(_key293, _val294);
+ _key325 = iprot.readString();
+ _val326 = new LecturePermissions();
+ _val326.read(iprot);
+ struct.permissions.put(_key325, _val326);
}
}
struct.setPermissionsIsSet(true);
@@ -50488,16 +50643,16 @@ public class SatelliteServer {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
- org.apache.thrift.protocol.TMap _map296 = iprot.readMapBegin();
- struct.success = new HashMap<String,LecturePermissions>(2*_map296.size);
- String _key297;
- LecturePermissions _val298;
- for (int _i299 = 0; _i299 < _map296.size; ++_i299)
+ org.apache.thrift.protocol.TMap _map328 = iprot.readMapBegin();
+ struct.success = new HashMap<String,LecturePermissions>(2*_map328.size);
+ String _key329;
+ LecturePermissions _val330;
+ for (int _i331 = 0; _i331 < _map328.size; ++_i331)
{
- _key297 = iprot.readString();
- _val298 = new LecturePermissions();
- _val298.read(iprot);
- struct.success.put(_key297, _val298);
+ _key329 = iprot.readString();
+ _val330 = new LecturePermissions();
+ _val330.read(iprot);
+ struct.success.put(_key329, _val330);
}
iprot.readMapEnd();
}
@@ -50552,10 +50707,10 @@ public class SatelliteServer {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size()));
- for (Map.Entry<String, LecturePermissions> _iter300 : struct.success.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter332 : struct.success.entrySet())
{
- oprot.writeString(_iter300.getKey());
- _iter300.getValue().write(oprot);
+ oprot.writeString(_iter332.getKey());
+ _iter332.getValue().write(oprot);
}
oprot.writeMapEnd();
}
@@ -50610,10 +50765,10 @@ public class SatelliteServer {
if (struct.isSetSuccess()) {
{
oprot.writeI32(struct.success.size());
- for (Map.Entry<String, LecturePermissions> _iter301 : struct.success.entrySet())
+ for (Map.Entry<String, LecturePermissions> _iter333 : struct.success.entrySet())
{
- oprot.writeString(_iter301.getKey());
- _iter301.getValue().write(oprot);
+ oprot.writeString(_iter333.getKey());
+ _iter333.getValue().write(oprot);
}
}
}
@@ -50634,16 +50789,16 @@ public class SatelliteServer {
BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
{
- org.apache.thrift.protocol.TMap _map302 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
- struct.success = new HashMap<String,LecturePermissions>(2*_map302.size);
- String _key303;
- LecturePermissions _val304;
- for (int _i305 = 0; _i305 < _map302.size; ++_i305)
+ org.apache.thrift.protocol.TMap _map334 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
+ struct.success = new HashMap<String,LecturePermissions>(2*_map334.size);
+ String _key335;
+ LecturePermissions _val336;
+ for (int _i337 = 0; _i337 < _map334.size; ++_i337)
{
- _key303 = iprot.readString();
- _val304 = new LecturePermissions();
- _val304.read(iprot);
- struct.success.put(_key303, _val304);
+ _key335 = iprot.readString();
+ _val336 = new LecturePermissions();
+ _val336.read(iprot);
+ struct.success.put(_key335, _val336);
}
}
struct.setSuccessIsSet(true);
@@ -51816,4 +51971,945 @@ public class SatelliteServer {
}
+ public static class getPredefinedData_args implements org.apache.thrift.TBase<getPredefinedData_args, getPredefinedData_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPredefinedData_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPredefinedData_args");
+
+ private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getPredefinedData_argsStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPredefinedData_argsTupleSchemeFactory());
+ }
+
+ public String userToken; // 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");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ 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;
+ 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")));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPredefinedData_args.class, metaDataMap);
+ }
+
+ public getPredefinedData_args() {
+ }
+
+ public getPredefinedData_args(
+ String userToken)
+ {
+ this();
+ this.userToken = userToken;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getPredefinedData_args(getPredefinedData_args other) {
+ if (other.isSetUserToken()) {
+ this.userToken = other.userToken;
+ }
+ }
+
+ public getPredefinedData_args deepCopy() {
+ return new getPredefinedData_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.userToken = null;
+ }
+
+ public String getUserToken() {
+ return this.userToken;
+ }
+
+ public getPredefinedData_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 void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case USER_TOKEN:
+ if (value == null) {
+ unsetUserToken();
+ } else {
+ setUserToken((String)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case USER_TOKEN:
+ return getUserToken();
+
+ }
+ 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();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getPredefinedData_args)
+ return this.equals((getPredefinedData_args)that);
+ return false;
+ }
+
+ public boolean equals(getPredefinedData_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;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ boolean present_userToken = true && (isSetUserToken());
+ list.add(present_userToken);
+ if (present_userToken)
+ list.add(userToken);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(getPredefinedData_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;
+ }
+ }
+ 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("getPredefinedData_args(");
+ boolean first = true;
+
+ sb.append("userToken:");
+ if (this.userToken == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.userToken);
+ }
+ 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 getPredefinedData_argsStandardSchemeFactory implements SchemeFactory {
+ public getPredefinedData_argsStandardScheme getScheme() {
+ return new getPredefinedData_argsStandardScheme();
+ }
+ }
+
+ private static class getPredefinedData_argsStandardScheme extends StandardScheme<getPredefinedData_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_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;
+ 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, getPredefinedData_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.userToken != null) {
+ oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC);
+ oprot.writeString(struct.userToken);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPredefinedData_argsTupleSchemeFactory implements SchemeFactory {
+ public getPredefinedData_argsTupleScheme getScheme() {
+ return new getPredefinedData_argsTupleScheme();
+ }
+ }
+
+ private static class getPredefinedData_argsTupleScheme extends TupleScheme<getPredefinedData_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetUserToken()) {
+ optionals.set(0);
+ }
+ oprot.writeBitSet(optionals, 1);
+ if (struct.isSetUserToken()) {
+ oprot.writeString(struct.userToken);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_args struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(1);
+ if (incoming.get(0)) {
+ struct.userToken = iprot.readString();
+ struct.setUserTokenIsSet(true);
+ }
+ }
+ }
+
+ }
+
+ public static class getPredefinedData_result implements org.apache.thrift.TBase<getPredefinedData_result, getPredefinedData_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPredefinedData_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPredefinedData_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
+ private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+
+ private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+ static {
+ schemes.put(StandardScheme.class, new getPredefinedData_resultStandardSchemeFactory());
+ schemes.put(TupleScheme.class, new getPredefinedData_resultTupleSchemeFactory());
+ }
+
+ public PredefinedData success; // required
+ public TAuthorizationException authError; // required
+ public TInvocationException serverError; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success"),
+ AUTH_ERROR((short)1, "authError"),
+ SERVER_ERROR((short)2, "serverError");
+
+ private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+ static {
+ for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // AUTH_ERROR
+ return AUTH_ERROR;
+ case 2: // SERVER_ERROR
+ return SERVER_ERROR;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final String _fieldName;
+
+ _Fields(short thriftId, String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PredefinedData.class)));
+ tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
+ metaDataMap = Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPredefinedData_result.class, metaDataMap);
+ }
+
+ public getPredefinedData_result() {
+ }
+
+ public getPredefinedData_result(
+ PredefinedData success,
+ TAuthorizationException authError,
+ TInvocationException serverError)
+ {
+ this();
+ this.success = success;
+ this.authError = authError;
+ this.serverError = serverError;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getPredefinedData_result(getPredefinedData_result other) {
+ if (other.isSetSuccess()) {
+ this.success = new PredefinedData(other.success);
+ }
+ if (other.isSetAuthError()) {
+ this.authError = new TAuthorizationException(other.authError);
+ }
+ if (other.isSetServerError()) {
+ this.serverError = new TInvocationException(other.serverError);
+ }
+ }
+
+ public getPredefinedData_result deepCopy() {
+ return new getPredefinedData_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.authError = null;
+ this.serverError = null;
+ }
+
+ public PredefinedData getSuccess() {
+ return this.success;
+ }
+
+ public getPredefinedData_result setSuccess(PredefinedData 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 getPredefinedData_result setAuthError(TAuthorizationException authError) {
+ this.authError = authError;
+ return this;
+ }
+
+ public void unsetAuthError() {
+ this.authError = null;
+ }
+
+ /** Returns true if field authError is set (has been assigned a value) and false otherwise */
+ public boolean isSetAuthError() {
+ return this.authError != null;
+ }
+
+ public void setAuthErrorIsSet(boolean value) {
+ if (!value) {
+ this.authError = null;
+ }
+ }
+
+ public TInvocationException getServerError() {
+ return this.serverError;
+ }
+
+ public getPredefinedData_result setServerError(TInvocationException serverError) {
+ this.serverError = serverError;
+ return this;
+ }
+
+ public void unsetServerError() {
+ this.serverError = null;
+ }
+
+ /** Returns true if field serverError is set (has been assigned a value) and false otherwise */
+ public boolean isSetServerError() {
+ return this.serverError != null;
+ }
+
+ public void setServerErrorIsSet(boolean value) {
+ if (!value) {
+ this.serverError = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((PredefinedData)value);
+ }
+ break;
+
+ case AUTH_ERROR:
+ if (value == null) {
+ unsetAuthError();
+ } else {
+ setAuthError((TAuthorizationException)value);
+ }
+ break;
+
+ case SERVER_ERROR:
+ if (value == null) {
+ unsetServerError();
+ } else {
+ setServerError((TInvocationException)value);
+ }
+ break;
+
+ }
+ }
+
+ public Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case AUTH_ERROR:
+ return getAuthError();
+
+ case SERVER_ERROR:
+ return getServerError();
+
+ }
+ throw new IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case AUTH_ERROR:
+ return isSetAuthError();
+ case SERVER_ERROR:
+ return isSetServerError();
+ }
+ throw new IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getPredefinedData_result)
+ return this.equals((getPredefinedData_result)that);
+ return false;
+ }
+
+ public boolean equals(getPredefinedData_result that) {
+ if (that == null)
+ return false;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_authError = true && this.isSetAuthError();
+ boolean that_present_authError = true && that.isSetAuthError();
+ if (this_present_authError || that_present_authError) {
+ if (!(this_present_authError && that_present_authError))
+ return false;
+ if (!this.authError.equals(that.authError))
+ return false;
+ }
+
+ boolean this_present_serverError = true && this.isSetServerError();
+ boolean that_present_serverError = true && that.isSetServerError();
+ if (this_present_serverError || that_present_serverError) {
+ if (!(this_present_serverError && that_present_serverError))
+ return false;
+ if (!this.serverError.equals(that.serverError))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ List<Object> list = new ArrayList<Object>();
+
+ 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)
+ list.add(authError);
+
+ boolean present_serverError = true && (isSetServerError());
+ list.add(present_serverError);
+ if (present_serverError)
+ list.add(serverError);
+
+ return list.hashCode();
+ }
+
+ @Override
+ public int compareTo(getPredefinedData_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAuthError()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetServerError()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ 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("getPredefinedData_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("authError:");
+ if (this.authError == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.authError);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("serverError:");
+ if (this.serverError == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.serverError);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ if (success != null) {
+ success.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getPredefinedData_resultStandardSchemeFactory implements SchemeFactory {
+ public getPredefinedData_resultStandardScheme getScheme() {
+ return new getPredefinedData_resultStandardScheme();
+ }
+ }
+
+ private static class getPredefinedData_resultStandardScheme extends StandardScheme<getPredefinedData_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getPredefinedData_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.success = new PredefinedData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 1: // AUTH_ERROR
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.authError = new TAuthorizationException();
+ struct.authError.read(iprot);
+ struct.setAuthErrorIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // SERVER_ERROR
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.serverError = new TInvocationException();
+ struct.serverError.read(iprot);
+ struct.setServerErrorIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ 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, getPredefinedData_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ struct.success.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.authError != null) {
+ oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC);
+ struct.authError.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.serverError != null) {
+ oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC);
+ struct.serverError.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getPredefinedData_resultTupleSchemeFactory implements SchemeFactory {
+ public getPredefinedData_resultTupleScheme getScheme() {
+ return new getPredefinedData_resultTupleScheme();
+ }
+ }
+
+ private static class getPredefinedData_resultTupleScheme extends TupleScheme<getPredefinedData_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol oprot = (TTupleProtocol) prot;
+ BitSet optionals = new BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetAuthError()) {
+ optionals.set(1);
+ }
+ if (struct.isSetServerError()) {
+ optionals.set(2);
+ }
+ oprot.writeBitSet(optionals, 3);
+ if (struct.isSetSuccess()) {
+ struct.success.write(oprot);
+ }
+ if (struct.isSetAuthError()) {
+ struct.authError.write(oprot);
+ }
+ if (struct.isSetServerError()) {
+ struct.serverError.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getPredefinedData_result struct) throws org.apache.thrift.TException {
+ TTupleProtocol iprot = (TTupleProtocol) prot;
+ BitSet incoming = iprot.readBitSet(3);
+ if (incoming.get(0)) {
+ struct.success = new PredefinedData();
+ struct.success.read(iprot);
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.authError = new TAuthorizationException();
+ struct.authError.read(iprot);
+ struct.setAuthErrorIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.serverError = new TInvocationException();
+ struct.serverError.read(iprot);
+ struct.setServerErrorIsSet(true);
+ }
+ }
+ }
+
+ }
+
}