From 746af5d07d2b7745618eb75ef3757d150ab02042 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 17 Dec 2021 17:03:51 +0100 Subject: Update generated Thrift API to version 0.15.0 --- .../openslx/bwlp/thrift/iface/LectureWrite.java | 919 ++++++++++----------- 1 file changed, 439 insertions(+), 480 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 921ea64..aee2ee8 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") 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"); @@ -62,35 +35,32 @@ public class LectureWrite implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LectureWriteStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LectureWriteTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LectureWriteStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LectureWriteTupleSchemeFactory(); - public String lectureName; // required - public String description; // required - public String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required public boolean autoUpdate; // required public boolean isEnabled; // required public long startTime; // required public long endTime; // required - public String runscript; // required - public List nics; // required - public List networkExceptions; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String runscript; // required + public @org.apache.thrift.annotation.Nullable java.util.List nics; // required + public @org.apache.thrift.annotation.Nullable java.util.List networkExceptions; // optional public boolean isExam; // required public boolean hasInternetAccess; // required - public LecturePermissions defaultPermissions; // required - public List addAllowedUsers; // optional - public List remAllowedUsers; // optional - public List locationIds; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable java.util.List addAllowedUsers; // optional + public @org.apache.thrift.annotation.Nullable java.util.List remAllowedUsers; // optional + public @org.apache.thrift.annotation.Nullable java.util.List locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required public boolean hasUsbAccess; // required - public List networkShares; // optional - public List ldapFilters; // optional - public List presetScriptIds; // optional - public List presetNetworkExceptionIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List networkShares; // optional + public @org.apache.thrift.annotation.Nullable java.util.List ldapFilters; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetScriptIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds; // 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 { @@ -118,10 +88,10 @@ public class LectureWrite implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -129,6 +99,7 @@ public class LectureWrite implements org.apache.thrift.TBase metaDataMap; + public static final java.util.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); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -286,7 +258,7 @@ public class LectureWrite implements org.apache.thrift.TBase nics, + java.lang.String runscript, + java.util.List nics, boolean isExam, boolean hasInternetAccess, LecturePermissions defaultPermissions, - List locationIds, + java.util.List locationIds, boolean limitToLocations, boolean limitToAllowedUsers, boolean hasUsbAccess) @@ -361,11 +333,11 @@ public class LectureWrite implements org.apache.thrift.TBase __this__nics = new ArrayList(other.nics); + java.util.List __this__nics = new java.util.ArrayList(other.nics); this.nics = __this__nics; } if (other.isSetNetworkExceptions()) { - List __this__networkExceptions = new ArrayList(other.networkExceptions.size()); + java.util.List __this__networkExceptions = new java.util.ArrayList(other.networkExceptions.size()); for (NetRule other_element : other.networkExceptions) { __this__networkExceptions.add(new NetRule(other_element)); } @@ -377,40 +349,40 @@ public class LectureWrite implements org.apache.thrift.TBase __this__addAllowedUsers = new ArrayList(other.addAllowedUsers); + java.util.List __this__addAllowedUsers = new java.util.ArrayList(other.addAllowedUsers); this.addAllowedUsers = __this__addAllowedUsers; } if (other.isSetRemAllowedUsers()) { - List __this__remAllowedUsers = new ArrayList(other.remAllowedUsers); + java.util.List __this__remAllowedUsers = new java.util.ArrayList(other.remAllowedUsers); this.remAllowedUsers = __this__remAllowedUsers; } if (other.isSetLocationIds()) { - List __this__locationIds = new ArrayList(other.locationIds); + java.util.List __this__locationIds = new java.util.ArrayList(other.locationIds); this.locationIds = __this__locationIds; } this.limitToLocations = other.limitToLocations; this.limitToAllowedUsers = other.limitToAllowedUsers; this.hasUsbAccess = other.hasUsbAccess; if (other.isSetNetworkShares()) { - List __this__networkShares = new ArrayList(other.networkShares.size()); + java.util.List __this__networkShares = new java.util.ArrayList(other.networkShares.size()); for (NetShare other_element : other.networkShares) { __this__networkShares.add(new NetShare(other_element)); } this.networkShares = __this__networkShares; } if (other.isSetLdapFilters()) { - List __this__ldapFilters = new ArrayList(other.ldapFilters.size()); + java.util.List __this__ldapFilters = new java.util.ArrayList(other.ldapFilters.size()); for (LdapFilter other_element : other.ldapFilters) { __this__ldapFilters.add(new LdapFilter(other_element)); } this.ldapFilters = __this__ldapFilters; } if (other.isSetPresetScriptIds()) { - List __this__presetScriptIds = new ArrayList(other.presetScriptIds); + java.util.List __this__presetScriptIds = new java.util.ArrayList(other.presetScriptIds); this.presetScriptIds = __this__presetScriptIds; } if (other.isSetPresetNetworkExceptionIds()) { - List __this__presetNetworkExceptionIds = new ArrayList(other.presetNetworkExceptionIds); + java.util.List __this__presetNetworkExceptionIds = new java.util.ArrayList(other.presetNetworkExceptionIds); this.presetNetworkExceptionIds = __this__presetNetworkExceptionIds; } } @@ -455,11 +427,12 @@ public class LectureWrite implements org.apache.thrift.TBase getNicsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getNicsIterator() { return (this.nics == null) ? null : this.nics.iterator(); } - public void addToNics(String elem) { + public void addToNics(java.lang.String elem) { if (this.nics == null) { - this.nics = new ArrayList(); + this.nics = new java.util.ArrayList(); } this.nics.add(elem); } - public List getNics() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNics() { return this.nics; } - public LectureWrite setNics(List nics) { + public LectureWrite setNics(@org.apache.thrift.annotation.Nullable java.util.List nics) { this.nics = nics; return this; } @@ -686,22 +664,24 @@ public class LectureWrite implements org.apache.thrift.TBase getNetworkExceptionsIterator() { return (this.networkExceptions == null) ? null : this.networkExceptions.iterator(); } public void addToNetworkExceptions(NetRule elem) { if (this.networkExceptions == null) { - this.networkExceptions = new ArrayList(); + this.networkExceptions = new java.util.ArrayList(); } this.networkExceptions.add(elem); } - public List getNetworkExceptions() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkExceptions() { return this.networkExceptions; } - public LectureWrite setNetworkExceptions(List networkExceptions) { + public LectureWrite setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List networkExceptions) { this.networkExceptions = networkExceptions; return this; } @@ -732,16 +712,16 @@ public class LectureWrite implements org.apache.thrift.TBase getAddAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAddAllowedUsersIterator() { return (this.addAllowedUsers == null) ? null : this.addAllowedUsers.iterator(); } - public void addToAddAllowedUsers(String elem) { + public void addToAddAllowedUsers(java.lang.String elem) { if (this.addAllowedUsers == null) { - this.addAllowedUsers = new ArrayList(); + this.addAllowedUsers = new java.util.ArrayList(); } this.addAllowedUsers.add(elem); } - public List getAddAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAddAllowedUsers() { return this.addAllowedUsers; } - public LectureWrite setAddAllowedUsers(List addAllowedUsers) { + public LectureWrite setAddAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List addAllowedUsers) { this.addAllowedUsers = addAllowedUsers; return this; } @@ -834,22 +817,24 @@ public class LectureWrite implements org.apache.thrift.TBase getRemAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getRemAllowedUsersIterator() { return (this.remAllowedUsers == null) ? null : this.remAllowedUsers.iterator(); } - public void addToRemAllowedUsers(String elem) { + public void addToRemAllowedUsers(java.lang.String elem) { if (this.remAllowedUsers == null) { - this.remAllowedUsers = new ArrayList(); + this.remAllowedUsers = new java.util.ArrayList(); } this.remAllowedUsers.add(elem); } - public List getRemAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List getRemAllowedUsers() { return this.remAllowedUsers; } - public LectureWrite setRemAllowedUsers(List remAllowedUsers) { + public LectureWrite setRemAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List remAllowedUsers) { this.remAllowedUsers = remAllowedUsers; return this; } @@ -873,22 +858,24 @@ public class LectureWrite implements org.apache.thrift.TBase getLocationIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getLocationIdsIterator() { return (this.locationIds == null) ? null : this.locationIds.iterator(); } public void addToLocationIds(int elem) { if (this.locationIds == null) { - this.locationIds = new ArrayList(); + this.locationIds = new java.util.ArrayList(); } this.locationIds.add(elem); } - public List getLocationIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLocationIds() { return this.locationIds; } - public LectureWrite setLocationIds(List locationIds) { + public LectureWrite setLocationIds(@org.apache.thrift.annotation.Nullable java.util.List locationIds) { this.locationIds = locationIds; return this; } @@ -919,16 +906,16 @@ 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 = new java.util.ArrayList(); } this.networkShares.add(elem); } - public List getNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkShares() { return this.networkShares; } - public LectureWrite setNetworkShares(List networkShares) { + public LectureWrite setNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List networkShares) { this.networkShares = networkShares; return this; } @@ -1020,22 +1009,24 @@ public class LectureWrite implements org.apache.thrift.TBase getLdapFiltersIterator() { return (this.ldapFilters == null) ? null : this.ldapFilters.iterator(); } public void addToLdapFilters(LdapFilter elem) { if (this.ldapFilters == null) { - this.ldapFilters = new ArrayList(); + this.ldapFilters = new java.util.ArrayList(); } this.ldapFilters.add(elem); } - public List getLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLdapFilters() { return this.ldapFilters; } - public LectureWrite setLdapFilters(List ldapFilters) { + public LectureWrite setLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List ldapFilters) { this.ldapFilters = ldapFilters; return this; } @@ -1059,22 +1050,24 @@ public class LectureWrite implements org.apache.thrift.TBase getPresetScriptIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetScriptIdsIterator() { return (this.presetScriptIds == null) ? null : this.presetScriptIds.iterator(); } public void addToPresetScriptIds(int elem) { if (this.presetScriptIds == null) { - this.presetScriptIds = new ArrayList(); + this.presetScriptIds = new java.util.ArrayList(); } this.presetScriptIds.add(elem); } - public List getPresetScriptIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetScriptIds() { return this.presetScriptIds; } - public LectureWrite setPresetScriptIds(List presetScriptIds) { + public LectureWrite setPresetScriptIds(@org.apache.thrift.annotation.Nullable java.util.List presetScriptIds) { this.presetScriptIds = presetScriptIds; return this; } @@ -1098,22 +1091,24 @@ public class LectureWrite implements org.apache.thrift.TBase getPresetNetworkExceptionIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetNetworkExceptionIdsIterator() { return (this.presetNetworkExceptionIds == null) ? null : this.presetNetworkExceptionIds.iterator(); } public void addToPresetNetworkExceptionIds(int elem) { if (this.presetNetworkExceptionIds == null) { - this.presetNetworkExceptionIds = new ArrayList(); + this.presetNetworkExceptionIds = new java.util.ArrayList(); } this.presetNetworkExceptionIds.add(elem); } - public List getPresetNetworkExceptionIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetNetworkExceptionIds() { return this.presetNetworkExceptionIds; } - public LectureWrite setPresetNetworkExceptionIds(List presetNetworkExceptionIds) { + public LectureWrite setPresetNetworkExceptionIds(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds) { this.presetNetworkExceptionIds = presetNetworkExceptionIds; return this; } @@ -1133,13 +1128,13 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setNics((java.util.List)value); } break; @@ -1211,7 +1206,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setNetworkExceptions((java.util.List)value); } break; @@ -1219,7 +1214,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setAddAllowedUsers((java.util.List)value); } break; @@ -1251,7 +1246,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setRemAllowedUsers((java.util.List)value); } break; @@ -1259,7 +1254,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setLocationIds((java.util.List)value); } break; @@ -1267,7 +1262,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setNetworkShares((java.util.List)value); } break; @@ -1299,7 +1294,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setLdapFilters((java.util.List)value); } break; @@ -1307,7 +1302,7 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setPresetScriptIds((java.util.List)value); } break; @@ -1315,14 +1310,15 @@ public class LectureWrite implements org.apache.thrift.TBase)value); + setPresetNetworkExceptionIds((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LECTURE_NAME: return getLectureName(); @@ -1394,13 +1390,13 @@ public class LectureWrite implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_lectureName = true && (isSetLectureName()); - list.add(present_lectureName); - if (present_lectureName) - list.add(lectureName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); - - boolean present_autoUpdate = true; - list.add(present_autoUpdate); - if (present_autoUpdate) - list.add(autoUpdate); - - boolean present_isEnabled = true; - list.add(present_isEnabled); - if (present_isEnabled) - list.add(isEnabled); - - boolean present_startTime = true; - list.add(present_startTime); - if (present_startTime) - list.add(startTime); - - boolean present_endTime = true; - list.add(present_endTime); - if (present_endTime) - list.add(endTime); - - boolean present_runscript = true && (isSetRunscript()); - list.add(present_runscript); - if (present_runscript) - list.add(runscript); - - boolean present_nics = true && (isSetNics()); - list.add(present_nics); - if (present_nics) - list.add(nics); - - boolean present_networkExceptions = true && (isSetNetworkExceptions()); - list.add(present_networkExceptions); - if (present_networkExceptions) - list.add(networkExceptions); - - boolean present_isExam = true; - list.add(present_isExam); - if (present_isExam) - list.add(isExam); - - boolean present_hasInternetAccess = true; - list.add(present_hasInternetAccess); - if (present_hasInternetAccess) - list.add(hasInternetAccess); - - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); - - boolean present_addAllowedUsers = true && (isSetAddAllowedUsers()); - list.add(present_addAllowedUsers); - if (present_addAllowedUsers) - list.add(addAllowedUsers); - - boolean present_remAllowedUsers = true && (isSetRemAllowedUsers()); - list.add(present_remAllowedUsers); - if (present_remAllowedUsers) - list.add(remAllowedUsers); - - boolean present_locationIds = true && (isSetLocationIds()); - list.add(present_locationIds); - if (present_locationIds) - list.add(locationIds); - - boolean present_limitToLocations = true; - list.add(present_limitToLocations); - if (present_limitToLocations) - list.add(limitToLocations); - - boolean present_limitToAllowedUsers = true; - list.add(present_limitToAllowedUsers); - if (present_limitToAllowedUsers) - list.add(limitToAllowedUsers); - - boolean present_hasUsbAccess = true; - list.add(present_hasUsbAccess); - if (present_hasUsbAccess) - list.add(hasUsbAccess); - - boolean present_networkShares = true && (isSetNetworkShares()); - list.add(present_networkShares); - if (present_networkShares) - list.add(networkShares); - - boolean present_ldapFilters = true && (isSetLdapFilters()); - list.add(present_ldapFilters); - if (present_ldapFilters) - list.add(ldapFilters); - - boolean present_presetScriptIds = true && (isSetPresetScriptIds()); - list.add(present_presetScriptIds); - if (present_presetScriptIds) - list.add(presetScriptIds); - - boolean present_presetNetworkExceptionIds = true && (isSetPresetNetworkExceptionIds()); - list.add(present_presetNetworkExceptionIds); - if (present_presetNetworkExceptionIds) - list.add(presetNetworkExceptionIds); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetLectureName()) ? 131071 : 524287); + if (isSetLectureName()) + hashCode = hashCode * 8191 + lectureName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((autoUpdate) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isEnabled) ? 131071 : 524287); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(endTime); + + hashCode = hashCode * 8191 + ((isSetRunscript()) ? 131071 : 524287); + if (isSetRunscript()) + hashCode = hashCode * 8191 + runscript.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNics()) ? 131071 : 524287); + if (isSetNics()) + hashCode = hashCode * 8191 + nics.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNetworkExceptions()) ? 131071 : 524287); + if (isSetNetworkExceptions()) + hashCode = hashCode * 8191 + networkExceptions.hashCode(); + + hashCode = hashCode * 8191 + ((isExam) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasInternetAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetAddAllowedUsers()) ? 131071 : 524287); + if (isSetAddAllowedUsers()) + hashCode = hashCode * 8191 + addAllowedUsers.hashCode(); + + hashCode = hashCode * 8191 + ((isSetRemAllowedUsers()) ? 131071 : 524287); + if (isSetRemAllowedUsers()) + hashCode = hashCode * 8191 + remAllowedUsers.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLocationIds()) ? 131071 : 524287); + if (isSetLocationIds()) + hashCode = hashCode * 8191 + locationIds.hashCode(); + + hashCode = hashCode * 8191 + ((limitToLocations) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((limitToAllowedUsers) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasUsbAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetNetworkShares()) ? 131071 : 524287); + if (isSetNetworkShares()) + hashCode = hashCode * 8191 + networkShares.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLdapFilters()) ? 131071 : 524287); + if (isSetLdapFilters()) + hashCode = hashCode * 8191 + ldapFilters.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetScriptIds()) ? 131071 : 524287); + if (isSetPresetScriptIds()) + hashCode = hashCode * 8191 + presetScriptIds.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetNetworkExceptionIds()) ? 131071 : 524287); + if (isSetPresetNetworkExceptionIds()) + hashCode = hashCode * 8191 + presetNetworkExceptionIds.hashCode(); + + return hashCode; } @Override @@ -1807,7 +1762,7 @@ public class LectureWrite implements org.apache.thrift.TBase { + private static class LectureWriteStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, LectureWrite struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -2333,13 +2289,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list130.size); - String _elem131; - for (int _i132 = 0; _i132 < _list130.size; ++_i132) + org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); + struct.nics = new java.util.ArrayList(_list138.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem139; + for (int _i140 = 0; _i140 < _list138.size; ++_i140) { - _elem131 = iprot.readString(); - struct.nics.add(_elem131); + _elem139 = iprot.readString(); + struct.nics.add(_elem139); } iprot.readListEnd(); } @@ -2351,14 +2307,14 @@ public class LectureWrite implements org.apache.thrift.TBase(_list133.size); - NetRule _elem134; - for (int _i135 = 0; _i135 < _list133.size; ++_i135) + org.apache.thrift.protocol.TList _list141 = iprot.readListBegin(); + struct.networkExceptions = new java.util.ArrayList(_list141.size); + @org.apache.thrift.annotation.Nullable NetRule _elem142; + for (int _i143 = 0; _i143 < _list141.size; ++_i143) { - _elem134 = new NetRule(); - _elem134.read(iprot); - struct.networkExceptions.add(_elem134); + _elem142 = new NetRule(); + _elem142.read(iprot); + struct.networkExceptions.add(_elem142); } iprot.readListEnd(); } @@ -2395,13 +2351,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list136.size); - String _elem137; - for (int _i138 = 0; _i138 < _list136.size; ++_i138) + org.apache.thrift.protocol.TList _list144 = iprot.readListBegin(); + struct.addAllowedUsers = new java.util.ArrayList(_list144.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem145; + for (int _i146 = 0; _i146 < _list144.size; ++_i146) { - _elem137 = iprot.readString(); - struct.addAllowedUsers.add(_elem137); + _elem145 = iprot.readString(); + struct.addAllowedUsers.add(_elem145); } iprot.readListEnd(); } @@ -2413,13 +2369,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list139.size); - String _elem140; - for (int _i141 = 0; _i141 < _list139.size; ++_i141) + org.apache.thrift.protocol.TList _list147 = iprot.readListBegin(); + struct.remAllowedUsers = new java.util.ArrayList(_list147.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem148; + for (int _i149 = 0; _i149 < _list147.size; ++_i149) { - _elem140 = iprot.readString(); - struct.remAllowedUsers.add(_elem140); + _elem148 = iprot.readString(); + struct.remAllowedUsers.add(_elem148); } iprot.readListEnd(); } @@ -2431,13 +2387,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list142.size); - int _elem143; - for (int _i144 = 0; _i144 < _list142.size; ++_i144) + org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); + struct.locationIds = new java.util.ArrayList(_list150.size); + int _elem151; + for (int _i152 = 0; _i152 < _list150.size; ++_i152) { - _elem143 = iprot.readI32(); - struct.locationIds.add(_elem143); + _elem151 = iprot.readI32(); + struct.locationIds.add(_elem151); } iprot.readListEnd(); } @@ -2473,14 +2429,14 @@ public class LectureWrite implements org.apache.thrift.TBase(_list145.size); - NetShare _elem146; - for (int _i147 = 0; _i147 < _list145.size; ++_i147) + org.apache.thrift.protocol.TList _list153 = iprot.readListBegin(); + struct.networkShares = new java.util.ArrayList(_list153.size); + @org.apache.thrift.annotation.Nullable NetShare _elem154; + for (int _i155 = 0; _i155 < _list153.size; ++_i155) { - _elem146 = new NetShare(); - _elem146.read(iprot); - struct.networkShares.add(_elem146); + _elem154 = new NetShare(); + _elem154.read(iprot); + struct.networkShares.add(_elem154); } iprot.readListEnd(); } @@ -2492,14 +2448,14 @@ public class LectureWrite implements org.apache.thrift.TBase(_list148.size); - LdapFilter _elem149; - for (int _i150 = 0; _i150 < _list148.size; ++_i150) + org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); + struct.ldapFilters = new java.util.ArrayList(_list156.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem157; + for (int _i158 = 0; _i158 < _list156.size; ++_i158) { - _elem149 = new LdapFilter(); - _elem149.read(iprot); - struct.ldapFilters.add(_elem149); + _elem157 = new LdapFilter(); + _elem157.read(iprot); + struct.ldapFilters.add(_elem157); } iprot.readListEnd(); } @@ -2511,13 +2467,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list151.size); - int _elem152; - for (int _i153 = 0; _i153 < _list151.size; ++_i153) + org.apache.thrift.protocol.TList _list159 = iprot.readListBegin(); + struct.presetScriptIds = new java.util.ArrayList(_list159.size); + int _elem160; + for (int _i161 = 0; _i161 < _list159.size; ++_i161) { - _elem152 = iprot.readI32(); - struct.presetScriptIds.add(_elem152); + _elem160 = iprot.readI32(); + struct.presetScriptIds.add(_elem160); } iprot.readListEnd(); } @@ -2529,13 +2485,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list154.size); - int _elem155; - for (int _i156 = 0; _i156 < _list154.size; ++_i156) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list162.size); + int _elem163; + for (int _i164 = 0; _i164 < _list162.size; ++_i164) { - _elem155 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem155); + _elem163 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem163); } iprot.readListEnd(); } @@ -2595,9 +2551,9 @@ public class LectureWrite implements org.apache.thrift.TBase { + private static class LectureWriteTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LectureWrite struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLectureName()) { optionals.set(0); } @@ -2848,18 +2804,18 @@ public class LectureWrite implements org.apache.thrift.TBase(_list175.size); - String _elem176; - for (int _i177 = 0; _i177 < _list175.size; ++_i177) + org.apache.thrift.protocol.TList _list183 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.nics = new java.util.ArrayList(_list183.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem184; + for (int _i185 = 0; _i185 < _list183.size; ++_i185) { - _elem176 = iprot.readString(); - struct.nics.add(_elem176); + _elem184 = iprot.readString(); + struct.nics.add(_elem184); } } struct.setNicsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TList _list178 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list178.size); - NetRule _elem179; - for (int _i180 = 0; _i180 < _list178.size; ++_i180) + org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkExceptions = new java.util.ArrayList(_list186.size); + @org.apache.thrift.annotation.Nullable NetRule _elem187; + for (int _i188 = 0; _i188 < _list186.size; ++_i188) { - _elem179 = new NetRule(); - _elem179.read(iprot); - struct.networkExceptions.add(_elem179); + _elem187 = new NetRule(); + _elem187.read(iprot); + struct.networkExceptions.add(_elem187); } } struct.setNetworkExceptionsIsSet(true); @@ -3024,39 +2980,39 @@ public class LectureWrite implements org.apache.thrift.TBase(_list181.size); - String _elem182; - for (int _i183 = 0; _i183 < _list181.size; ++_i183) + org.apache.thrift.protocol.TList _list189 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.addAllowedUsers = new java.util.ArrayList(_list189.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem190; + for (int _i191 = 0; _i191 < _list189.size; ++_i191) { - _elem182 = iprot.readString(); - struct.addAllowedUsers.add(_elem182); + _elem190 = iprot.readString(); + struct.addAllowedUsers.add(_elem190); } } struct.setAddAllowedUsersIsSet(true); } if (incoming.get(14)) { { - org.apache.thrift.protocol.TList _list184 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.remAllowedUsers = new ArrayList(_list184.size); - String _elem185; - for (int _i186 = 0; _i186 < _list184.size; ++_i186) + org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.remAllowedUsers = new java.util.ArrayList(_list192.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem193; + for (int _i194 = 0; _i194 < _list192.size; ++_i194) { - _elem185 = iprot.readString(); - struct.remAllowedUsers.add(_elem185); + _elem193 = iprot.readString(); + struct.remAllowedUsers.add(_elem193); } } struct.setRemAllowedUsersIsSet(true); } if (incoming.get(15)) { { - org.apache.thrift.protocol.TList _list187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.locationIds = new ArrayList(_list187.size); - int _elem188; - for (int _i189 = 0; _i189 < _list187.size; ++_i189) + org.apache.thrift.protocol.TList _list195 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.locationIds = new java.util.ArrayList(_list195.size); + int _elem196; + for (int _i197 = 0; _i197 < _list195.size; ++_i197) { - _elem188 = iprot.readI32(); - struct.locationIds.add(_elem188); + _elem196 = iprot.readI32(); + struct.locationIds.add(_elem196); } } struct.setLocationIdsIsSet(true); @@ -3075,54 +3031,54 @@ public class LectureWrite implements org.apache.thrift.TBase(_list190.size); - NetShare _elem191; - for (int _i192 = 0; _i192 < _list190.size; ++_i192) + org.apache.thrift.protocol.TList _list198 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkShares = new java.util.ArrayList(_list198.size); + @org.apache.thrift.annotation.Nullable NetShare _elem199; + for (int _i200 = 0; _i200 < _list198.size; ++_i200) { - _elem191 = new NetShare(); - _elem191.read(iprot); - struct.networkShares.add(_elem191); + _elem199 = new NetShare(); + _elem199.read(iprot); + struct.networkShares.add(_elem199); } } struct.setNetworkSharesIsSet(true); } if (incoming.get(20)) { { - org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.ldapFilters = new ArrayList(_list193.size); - LdapFilter _elem194; - for (int _i195 = 0; _i195 < _list193.size; ++_i195) + org.apache.thrift.protocol.TList _list201 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ldapFilters = new java.util.ArrayList(_list201.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem202; + for (int _i203 = 0; _i203 < _list201.size; ++_i203) { - _elem194 = new LdapFilter(); - _elem194.read(iprot); - struct.ldapFilters.add(_elem194); + _elem202 = new LdapFilter(); + _elem202.read(iprot); + struct.ldapFilters.add(_elem202); } } struct.setLdapFiltersIsSet(true); } if (incoming.get(21)) { { - org.apache.thrift.protocol.TList _list196 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetScriptIds = new ArrayList(_list196.size); - int _elem197; - for (int _i198 = 0; _i198 < _list196.size; ++_i198) + org.apache.thrift.protocol.TList _list204 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetScriptIds = new java.util.ArrayList(_list204.size); + int _elem205; + for (int _i206 = 0; _i206 < _list204.size; ++_i206) { - _elem197 = iprot.readI32(); - struct.presetScriptIds.add(_elem197); + _elem205 = iprot.readI32(); + struct.presetScriptIds.add(_elem205); } } struct.setPresetScriptIdsIsSet(true); } if (incoming.get(22)) { { - org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkExceptionIds = new ArrayList(_list199.size); - int _elem200; - for (int _i201 = 0; _i201 < _list199.size; ++_i201) + org.apache.thrift.protocol.TList _list207 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list207.size); + int _elem208; + for (int _i209 = 0; _i209 < _list207.size; ++_i209) { - _elem200 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem200); + _elem208 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem208); } } struct.setPresetNetworkExceptionIdsIsSet(true); @@ -3130,5 +3086,8 @@ public class LectureWrite implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } -- cgit v1.2.3-55-g7522