From d451eba3123206a2df8fb3cdc5e6236fa1c6f707 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 6 Sep 2017 13:47:36 +0200 Subject: update api --- .../openslx/bwlp/thrift/iface/LectureWrite.java | 273 ++++++++++++++++----- 1 file changed, 217 insertions(+), 56 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java index 8635d41..ce42bd3 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.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-03-02") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-06") public class LectureWrite implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureWrite"); @@ -57,6 +57,7 @@ public class LectureWrite implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -83,6 +84,7 @@ public class LectureWrite implements org.apache.thrift.TBase networkShares; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -104,7 +106,8 @@ public class LectureWrite implements org.apache.thrift.TBase byName = new HashMap(); @@ -157,6 +160,8 @@ public class LectureWrite implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -254,6 +259,9 @@ public class LectureWrite implements org.apache.thrift.TBase __this__networkShares = new ArrayList(other.networkShares.size()); + for (NetShare other_element : other.networkShares) { + __this__networkShares.add(new NetShare(other_element)); + } + this.networkShares = __this__networkShares; + } } public LectureWrite deepCopy() { @@ -395,6 +410,7 @@ public class LectureWrite implements org.apache.thrift.TBase getNetworkSharesIterator() { + return (this.networkShares == null) ? null : this.networkShares.iterator(); + } + + public void addToNetworkShares(NetShare elem) { + if (this.networkShares == null) { + this.networkShares = new ArrayList(); + } + this.networkShares.add(elem); + } + + public List getNetworkShares() { + return this.networkShares; + } + + public LectureWrite setNetworkShares(List networkShares) { + this.networkShares = networkShares; + return this; + } + + public void unsetNetworkShares() { + this.networkShares = null; + } + + /** Returns true if field networkShares is set (has been assigned a value) and false otherwise */ + public boolean isSetNetworkShares() { + return this.networkShares != null; + } + + public void setNetworkSharesIsSet(boolean value) { + if (!value) { + this.networkShares = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case LECTURE_NAME: @@ -1073,6 +1128,14 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + } + break; + } } @@ -1135,6 +1198,9 @@ public class LectureWrite implements org.apache.thrift.TBase(_list105.size); + NetShare _elem106; + for (int _i107 = 0; _i107 < _list105.size; ++_i107) + { + _elem106 = new NetShare(); + _elem106.read(iprot); + struct.networkShares.add(_elem106); + } + iprot.readListEnd(); + } + struct.setNetworkSharesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -2119,9 +2240,9 @@ public class LectureWrite implements org.apache.thrift.TBase(_list115.size); - String _elem116; - for (int _i117 = 0; _i117 < _list115.size; ++_i117) + org.apache.thrift.protocol.TList _list120 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList(_list120.size); + String _elem121; + for (int _i122 = 0; _i122 < _list120.size; ++_i122) { - _elem116 = iprot.readString(); - struct.nics.add(_elem116); + _elem121 = iprot.readString(); + struct.nics.add(_elem121); } } struct.setNicsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TList _list118 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list118.size); - NetRule _elem119; - for (int _i120 = 0; _i120 < _list118.size; ++_i120) + org.apache.thrift.protocol.TList _list123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList(_list123.size); + NetRule _elem124; + for (int _i125 = 0; _i125 < _list123.size; ++_i125) { - _elem119 = new NetRule(); - _elem119.read(iprot); - struct.networkExceptions.add(_elem119); + _elem124 = new NetRule(); + _elem124.read(iprot); + struct.networkExceptions.add(_elem124); } } struct.setNetworkExceptionsIsSet(true); @@ -2444,39 +2591,39 @@ public class LectureWrite implements org.apache.thrift.TBase(_list121.size); - String _elem122; - for (int _i123 = 0; _i123 < _list121.size; ++_i123) + org.apache.thrift.protocol.TList _list126 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.addAllowedUsers = new ArrayList(_list126.size); + String _elem127; + for (int _i128 = 0; _i128 < _list126.size; ++_i128) { - _elem122 = iprot.readString(); - struct.addAllowedUsers.add(_elem122); + _elem127 = iprot.readString(); + struct.addAllowedUsers.add(_elem127); } } struct.setAddAllowedUsersIsSet(true); } if (incoming.get(14)) { { - org.apache.thrift.protocol.TList _list124 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.remAllowedUsers = new ArrayList(_list124.size); - String _elem125; - for (int _i126 = 0; _i126 < _list124.size; ++_i126) + org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.remAllowedUsers = new ArrayList(_list129.size); + String _elem130; + for (int _i131 = 0; _i131 < _list129.size; ++_i131) { - _elem125 = iprot.readString(); - struct.remAllowedUsers.add(_elem125); + _elem130 = iprot.readString(); + struct.remAllowedUsers.add(_elem130); } } struct.setRemAllowedUsersIsSet(true); } if (incoming.get(15)) { { - org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.locationIds = new ArrayList(_list127.size); - int _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) + org.apache.thrift.protocol.TList _list132 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.locationIds = new ArrayList(_list132.size); + int _elem133; + for (int _i134 = 0; _i134 < _list132.size; ++_i134) { - _elem128 = iprot.readI32(); - struct.locationIds.add(_elem128); + _elem133 = iprot.readI32(); + struct.locationIds.add(_elem133); } } struct.setLocationIdsIsSet(true); @@ -2493,6 +2640,20 @@ public class LectureWrite implements org.apache.thrift.TBase(_list135.size); + NetShare _elem136; + for (int _i137 = 0; _i137 < _list135.size; ++_i137) + { + _elem136 = new NetShare(); + _elem136.read(iprot); + struct.networkShares.add(_elem136); + } + } + struct.setNetworkSharesIsSet(true); + } } } -- cgit v1.2.3-55-g7522