diff options
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java | 919 |
1 files changed, 439 insertions, 480 deletions
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<LectureWrite, LectureWrite._Fields>, java.io.Serializable, Cloneable, Comparable<LectureWrite> { 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<LectureWrite, Lectu private static final org.apache.thrift.protocol.TField PRESET_SCRIPT_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("presetScriptIds", org.apache.thrift.protocol.TType.LIST, (short)23); private static final org.apache.thrift.protocol.TField PRESET_NETWORK_EXCEPTION_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("presetNetworkExceptionIds", org.apache.thrift.protocol.TType.LIST, (short)24); - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, 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<String> nics; // required - public List<NetRule> networkExceptions; // optional + public @org.apache.thrift.annotation.Nullable java.lang.String runscript; // required + public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> nics; // required + public @org.apache.thrift.annotation.Nullable java.util.List<NetRule> networkExceptions; // optional public boolean isExam; // required public boolean hasInternetAccess; // required - public LecturePermissions defaultPermissions; // required - public List<String> addAllowedUsers; // optional - public List<String> remAllowedUsers; // optional - public List<Integer> locationIds; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> addAllowedUsers; // optional + public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> remAllowedUsers; // optional + public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required public boolean hasUsbAccess; // required - public List<NetShare> networkShares; // optional - public List<LdapFilter> ldapFilters; // optional - public List<Integer> presetScriptIds; // optional - public List<Integer> presetNetworkExceptionIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List<NetShare> networkShares; // optional + public @org.apache.thrift.annotation.Nullable java.util.List<LdapFilter> ldapFilters; // optional + public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetScriptIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> 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<LectureWrite, Lectu PRESET_SCRIPT_IDS((short)23, "presetScriptIds"), PRESET_NETWORK_EXCEPTION_IDS((short)24, "presetNetworkExceptionIds"); - private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); + private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>(); 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<LectureWrite, Lectu /** * Find the _Fields constant that matches fieldId, or null if its not found. */ + @org.apache.thrift.annotation.Nullable public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // LECTURE_NAME @@ -188,21 +159,22 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + if (fields == null) throw new java.lang.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) { + @org.apache.thrift.annotation.Nullable + public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; - private final String _fieldName; + private final java.lang.String _fieldName; - _Fields(short thriftId, String fieldName) { + _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } @@ -211,7 +183,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -228,9 +200,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu private static final int __HASUSBACCESS_ISSET_ID = 8; private short __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.NETWORK_EXCEPTIONS,_Fields.ADD_ALLOWED_USERS,_Fields.REM_ALLOWED_USERS,_Fields.NETWORK_SHARES,_Fields.LDAP_FILTERS,_Fields.PRESET_SCRIPT_IDS,_Fields.PRESET_NETWORK_EXCEPTION_IDS}; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> 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<LectureWrite, Lectu tmpMap.put(_Fields.PRESET_NETWORK_EXCEPTION_IDS, new org.apache.thrift.meta_data.FieldMetaData("presetNetworkExceptionIds", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)))); - metaDataMap = Collections.unmodifiableMap(tmpMap); + metaDataMap = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LectureWrite.class, metaDataMap); } @@ -294,19 +266,19 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public LectureWrite( - String lectureName, - String description, - String imageVersionId, + java.lang.String lectureName, + java.lang.String description, + java.lang.String imageVersionId, boolean autoUpdate, boolean isEnabled, long startTime, long endTime, - String runscript, - List<String> nics, + java.lang.String runscript, + java.util.List<java.lang.String> nics, boolean isExam, boolean hasInternetAccess, LecturePermissions defaultPermissions, - List<Integer> locationIds, + java.util.List<java.lang.Integer> locationIds, boolean limitToLocations, boolean limitToAllowedUsers, boolean hasUsbAccess) @@ -361,11 +333,11 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu this.runscript = other.runscript; } if (other.isSetNics()) { - List<String> __this__nics = new ArrayList<String>(other.nics); + java.util.List<java.lang.String> __this__nics = new java.util.ArrayList<java.lang.String>(other.nics); this.nics = __this__nics; } if (other.isSetNetworkExceptions()) { - List<NetRule> __this__networkExceptions = new ArrayList<NetRule>(other.networkExceptions.size()); + java.util.List<NetRule> __this__networkExceptions = new java.util.ArrayList<NetRule>(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<LectureWrite, Lectu this.defaultPermissions = new LecturePermissions(other.defaultPermissions); } if (other.isSetAddAllowedUsers()) { - List<String> __this__addAllowedUsers = new ArrayList<String>(other.addAllowedUsers); + java.util.List<java.lang.String> __this__addAllowedUsers = new java.util.ArrayList<java.lang.String>(other.addAllowedUsers); this.addAllowedUsers = __this__addAllowedUsers; } if (other.isSetRemAllowedUsers()) { - List<String> __this__remAllowedUsers = new ArrayList<String>(other.remAllowedUsers); + java.util.List<java.lang.String> __this__remAllowedUsers = new java.util.ArrayList<java.lang.String>(other.remAllowedUsers); this.remAllowedUsers = __this__remAllowedUsers; } if (other.isSetLocationIds()) { - List<Integer> __this__locationIds = new ArrayList<Integer>(other.locationIds); + java.util.List<java.lang.Integer> __this__locationIds = new java.util.ArrayList<java.lang.Integer>(other.locationIds); this.locationIds = __this__locationIds; } this.limitToLocations = other.limitToLocations; this.limitToAllowedUsers = other.limitToAllowedUsers; this.hasUsbAccess = other.hasUsbAccess; if (other.isSetNetworkShares()) { - List<NetShare> __this__networkShares = new ArrayList<NetShare>(other.networkShares.size()); + java.util.List<NetShare> __this__networkShares = new java.util.ArrayList<NetShare>(other.networkShares.size()); for (NetShare other_element : other.networkShares) { __this__networkShares.add(new NetShare(other_element)); } this.networkShares = __this__networkShares; } if (other.isSetLdapFilters()) { - List<LdapFilter> __this__ldapFilters = new ArrayList<LdapFilter>(other.ldapFilters.size()); + java.util.List<LdapFilter> __this__ldapFilters = new java.util.ArrayList<LdapFilter>(other.ldapFilters.size()); for (LdapFilter other_element : other.ldapFilters) { __this__ldapFilters.add(new LdapFilter(other_element)); } this.ldapFilters = __this__ldapFilters; } if (other.isSetPresetScriptIds()) { - List<Integer> __this__presetScriptIds = new ArrayList<Integer>(other.presetScriptIds); + java.util.List<java.lang.Integer> __this__presetScriptIds = new java.util.ArrayList<java.lang.Integer>(other.presetScriptIds); this.presetScriptIds = __this__presetScriptIds; } if (other.isSetPresetNetworkExceptionIds()) { - List<Integer> __this__presetNetworkExceptionIds = new ArrayList<Integer>(other.presetNetworkExceptionIds); + java.util.List<java.lang.Integer> __this__presetNetworkExceptionIds = new java.util.ArrayList<java.lang.Integer>(other.presetNetworkExceptionIds); this.presetNetworkExceptionIds = __this__presetNetworkExceptionIds; } } @@ -455,11 +427,12 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu this.presetNetworkExceptionIds = null; } - public String getLectureName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureName() { return this.lectureName; } - public LectureWrite setLectureName(String lectureName) { + public LectureWrite setLectureName(@org.apache.thrift.annotation.Nullable java.lang.String lectureName) { this.lectureName = lectureName; return this; } @@ -479,11 +452,12 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } } - public String getDescription() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getDescription() { return this.description; } - public LectureWrite setDescription(String description) { + public LectureWrite setDescription(@org.apache.thrift.annotation.Nullable java.lang.String description) { this.description = description; return this; } @@ -503,11 +477,12 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public LectureWrite setImageVersionId(String imageVersionId) { + public LectureWrite setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -538,16 +513,16 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetAutoUpdate() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID); } /** Returns true if field autoUpdate is set (has been assigned a value) and false otherwise */ public boolean isSetAutoUpdate() { - return EncodingUtils.testBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID); } public void setAutoUpdateIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID, value); } public boolean isIsEnabled() { @@ -561,16 +536,16 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetIsEnabled() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISENABLED_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISENABLED_ISSET_ID); } /** Returns true if field isEnabled is set (has been assigned a value) and false otherwise */ public boolean isSetIsEnabled() { - return EncodingUtils.testBit(__isset_bitfield, __ISENABLED_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISENABLED_ISSET_ID); } public void setIsEnabledIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISENABLED_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISENABLED_ISSET_ID, value); } public long getStartTime() { @@ -584,16 +559,16 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetStartTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STARTTIME_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STARTTIME_ISSET_ID); } /** Returns true if field startTime is set (has been assigned a value) and false otherwise */ public boolean isSetStartTime() { - return EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID); } public void setStartTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STARTTIME_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STARTTIME_ISSET_ID, value); } public long getEndTime() { @@ -607,23 +582,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetEndTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENDTIME_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ENDTIME_ISSET_ID); } /** Returns true if field endTime is set (has been assigned a value) and false otherwise */ public boolean isSetEndTime() { - return EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID); } public void setEndTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENDTIME_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ENDTIME_ISSET_ID, value); } - public String getRunscript() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getRunscript() { return this.runscript; } - public LectureWrite setRunscript(String runscript) { + public LectureWrite setRunscript(@org.apache.thrift.annotation.Nullable java.lang.String runscript) { this.runscript = runscript; return this; } @@ -647,22 +623,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.nics == null) ? 0 : this.nics.size(); } - public java.util.Iterator<String> getNicsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.String> 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<String>(); + this.nics = new java.util.ArrayList<java.lang.String>(); } this.nics.add(elem); } - public List<String> getNics() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.String> getNics() { return this.nics; } - public LectureWrite setNics(List<String> nics) { + public LectureWrite setNics(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> nics) { this.nics = nics; return this; } @@ -686,22 +664,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.networkExceptions == null) ? 0 : this.networkExceptions.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator<NetRule> getNetworkExceptionsIterator() { return (this.networkExceptions == null) ? null : this.networkExceptions.iterator(); } public void addToNetworkExceptions(NetRule elem) { if (this.networkExceptions == null) { - this.networkExceptions = new ArrayList<NetRule>(); + this.networkExceptions = new java.util.ArrayList<NetRule>(); } this.networkExceptions.add(elem); } - public List<NetRule> getNetworkExceptions() { + @org.apache.thrift.annotation.Nullable + public java.util.List<NetRule> getNetworkExceptions() { return this.networkExceptions; } - public LectureWrite setNetworkExceptions(List<NetRule> networkExceptions) { + public LectureWrite setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List<NetRule> networkExceptions) { this.networkExceptions = networkExceptions; return this; } @@ -732,16 +712,16 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetIsExam() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISEXAM_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISEXAM_ISSET_ID); } /** Returns true if field isExam is set (has been assigned a value) and false otherwise */ public boolean isSetIsExam() { - return EncodingUtils.testBit(__isset_bitfield, __ISEXAM_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISEXAM_ISSET_ID); } public void setIsExamIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISEXAM_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISEXAM_ISSET_ID, value); } public boolean isHasInternetAccess() { @@ -755,23 +735,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetHasInternetAccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HASINTERNETACCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __HASINTERNETACCESS_ISSET_ID); } /** Returns true if field hasInternetAccess is set (has been assigned a value) and false otherwise */ public boolean isSetHasInternetAccess() { - return EncodingUtils.testBit(__isset_bitfield, __HASINTERNETACCESS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __HASINTERNETACCESS_ISSET_ID); } public void setHasInternetAccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HASINTERNETACCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __HASINTERNETACCESS_ISSET_ID, value); } + @org.apache.thrift.annotation.Nullable public LecturePermissions getDefaultPermissions() { return this.defaultPermissions; } - public LectureWrite setDefaultPermissions(LecturePermissions defaultPermissions) { + public LectureWrite setDefaultPermissions(@org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions) { this.defaultPermissions = defaultPermissions; return this; } @@ -795,22 +776,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.addAllowedUsers == null) ? 0 : this.addAllowedUsers.size(); } - public java.util.Iterator<String> getAddAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.String> 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<String>(); + this.addAllowedUsers = new java.util.ArrayList<java.lang.String>(); } this.addAllowedUsers.add(elem); } - public List<String> getAddAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.String> getAddAllowedUsers() { return this.addAllowedUsers; } - public LectureWrite setAddAllowedUsers(List<String> addAllowedUsers) { + public LectureWrite setAddAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> addAllowedUsers) { this.addAllowedUsers = addAllowedUsers; return this; } @@ -834,22 +817,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.remAllowedUsers == null) ? 0 : this.remAllowedUsers.size(); } - public java.util.Iterator<String> getRemAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.String> 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<String>(); + this.remAllowedUsers = new java.util.ArrayList<java.lang.String>(); } this.remAllowedUsers.add(elem); } - public List<String> getRemAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.String> getRemAllowedUsers() { return this.remAllowedUsers; } - public LectureWrite setRemAllowedUsers(List<String> remAllowedUsers) { + public LectureWrite setRemAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> remAllowedUsers) { this.remAllowedUsers = remAllowedUsers; return this; } @@ -873,22 +858,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.locationIds == null) ? 0 : this.locationIds.size(); } - public java.util.Iterator<Integer> getLocationIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.Integer> getLocationIdsIterator() { return (this.locationIds == null) ? null : this.locationIds.iterator(); } public void addToLocationIds(int elem) { if (this.locationIds == null) { - this.locationIds = new ArrayList<Integer>(); + this.locationIds = new java.util.ArrayList<java.lang.Integer>(); } this.locationIds.add(elem); } - public List<Integer> getLocationIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.Integer> getLocationIds() { return this.locationIds; } - public LectureWrite setLocationIds(List<Integer> locationIds) { + public LectureWrite setLocationIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> locationIds) { this.locationIds = locationIds; return this; } @@ -919,16 +906,16 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetLimitToLocations() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID); } /** Returns true if field limitToLocations is set (has been assigned a value) and false otherwise */ public boolean isSetLimitToLocations() { - return EncodingUtils.testBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID); } public void setLimitToLocationsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID, value); } public boolean isLimitToAllowedUsers() { @@ -942,16 +929,16 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetLimitToAllowedUsers() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID); } /** Returns true if field limitToAllowedUsers is set (has been assigned a value) and false otherwise */ public boolean isSetLimitToAllowedUsers() { - return EncodingUtils.testBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID); } public void setLimitToAllowedUsersIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID, value); } public boolean isHasUsbAccess() { @@ -965,38 +952,40 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } public void unsetHasUsbAccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID); } /** Returns true if field hasUsbAccess is set (has been assigned a value) and false otherwise */ public boolean isSetHasUsbAccess() { - return EncodingUtils.testBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID); } public void setHasUsbAccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID, value); } public int getNetworkSharesSize() { return (this.networkShares == null) ? 0 : this.networkShares.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator<NetShare> getNetworkSharesIterator() { return (this.networkShares == null) ? null : this.networkShares.iterator(); } public void addToNetworkShares(NetShare elem) { if (this.networkShares == null) { - this.networkShares = new ArrayList<NetShare>(); + this.networkShares = new java.util.ArrayList<NetShare>(); } this.networkShares.add(elem); } - public List<NetShare> getNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List<NetShare> getNetworkShares() { return this.networkShares; } - public LectureWrite setNetworkShares(List<NetShare> networkShares) { + public LectureWrite setNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List<NetShare> networkShares) { this.networkShares = networkShares; return this; } @@ -1020,22 +1009,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.ldapFilters == null) ? 0 : this.ldapFilters.size(); } + @org.apache.thrift.annotation.Nullable public java.util.Iterator<LdapFilter> getLdapFiltersIterator() { return (this.ldapFilters == null) ? null : this.ldapFilters.iterator(); } public void addToLdapFilters(LdapFilter elem) { if (this.ldapFilters == null) { - this.ldapFilters = new ArrayList<LdapFilter>(); + this.ldapFilters = new java.util.ArrayList<LdapFilter>(); } this.ldapFilters.add(elem); } - public List<LdapFilter> getLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List<LdapFilter> getLdapFilters() { return this.ldapFilters; } - public LectureWrite setLdapFilters(List<LdapFilter> ldapFilters) { + public LectureWrite setLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List<LdapFilter> ldapFilters) { this.ldapFilters = ldapFilters; return this; } @@ -1059,22 +1050,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.presetScriptIds == null) ? 0 : this.presetScriptIds.size(); } - public java.util.Iterator<Integer> getPresetScriptIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.Integer> getPresetScriptIdsIterator() { return (this.presetScriptIds == null) ? null : this.presetScriptIds.iterator(); } public void addToPresetScriptIds(int elem) { if (this.presetScriptIds == null) { - this.presetScriptIds = new ArrayList<Integer>(); + this.presetScriptIds = new java.util.ArrayList<java.lang.Integer>(); } this.presetScriptIds.add(elem); } - public List<Integer> getPresetScriptIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.Integer> getPresetScriptIds() { return this.presetScriptIds; } - public LectureWrite setPresetScriptIds(List<Integer> presetScriptIds) { + public LectureWrite setPresetScriptIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetScriptIds) { this.presetScriptIds = presetScriptIds; return this; } @@ -1098,22 +1091,24 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return (this.presetNetworkExceptionIds == null) ? 0 : this.presetNetworkExceptionIds.size(); } - public java.util.Iterator<Integer> getPresetNetworkExceptionIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.Integer> getPresetNetworkExceptionIdsIterator() { return (this.presetNetworkExceptionIds == null) ? null : this.presetNetworkExceptionIds.iterator(); } public void addToPresetNetworkExceptionIds(int elem) { if (this.presetNetworkExceptionIds == null) { - this.presetNetworkExceptionIds = new ArrayList<Integer>(); + this.presetNetworkExceptionIds = new java.util.ArrayList<java.lang.Integer>(); } this.presetNetworkExceptionIds.add(elem); } - public List<Integer> getPresetNetworkExceptionIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.Integer> getPresetNetworkExceptionIds() { return this.presetNetworkExceptionIds; } - public LectureWrite setPresetNetworkExceptionIds(List<Integer> presetNetworkExceptionIds) { + public LectureWrite setPresetNetworkExceptionIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetNetworkExceptionIds) { this.presetNetworkExceptionIds = presetNetworkExceptionIds; return this; } @@ -1133,13 +1128,13 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } } - public void setFieldValue(_Fields field, Object value) { + public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) { switch (field) { case LECTURE_NAME: if (value == null) { unsetLectureName(); } else { - setLectureName((String)value); + setLectureName((java.lang.String)value); } break; @@ -1147,7 +1142,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetDescription(); } else { - setDescription((String)value); + setDescription((java.lang.String)value); } break; @@ -1155,7 +1150,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; @@ -1163,7 +1158,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetAutoUpdate(); } else { - setAutoUpdate((Boolean)value); + setAutoUpdate((java.lang.Boolean)value); } break; @@ -1171,7 +1166,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetIsEnabled(); } else { - setIsEnabled((Boolean)value); + setIsEnabled((java.lang.Boolean)value); } break; @@ -1179,7 +1174,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetStartTime(); } else { - setStartTime((Long)value); + setStartTime((java.lang.Long)value); } break; @@ -1187,7 +1182,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetEndTime(); } else { - setEndTime((Long)value); + setEndTime((java.lang.Long)value); } break; @@ -1195,7 +1190,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetRunscript(); } else { - setRunscript((String)value); + setRunscript((java.lang.String)value); } break; @@ -1203,7 +1198,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetNics(); } else { - setNics((List<String>)value); + setNics((java.util.List<java.lang.String>)value); } break; @@ -1211,7 +1206,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetNetworkExceptions(); } else { - setNetworkExceptions((List<NetRule>)value); + setNetworkExceptions((java.util.List<NetRule>)value); } break; @@ -1219,7 +1214,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetIsExam(); } else { - setIsExam((Boolean)value); + setIsExam((java.lang.Boolean)value); } break; @@ -1227,7 +1222,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetHasInternetAccess(); } else { - setHasInternetAccess((Boolean)value); + setHasInternetAccess((java.lang.Boolean)value); } break; @@ -1243,7 +1238,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetAddAllowedUsers(); } else { - setAddAllowedUsers((List<String>)value); + setAddAllowedUsers((java.util.List<java.lang.String>)value); } break; @@ -1251,7 +1246,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetRemAllowedUsers(); } else { - setRemAllowedUsers((List<String>)value); + setRemAllowedUsers((java.util.List<java.lang.String>)value); } break; @@ -1259,7 +1254,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetLocationIds(); } else { - setLocationIds((List<Integer>)value); + setLocationIds((java.util.List<java.lang.Integer>)value); } break; @@ -1267,7 +1262,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetLimitToLocations(); } else { - setLimitToLocations((Boolean)value); + setLimitToLocations((java.lang.Boolean)value); } break; @@ -1275,7 +1270,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetLimitToAllowedUsers(); } else { - setLimitToAllowedUsers((Boolean)value); + setLimitToAllowedUsers((java.lang.Boolean)value); } break; @@ -1283,7 +1278,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetHasUsbAccess(); } else { - setHasUsbAccess((Boolean)value); + setHasUsbAccess((java.lang.Boolean)value); } break; @@ -1291,7 +1286,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetNetworkShares(); } else { - setNetworkShares((List<NetShare>)value); + setNetworkShares((java.util.List<NetShare>)value); } break; @@ -1299,7 +1294,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetLdapFilters(); } else { - setLdapFilters((List<LdapFilter>)value); + setLdapFilters((java.util.List<LdapFilter>)value); } break; @@ -1307,7 +1302,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetPresetScriptIds(); } else { - setPresetScriptIds((List<Integer>)value); + setPresetScriptIds((java.util.List<java.lang.Integer>)value); } break; @@ -1315,14 +1310,15 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (value == null) { unsetPresetNetworkExceptionIds(); } else { - setPresetNetworkExceptionIds((List<Integer>)value); + setPresetNetworkExceptionIds((java.util.List<java.lang.Integer>)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<LectureWrite, Lectu return getPresetNetworkExceptionIds(); } - throw new IllegalStateException(); + throw new java.lang.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(); + throw new java.lang.IllegalArgumentException(); } switch (field) { @@ -1451,13 +1447,11 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu case PRESET_NETWORK_EXCEPTION_IDS: return isSetPresetNetworkExceptionIds(); } - throw new IllegalStateException(); + throw new java.lang.IllegalStateException(); } @Override - public boolean equals(Object that) { - if (that == null) - return false; + public boolean equals(java.lang.Object that) { if (that instanceof LectureWrite) return this.equals((LectureWrite)that); return false; @@ -1466,6 +1460,8 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu public boolean equals(LectureWrite that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_lectureName = true && this.isSetLectureName(); boolean that_present_lectureName = true && that.isSetLectureName(); @@ -1679,124 +1675,83 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu @Override public int hashCode() { - List<Object> list = new ArrayList<Object>(); - - 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<LectureWrite, Lectu int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLectureName()).compareTo(other.isSetLectureName()); + lastComparison = java.lang.Boolean.compare(isSetLectureName(), other.isSetLectureName()); if (lastComparison != 0) { return lastComparison; } @@ -1817,7 +1772,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = java.lang.Boolean.compare(isSetDescription(), other.isSetDescription()); if (lastComparison != 0) { return lastComparison; } @@ -1827,7 +1782,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -1837,7 +1792,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAutoUpdate()).compareTo(other.isSetAutoUpdate()); + lastComparison = java.lang.Boolean.compare(isSetAutoUpdate(), other.isSetAutoUpdate()); if (lastComparison != 0) { return lastComparison; } @@ -1847,7 +1802,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsEnabled()).compareTo(other.isSetIsEnabled()); + lastComparison = java.lang.Boolean.compare(isSetIsEnabled(), other.isSetIsEnabled()); if (lastComparison != 0) { return lastComparison; } @@ -1857,7 +1812,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartTime()).compareTo(other.isSetStartTime()); + lastComparison = java.lang.Boolean.compare(isSetStartTime(), other.isSetStartTime()); if (lastComparison != 0) { return lastComparison; } @@ -1867,7 +1822,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEndTime()).compareTo(other.isSetEndTime()); + lastComparison = java.lang.Boolean.compare(isSetEndTime(), other.isSetEndTime()); if (lastComparison != 0) { return lastComparison; } @@ -1877,7 +1832,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunscript()).compareTo(other.isSetRunscript()); + lastComparison = java.lang.Boolean.compare(isSetRunscript(), other.isSetRunscript()); if (lastComparison != 0) { return lastComparison; } @@ -1887,7 +1842,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNics()).compareTo(other.isSetNics()); + lastComparison = java.lang.Boolean.compare(isSetNics(), other.isSetNics()); if (lastComparison != 0) { return lastComparison; } @@ -1897,7 +1852,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNetworkExceptions()).compareTo(other.isSetNetworkExceptions()); + lastComparison = java.lang.Boolean.compare(isSetNetworkExceptions(), other.isSetNetworkExceptions()); if (lastComparison != 0) { return lastComparison; } @@ -1907,7 +1862,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsExam()).compareTo(other.isSetIsExam()); + lastComparison = java.lang.Boolean.compare(isSetIsExam(), other.isSetIsExam()); if (lastComparison != 0) { return lastComparison; } @@ -1917,7 +1872,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasInternetAccess()).compareTo(other.isSetHasInternetAccess()); + lastComparison = java.lang.Boolean.compare(isSetHasInternetAccess(), other.isSetHasInternetAccess()); if (lastComparison != 0) { return lastComparison; } @@ -1927,7 +1882,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefaultPermissions()).compareTo(other.isSetDefaultPermissions()); + lastComparison = java.lang.Boolean.compare(isSetDefaultPermissions(), other.isSetDefaultPermissions()); if (lastComparison != 0) { return lastComparison; } @@ -1937,7 +1892,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAddAllowedUsers()).compareTo(other.isSetAddAllowedUsers()); + lastComparison = java.lang.Boolean.compare(isSetAddAllowedUsers(), other.isSetAddAllowedUsers()); if (lastComparison != 0) { return lastComparison; } @@ -1947,7 +1902,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRemAllowedUsers()).compareTo(other.isSetRemAllowedUsers()); + lastComparison = java.lang.Boolean.compare(isSetRemAllowedUsers(), other.isSetRemAllowedUsers()); if (lastComparison != 0) { return lastComparison; } @@ -1957,7 +1912,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLocationIds()).compareTo(other.isSetLocationIds()); + lastComparison = java.lang.Boolean.compare(isSetLocationIds(), other.isSetLocationIds()); if (lastComparison != 0) { return lastComparison; } @@ -1967,7 +1922,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLimitToLocations()).compareTo(other.isSetLimitToLocations()); + lastComparison = java.lang.Boolean.compare(isSetLimitToLocations(), other.isSetLimitToLocations()); if (lastComparison != 0) { return lastComparison; } @@ -1977,7 +1932,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLimitToAllowedUsers()).compareTo(other.isSetLimitToAllowedUsers()); + lastComparison = java.lang.Boolean.compare(isSetLimitToAllowedUsers(), other.isSetLimitToAllowedUsers()); if (lastComparison != 0) { return lastComparison; } @@ -1987,7 +1942,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasUsbAccess()).compareTo(other.isSetHasUsbAccess()); + lastComparison = java.lang.Boolean.compare(isSetHasUsbAccess(), other.isSetHasUsbAccess()); if (lastComparison != 0) { return lastComparison; } @@ -1997,7 +1952,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNetworkShares()).compareTo(other.isSetNetworkShares()); + lastComparison = java.lang.Boolean.compare(isSetNetworkShares(), other.isSetNetworkShares()); if (lastComparison != 0) { return lastComparison; } @@ -2007,7 +1962,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLdapFilters()).compareTo(other.isSetLdapFilters()); + lastComparison = java.lang.Boolean.compare(isSetLdapFilters(), other.isSetLdapFilters()); if (lastComparison != 0) { return lastComparison; } @@ -2017,7 +1972,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPresetScriptIds()).compareTo(other.isSetPresetScriptIds()); + lastComparison = java.lang.Boolean.compare(isSetPresetScriptIds(), other.isSetPresetScriptIds()); if (lastComparison != 0) { return lastComparison; } @@ -2027,7 +1982,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPresetNetworkExceptionIds()).compareTo(other.isSetPresetNetworkExceptionIds()); + lastComparison = java.lang.Boolean.compare(isSetPresetNetworkExceptionIds(), other.isSetPresetNetworkExceptionIds()); if (lastComparison != 0) { return lastComparison; } @@ -2040,21 +1995,22 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu return 0; } + @org.apache.thrift.annotation.Nullable 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); + scheme(iprot).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); + scheme(oprot).write(oprot, this); } @Override - public String toString() { - StringBuilder sb = new StringBuilder("LectureWrite("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("LectureWrite("); boolean first = true; sb.append("lectureName:"); @@ -2238,7 +2194,7 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } } - private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. __isset_bitfield = 0; @@ -2248,13 +2204,13 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } } - private static class LectureWriteStandardSchemeFactory implements SchemeFactory { + private static class LectureWriteStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public LectureWriteStandardScheme getScheme() { return new LectureWriteStandardScheme(); } } - private static class LectureWriteStandardScheme extends StandardScheme<LectureWrite> { + private static class LectureWriteStandardScheme extends org.apache.thrift.scheme.StandardScheme<LectureWrite> { 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<LectureWrite, Lectu case 10: // NICS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); - struct.nics = new ArrayList<String>(_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<java.lang.String>(_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<LectureWrite, Lectu case 12: // NETWORK_EXCEPTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list133 = iprot.readListBegin(); - struct.networkExceptions = new ArrayList<NetRule>(_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<NetRule>(_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<LectureWrite, Lectu case 11: // ADD_ALLOWED_USERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list136 = iprot.readListBegin(); - struct.addAllowedUsers = new ArrayList<String>(_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<java.lang.String>(_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<LectureWrite, Lectu case 16: // REM_ALLOWED_USERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list139 = iprot.readListBegin(); - struct.remAllowedUsers = new ArrayList<String>(_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<java.lang.String>(_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<LectureWrite, Lectu case 17: // LOCATION_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); - struct.locationIds = new ArrayList<Integer>(_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<java.lang.Integer>(_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<LectureWrite, Lectu case 21: // NETWORK_SHARES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list145 = iprot.readListBegin(); - struct.networkShares = new ArrayList<NetShare>(_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<NetShare>(_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<LectureWrite, Lectu case 22: // LDAP_FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); - struct.ldapFilters = new ArrayList<LdapFilter>(_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<LdapFilter>(_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<LectureWrite, Lectu case 23: // PRESET_SCRIPT_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list151 = iprot.readListBegin(); - struct.presetScriptIds = new ArrayList<Integer>(_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<java.lang.Integer>(_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<LectureWrite, Lectu case 24: // PRESET_NETWORK_EXCEPTION_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); - struct.presetNetworkExceptionIds = new ArrayList<Integer>(_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<java.lang.Integer>(_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<LectureWrite, Lectu oprot.writeFieldBegin(NICS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.nics.size())); - for (String _iter157 : struct.nics) + for (java.lang.String _iter165 : struct.nics) { - oprot.writeString(_iter157); + oprot.writeString(_iter165); } oprot.writeListEnd(); } @@ -2608,9 +2564,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(ADD_ALLOWED_USERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.addAllowedUsers.size())); - for (String _iter158 : struct.addAllowedUsers) + for (java.lang.String _iter166 : struct.addAllowedUsers) { - oprot.writeString(_iter158); + oprot.writeString(_iter166); } oprot.writeListEnd(); } @@ -2622,9 +2578,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(NETWORK_EXCEPTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.networkExceptions.size())); - for (NetRule _iter159 : struct.networkExceptions) + for (NetRule _iter167 : struct.networkExceptions) { - _iter159.write(oprot); + _iter167.write(oprot); } oprot.writeListEnd(); } @@ -2647,9 +2603,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(REM_ALLOWED_USERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.remAllowedUsers.size())); - for (String _iter160 : struct.remAllowedUsers) + for (java.lang.String _iter168 : struct.remAllowedUsers) { - oprot.writeString(_iter160); + oprot.writeString(_iter168); } oprot.writeListEnd(); } @@ -2660,9 +2616,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(LOCATION_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.locationIds.size())); - for (int _iter161 : struct.locationIds) + for (int _iter169 : struct.locationIds) { - oprot.writeI32(_iter161); + oprot.writeI32(_iter169); } oprot.writeListEnd(); } @@ -2682,9 +2638,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(NETWORK_SHARES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.networkShares.size())); - for (NetShare _iter162 : struct.networkShares) + for (NetShare _iter170 : struct.networkShares) { - _iter162.write(oprot); + _iter170.write(oprot); } oprot.writeListEnd(); } @@ -2696,9 +2652,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(LDAP_FILTERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.ldapFilters.size())); - for (LdapFilter _iter163 : struct.ldapFilters) + for (LdapFilter _iter171 : struct.ldapFilters) { - _iter163.write(oprot); + _iter171.write(oprot); } oprot.writeListEnd(); } @@ -2710,9 +2666,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(PRESET_SCRIPT_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetScriptIds.size())); - for (int _iter164 : struct.presetScriptIds) + for (int _iter172 : struct.presetScriptIds) { - oprot.writeI32(_iter164); + oprot.writeI32(_iter172); } oprot.writeListEnd(); } @@ -2724,9 +2680,9 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu oprot.writeFieldBegin(PRESET_NETWORK_EXCEPTION_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetNetworkExceptionIds.size())); - for (int _iter165 : struct.presetNetworkExceptionIds) + for (int _iter173 : struct.presetNetworkExceptionIds) { - oprot.writeI32(_iter165); + oprot.writeI32(_iter173); } oprot.writeListEnd(); } @@ -2739,18 +2695,18 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } - private static class LectureWriteTupleSchemeFactory implements SchemeFactory { + private static class LectureWriteTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public LectureWriteTupleScheme getScheme() { return new LectureWriteTupleScheme(); } } - private static class LectureWriteTupleScheme extends TupleScheme<LectureWrite> { + private static class LectureWriteTupleScheme extends org.apache.thrift.scheme.TupleScheme<LectureWrite> { @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<LectureWrite, Lectu if (struct.isSetNics()) { { oprot.writeI32(struct.nics.size()); - for (String _iter166 : struct.nics) + for (java.lang.String _iter174 : struct.nics) { - oprot.writeString(_iter166); + oprot.writeString(_iter174); } } } if (struct.isSetNetworkExceptions()) { { oprot.writeI32(struct.networkExceptions.size()); - for (NetRule _iter167 : struct.networkExceptions) + for (NetRule _iter175 : struct.networkExceptions) { - _iter167.write(oprot); + _iter175.write(oprot); } } } @@ -2875,27 +2831,27 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (struct.isSetAddAllowedUsers()) { { oprot.writeI32(struct.addAllowedUsers.size()); - for (String _iter168 : struct.addAllowedUsers) + for (java.lang.String _iter176 : struct.addAllowedUsers) { - oprot.writeString(_iter168); + oprot.writeString(_iter176); } } } if (struct.isSetRemAllowedUsers()) { { oprot.writeI32(struct.remAllowedUsers.size()); - for (String _iter169 : struct.remAllowedUsers) + for (java.lang.String _iter177 : struct.remAllowedUsers) { - oprot.writeString(_iter169); + oprot.writeString(_iter177); } } } if (struct.isSetLocationIds()) { { oprot.writeI32(struct.locationIds.size()); - for (int _iter170 : struct.locationIds) + for (int _iter178 : struct.locationIds) { - oprot.writeI32(_iter170); + oprot.writeI32(_iter178); } } } @@ -2911,36 +2867,36 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu if (struct.isSetNetworkShares()) { { oprot.writeI32(struct.networkShares.size()); - for (NetShare _iter171 : struct.networkShares) + for (NetShare _iter179 : struct.networkShares) { - _iter171.write(oprot); + _iter179.write(oprot); } } } if (struct.isSetLdapFilters()) { { oprot.writeI32(struct.ldapFilters.size()); - for (LdapFilter _iter172 : struct.ldapFilters) + for (LdapFilter _iter180 : struct.ldapFilters) { - _iter172.write(oprot); + _iter180.write(oprot); } } } if (struct.isSetPresetScriptIds()) { { oprot.writeI32(struct.presetScriptIds.size()); - for (int _iter173 : struct.presetScriptIds) + for (int _iter181 : struct.presetScriptIds) { - oprot.writeI32(_iter173); + oprot.writeI32(_iter181); } } } if (struct.isSetPresetNetworkExceptionIds()) { { oprot.writeI32(struct.presetNetworkExceptionIds.size()); - for (int _iter174 : struct.presetNetworkExceptionIds) + for (int _iter182 : struct.presetNetworkExceptionIds) { - oprot.writeI32(_iter174); + oprot.writeI32(_iter182); } } } @@ -2948,8 +2904,8 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu @Override public void read(org.apache.thrift.protocol.TProtocol prot, LectureWrite struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(23); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(23); if (incoming.get(0)) { struct.lectureName = iprot.readString(); struct.setLectureNameIsSet(true); @@ -2984,27 +2940,27 @@ public class LectureWrite implements org.apache.thrift.TBase<LectureWrite, Lectu } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.nics = new ArrayList<String>(_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<java.lang.String>(_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<NetRule>(_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<NetRule>(_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<LectureWrite, Lectu } if (incoming.get(13)) { { - org.apache.thrift.protocol.TList _list181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.addAllowedUsers = new ArrayList<String>(_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<java.lang.String>(_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<String>(_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<java.lang.String>(_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<Integer>(_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<java.lang.Integer>(_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<LectureWrite, Lectu } if (incoming.get(19)) { { - org.apache.thrift.protocol.TList _list190 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkShares = new ArrayList<NetShare>(_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<NetShare>(_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<LdapFilter>(_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<LdapFilter>(_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<Integer>(_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<java.lang.Integer>(_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<Integer>(_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<java.lang.Integer>(_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<LectureWrite, Lectu } } + private static <S extends org.apache.thrift.scheme.IScheme> 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(); + } } |