diff options
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java')
-rw-r--r-- | src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java | 1152 |
1 files changed, 550 insertions, 602 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java index be1aa0c..b23cde8 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.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 LectureRead implements org.apache.thrift.TBase<LectureRead, LectureRead._Fields>, java.io.Serializable, Cloneable, Comparable<LectureRead> { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureRead"); @@ -72,17 +45,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture private static final org.apache.thrift.protocol.TField PRESET_LDAP_FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("presetLdapFilters", org.apache.thrift.protocol.TType.LIST, (short)33); 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)34); - private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LectureReadStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LectureReadTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LectureReadStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LectureReadTupleSchemeFactory(); - public String lectureId; // required - public String lectureName; // required - public String description; // required - public String imageVersionId; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // 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 @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required public boolean autoUpdate; // required public boolean isEnabled; // required public long startTime; // required @@ -91,26 +61,26 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture public int useCount; // required public long createTime; // required public long updateTime; // required - public String ownerId; // required - public String updaterId; // required - public String runscript; // required - public List<String> nics; // required - public List<String> allowedUsers; // required - public List<NetRule> networkExceptions; // required + public @org.apache.thrift.annotation.Nullable java.lang.String ownerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String updaterId; // required + 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<java.lang.String> allowedUsers; // required + public @org.apache.thrift.annotation.Nullable java.util.List<NetRule> networkExceptions; // required public boolean isExam; // required public boolean hasInternetAccess; // required - public LecturePermissions defaultPermissions; // required - public LecturePermissions userPermissions; // optional - public List<Integer> locationIds; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions userPermissions; // 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> presetNetworkShares; // optional - public List<Integer> presetLdapFilters; // 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> presetNetworkShares; // optional + public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetLdapFilters; // 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 { @@ -148,10 +118,10 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture PRESET_LDAP_FILTERS((short)33, "presetLdapFilters"), PRESET_NETWORK_EXCEPTION_IDS((short)34, "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); } } @@ -159,6 +129,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture /** * 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_ID @@ -238,21 +209,22 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture */ 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; } @@ -261,7 +233,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return _thriftId; } - public String getFieldName() { + public java.lang.String getFieldName() { return _fieldName; } } @@ -282,9 +254,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture private static final int __HASUSBACCESS_ISSET_ID = 12; private short __isset_bitfield = 0; private static final _Fields optionals[] = {_Fields.USER_PERMISSIONS,_Fields.NETWORK_SHARES,_Fields.LDAP_FILTERS,_Fields.PRESET_SCRIPT_IDS,_Fields.PRESET_NETWORK_SHARES,_Fields.PRESET_LDAP_FILTERS,_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_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -361,7 +333,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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(LectureRead.class, metaDataMap); } @@ -369,11 +341,11 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } public LectureRead( - String lectureId, - String lectureName, - String description, - String imageVersionId, - String imageBaseId, + java.lang.String lectureId, + java.lang.String lectureName, + java.lang.String description, + java.lang.String imageVersionId, + java.lang.String imageBaseId, boolean autoUpdate, boolean isEnabled, long startTime, @@ -382,16 +354,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture int useCount, long createTime, long updateTime, - String ownerId, - String updaterId, - String runscript, - List<String> nics, - List<String> allowedUsers, - List<NetRule> networkExceptions, + java.lang.String ownerId, + java.lang.String updaterId, + java.lang.String runscript, + java.util.List<java.lang.String> nics, + java.util.List<java.lang.String> allowedUsers, + java.util.List<NetRule> networkExceptions, boolean isExam, boolean hasInternetAccess, LecturePermissions defaultPermissions, - List<Integer> locationIds, + java.util.List<java.lang.Integer> locationIds, boolean limitToLocations, boolean limitToAllowedUsers, boolean hasUsbAccess) @@ -476,15 +448,15 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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.isSetAllowedUsers()) { - List<String> __this__allowedUsers = new ArrayList<String>(other.allowedUsers); + java.util.List<java.lang.String> __this__allowedUsers = new java.util.ArrayList<java.lang.String>(other.allowedUsers); this.allowedUsers = __this__allowedUsers; } 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)); } @@ -499,40 +471,40 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture this.userPermissions = new LecturePermissions(other.userPermissions); } 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.isSetPresetNetworkShares()) { - List<Integer> __this__presetNetworkShares = new ArrayList<Integer>(other.presetNetworkShares); + java.util.List<java.lang.Integer> __this__presetNetworkShares = new java.util.ArrayList<java.lang.Integer>(other.presetNetworkShares); this.presetNetworkShares = __this__presetNetworkShares; } if (other.isSetPresetLdapFilters()) { - List<Integer> __this__presetLdapFilters = new ArrayList<Integer>(other.presetLdapFilters); + java.util.List<java.lang.Integer> __this__presetLdapFilters = new java.util.ArrayList<java.lang.Integer>(other.presetLdapFilters); this.presetLdapFilters = __this__presetLdapFilters; } 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; } } @@ -591,11 +563,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture this.presetNetworkExceptionIds = null; } - public String getLectureId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureId() { return this.lectureId; } - public LectureRead setLectureId(String lectureId) { + public LectureRead setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } @@ -615,11 +588,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - public String getLectureName() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getLectureName() { return this.lectureName; } - public LectureRead setLectureName(String lectureName) { + public LectureRead setLectureName(@org.apache.thrift.annotation.Nullable java.lang.String lectureName) { this.lectureName = lectureName; return this; } @@ -639,11 +613,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - public String getDescription() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getDescription() { return this.description; } - public LectureRead setDescription(String description) { + public LectureRead setDescription(@org.apache.thrift.annotation.Nullable java.lang.String description) { this.description = description; return this; } @@ -663,11 +638,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - public String getImageVersionId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageVersionId() { return this.imageVersionId; } - public LectureRead setImageVersionId(String imageVersionId) { + public LectureRead setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -687,11 +663,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - public String getImageBaseId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getImageBaseId() { return this.imageBaseId; } - public LectureRead setImageBaseId(String imageBaseId) { + public LectureRead setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -722,16 +699,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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() { @@ -745,16 +722,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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() { @@ -768,16 +745,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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() { @@ -791,16 +768,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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 long getLastUsed() { @@ -814,16 +791,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } public void unsetLastUsed() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LASTUSED_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __LASTUSED_ISSET_ID); } /** Returns true if field lastUsed is set (has been assigned a value) and false otherwise */ public boolean isSetLastUsed() { - return EncodingUtils.testBit(__isset_bitfield, __LASTUSED_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LASTUSED_ISSET_ID); } public void setLastUsedIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LASTUSED_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LASTUSED_ISSET_ID, value); } public int getUseCount() { @@ -837,16 +814,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } public void unsetUseCount() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __USECOUNT_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __USECOUNT_ISSET_ID); } /** Returns true if field useCount is set (has been assigned a value) and false otherwise */ public boolean isSetUseCount() { - return EncodingUtils.testBit(__isset_bitfield, __USECOUNT_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __USECOUNT_ISSET_ID); } public void setUseCountIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __USECOUNT_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __USECOUNT_ISSET_ID, value); } public long getCreateTime() { @@ -860,16 +837,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } public void unsetCreateTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CREATETIME_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CREATETIME_ISSET_ID); } /** Returns true if field createTime is set (has been assigned a value) and false otherwise */ public boolean isSetCreateTime() { - return EncodingUtils.testBit(__isset_bitfield, __CREATETIME_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATETIME_ISSET_ID); } public void setCreateTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CREATETIME_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CREATETIME_ISSET_ID, value); } public long getUpdateTime() { @@ -883,23 +860,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } public void unsetUpdateTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __UPDATETIME_ISSET_ID); + __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __UPDATETIME_ISSET_ID); } /** Returns true if field updateTime is set (has been assigned a value) and false otherwise */ public boolean isSetUpdateTime() { - return EncodingUtils.testBit(__isset_bitfield, __UPDATETIME_ISSET_ID); + return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UPDATETIME_ISSET_ID); } public void setUpdateTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __UPDATETIME_ISSET_ID, value); + __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UPDATETIME_ISSET_ID, value); } - public String getOwnerId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getOwnerId() { return this.ownerId; } - public LectureRead setOwnerId(String ownerId) { + public LectureRead setOwnerId(@org.apache.thrift.annotation.Nullable java.lang.String ownerId) { this.ownerId = ownerId; return this; } @@ -919,11 +897,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - public String getUpdaterId() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getUpdaterId() { return this.updaterId; } - public LectureRead setUpdaterId(String updaterId) { + public LectureRead setUpdaterId(@org.apache.thrift.annotation.Nullable java.lang.String updaterId) { this.updaterId = updaterId; return this; } @@ -943,11 +922,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - public String getRunscript() { + @org.apache.thrift.annotation.Nullable + public java.lang.String getRunscript() { return this.runscript; } - public LectureRead setRunscript(String runscript) { + public LectureRead setRunscript(@org.apache.thrift.annotation.Nullable java.lang.String runscript) { this.runscript = runscript; return this; } @@ -971,22 +951,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 LectureRead setNics(List<String> nics) { + public LectureRead setNics(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> nics) { this.nics = nics; return this; } @@ -1010,22 +992,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return (this.allowedUsers == null) ? 0 : this.allowedUsers.size(); } - public java.util.Iterator<String> getAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.String> getAllowedUsersIterator() { return (this.allowedUsers == null) ? null : this.allowedUsers.iterator(); } - public void addToAllowedUsers(String elem) { + public void addToAllowedUsers(java.lang.String elem) { if (this.allowedUsers == null) { - this.allowedUsers = new ArrayList<String>(); + this.allowedUsers = new java.util.ArrayList<java.lang.String>(); } this.allowedUsers.add(elem); } - public List<String> getAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.String> getAllowedUsers() { return this.allowedUsers; } - public LectureRead setAllowedUsers(List<String> allowedUsers) { + public LectureRead setAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> allowedUsers) { this.allowedUsers = allowedUsers; return this; } @@ -1049,22 +1033,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 LectureRead setNetworkExceptions(List<NetRule> networkExceptions) { + public LectureRead setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List<NetRule> networkExceptions) { this.networkExceptions = networkExceptions; return this; } @@ -1095,16 +1081,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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() { @@ -1118,23 +1104,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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 LectureRead setDefaultPermissions(LecturePermissions defaultPermissions) { + public LectureRead setDefaultPermissions(@org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions) { this.defaultPermissions = defaultPermissions; return this; } @@ -1154,11 +1141,12 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } + @org.apache.thrift.annotation.Nullable public LecturePermissions getUserPermissions() { return this.userPermissions; } - public LectureRead setUserPermissions(LecturePermissions userPermissions) { + public LectureRead setUserPermissions(@org.apache.thrift.annotation.Nullable LecturePermissions userPermissions) { this.userPermissions = userPermissions; return this; } @@ -1182,22 +1170,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 LectureRead setLocationIds(List<Integer> locationIds) { + public LectureRead setLocationIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> locationIds) { this.locationIds = locationIds; return this; } @@ -1228,16 +1218,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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() { @@ -1251,16 +1241,16 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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() { @@ -1274,38 +1264,40 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } 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 LectureRead setNetworkShares(List<NetShare> networkShares) { + public LectureRead setNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List<NetShare> networkShares) { this.networkShares = networkShares; return this; } @@ -1329,22 +1321,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 LectureRead setLdapFilters(List<LdapFilter> ldapFilters) { + public LectureRead setLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List<LdapFilter> ldapFilters) { this.ldapFilters = ldapFilters; return this; } @@ -1368,22 +1362,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 LectureRead setPresetScriptIds(List<Integer> presetScriptIds) { + public LectureRead setPresetScriptIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetScriptIds) { this.presetScriptIds = presetScriptIds; return this; } @@ -1407,22 +1403,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return (this.presetNetworkShares == null) ? 0 : this.presetNetworkShares.size(); } - public java.util.Iterator<Integer> getPresetNetworkSharesIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.Integer> getPresetNetworkSharesIterator() { return (this.presetNetworkShares == null) ? null : this.presetNetworkShares.iterator(); } public void addToPresetNetworkShares(int elem) { if (this.presetNetworkShares == null) { - this.presetNetworkShares = new ArrayList<Integer>(); + this.presetNetworkShares = new java.util.ArrayList<java.lang.Integer>(); } this.presetNetworkShares.add(elem); } - public List<Integer> getPresetNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.Integer> getPresetNetworkShares() { return this.presetNetworkShares; } - public LectureRead setPresetNetworkShares(List<Integer> presetNetworkShares) { + public LectureRead setPresetNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetNetworkShares) { this.presetNetworkShares = presetNetworkShares; return this; } @@ -1446,22 +1444,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return (this.presetLdapFilters == null) ? 0 : this.presetLdapFilters.size(); } - public java.util.Iterator<Integer> getPresetLdapFiltersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator<java.lang.Integer> getPresetLdapFiltersIterator() { return (this.presetLdapFilters == null) ? null : this.presetLdapFilters.iterator(); } public void addToPresetLdapFilters(int elem) { if (this.presetLdapFilters == null) { - this.presetLdapFilters = new ArrayList<Integer>(); + this.presetLdapFilters = new java.util.ArrayList<java.lang.Integer>(); } this.presetLdapFilters.add(elem); } - public List<Integer> getPresetLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List<java.lang.Integer> getPresetLdapFilters() { return this.presetLdapFilters; } - public LectureRead setPresetLdapFilters(List<Integer> presetLdapFilters) { + public LectureRead setPresetLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetLdapFilters) { this.presetLdapFilters = presetLdapFilters; return this; } @@ -1485,22 +1485,24 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 LectureRead setPresetNetworkExceptionIds(List<Integer> presetNetworkExceptionIds) { + public LectureRead setPresetNetworkExceptionIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> presetNetworkExceptionIds) { this.presetNetworkExceptionIds = presetNetworkExceptionIds; return this; } @@ -1520,13 +1522,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - 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_ID: if (value == null) { unsetLectureId(); } else { - setLectureId((String)value); + setLectureId((java.lang.String)value); } break; @@ -1534,7 +1536,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetLectureName(); } else { - setLectureName((String)value); + setLectureName((java.lang.String)value); } break; @@ -1542,7 +1544,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetDescription(); } else { - setDescription((String)value); + setDescription((java.lang.String)value); } break; @@ -1550,7 +1552,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetImageVersionId(); } else { - setImageVersionId((String)value); + setImageVersionId((java.lang.String)value); } break; @@ -1558,7 +1560,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetImageBaseId(); } else { - setImageBaseId((String)value); + setImageBaseId((java.lang.String)value); } break; @@ -1566,7 +1568,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetAutoUpdate(); } else { - setAutoUpdate((Boolean)value); + setAutoUpdate((java.lang.Boolean)value); } break; @@ -1574,7 +1576,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetIsEnabled(); } else { - setIsEnabled((Boolean)value); + setIsEnabled((java.lang.Boolean)value); } break; @@ -1582,7 +1584,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetStartTime(); } else { - setStartTime((Long)value); + setStartTime((java.lang.Long)value); } break; @@ -1590,7 +1592,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetEndTime(); } else { - setEndTime((Long)value); + setEndTime((java.lang.Long)value); } break; @@ -1598,7 +1600,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetLastUsed(); } else { - setLastUsed((Long)value); + setLastUsed((java.lang.Long)value); } break; @@ -1606,7 +1608,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetUseCount(); } else { - setUseCount((Integer)value); + setUseCount((java.lang.Integer)value); } break; @@ -1614,7 +1616,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetCreateTime(); } else { - setCreateTime((Long)value); + setCreateTime((java.lang.Long)value); } break; @@ -1622,7 +1624,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetUpdateTime(); } else { - setUpdateTime((Long)value); + setUpdateTime((java.lang.Long)value); } break; @@ -1630,7 +1632,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetOwnerId(); } else { - setOwnerId((String)value); + setOwnerId((java.lang.String)value); } break; @@ -1638,7 +1640,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetUpdaterId(); } else { - setUpdaterId((String)value); + setUpdaterId((java.lang.String)value); } break; @@ -1646,7 +1648,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetRunscript(); } else { - setRunscript((String)value); + setRunscript((java.lang.String)value); } break; @@ -1654,7 +1656,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetNics(); } else { - setNics((List<String>)value); + setNics((java.util.List<java.lang.String>)value); } break; @@ -1662,7 +1664,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetAllowedUsers(); } else { - setAllowedUsers((List<String>)value); + setAllowedUsers((java.util.List<java.lang.String>)value); } break; @@ -1670,7 +1672,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetNetworkExceptions(); } else { - setNetworkExceptions((List<NetRule>)value); + setNetworkExceptions((java.util.List<NetRule>)value); } break; @@ -1678,7 +1680,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetIsExam(); } else { - setIsExam((Boolean)value); + setIsExam((java.lang.Boolean)value); } break; @@ -1686,7 +1688,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetHasInternetAccess(); } else { - setHasInternetAccess((Boolean)value); + setHasInternetAccess((java.lang.Boolean)value); } break; @@ -1710,7 +1712,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetLocationIds(); } else { - setLocationIds((List<Integer>)value); + setLocationIds((java.util.List<java.lang.Integer>)value); } break; @@ -1718,7 +1720,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetLimitToLocations(); } else { - setLimitToLocations((Boolean)value); + setLimitToLocations((java.lang.Boolean)value); } break; @@ -1726,7 +1728,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetLimitToAllowedUsers(); } else { - setLimitToAllowedUsers((Boolean)value); + setLimitToAllowedUsers((java.lang.Boolean)value); } break; @@ -1734,7 +1736,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetHasUsbAccess(); } else { - setHasUsbAccess((Boolean)value); + setHasUsbAccess((java.lang.Boolean)value); } break; @@ -1742,7 +1744,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetNetworkShares(); } else { - setNetworkShares((List<NetShare>)value); + setNetworkShares((java.util.List<NetShare>)value); } break; @@ -1750,7 +1752,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetLdapFilters(); } else { - setLdapFilters((List<LdapFilter>)value); + setLdapFilters((java.util.List<LdapFilter>)value); } break; @@ -1758,7 +1760,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetPresetScriptIds(); } else { - setPresetScriptIds((List<Integer>)value); + setPresetScriptIds((java.util.List<java.lang.Integer>)value); } break; @@ -1766,7 +1768,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetPresetNetworkShares(); } else { - setPresetNetworkShares((List<Integer>)value); + setPresetNetworkShares((java.util.List<java.lang.Integer>)value); } break; @@ -1774,7 +1776,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (value == null) { unsetPresetLdapFilters(); } else { - setPresetLdapFilters((List<Integer>)value); + setPresetLdapFilters((java.util.List<java.lang.Integer>)value); } break; @@ -1782,14 +1784,15 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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_ID: return getLectureId(); @@ -1891,13 +1894,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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) { @@ -1968,13 +1971,11 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 LectureRead) return this.equals((LectureRead)that); return false; @@ -1983,6 +1984,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture public boolean equals(LectureRead that) { if (that == null) return false; + if (this == that) + return true; boolean this_present_lectureId = true && this.isSetLectureId(); boolean that_present_lectureId = true && that.isSetLectureId(); @@ -2286,174 +2289,115 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture @Override public int hashCode() { - List<Object> list = new ArrayList<Object>(); - - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); - - 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_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - 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_lastUsed = true; - list.add(present_lastUsed); - if (present_lastUsed) - list.add(lastUsed); - - boolean present_useCount = true; - list.add(present_useCount); - if (present_useCount) - list.add(useCount); - - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); - - boolean present_updateTime = true; - list.add(present_updateTime); - if (present_updateTime) - list.add(updateTime); - - boolean present_ownerId = true && (isSetOwnerId()); - list.add(present_ownerId); - if (present_ownerId) - list.add(ownerId); - - boolean present_updaterId = true && (isSetUpdaterId()); - list.add(present_updaterId); - if (present_updaterId) - list.add(updaterId); - - 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_allowedUsers = true && (isSetAllowedUsers()); - list.add(present_allowedUsers); - if (present_allowedUsers) - list.add(allowedUsers); - - 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_userPermissions = true && (isSetUserPermissions()); - list.add(present_userPermissions); - if (present_userPermissions) - list.add(userPermissions); - - 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_presetNetworkShares = true && (isSetPresetNetworkShares()); - list.add(present_presetNetworkShares); - if (present_presetNetworkShares) - list.add(presetNetworkShares); - - boolean present_presetLdapFilters = true && (isSetPresetLdapFilters()); - list.add(present_presetLdapFilters); - if (present_presetLdapFilters) - list.add(presetLdapFilters); - - boolean present_presetNetworkExceptionIds = true && (isSetPresetNetworkExceptionIds()); - list.add(present_presetNetworkExceptionIds); - if (present_presetNetworkExceptionIds) - list.add(presetNetworkExceptionIds); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); + + 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 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.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 + org.apache.thrift.TBaseHelper.hashCode(lastUsed); + + hashCode = hashCode * 8191 + useCount; + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(updateTime); + + hashCode = hashCode * 8191 + ((isSetOwnerId()) ? 131071 : 524287); + if (isSetOwnerId()) + hashCode = hashCode * 8191 + ownerId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUpdaterId()) ? 131071 : 524287); + if (isSetUpdaterId()) + hashCode = hashCode * 8191 + updaterId.hashCode(); + + 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 + ((isSetAllowedUsers()) ? 131071 : 524287); + if (isSetAllowedUsers()) + hashCode = hashCode * 8191 + allowedUsers.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 + ((isSetUserPermissions()) ? 131071 : 524287); + if (isSetUserPermissions()) + hashCode = hashCode * 8191 + userPermissions.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 + ((isSetPresetNetworkShares()) ? 131071 : 524287); + if (isSetPresetNetworkShares()) + hashCode = hashCode * 8191 + presetNetworkShares.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetLdapFilters()) ? 131071 : 524287); + if (isSetPresetLdapFilters()) + hashCode = hashCode * 8191 + presetLdapFilters.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetNetworkExceptionIds()) ? 131071 : 524287); + if (isSetPresetNetworkExceptionIds()) + hashCode = hashCode * 8191 + presetNetworkExceptionIds.hashCode(); + + return hashCode; } @Override @@ -2464,7 +2408,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetLectureId()).compareTo(other.isSetLectureId()); + lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } @@ -2474,7 +2418,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLectureName()).compareTo(other.isSetLectureName()); + lastComparison = java.lang.Boolean.compare(isSetLectureName(), other.isSetLectureName()); if (lastComparison != 0) { return lastComparison; } @@ -2484,7 +2428,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = java.lang.Boolean.compare(isSetDescription(), other.isSetDescription()); if (lastComparison != 0) { return lastComparison; } @@ -2494,7 +2438,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } @@ -2504,7 +2448,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } @@ -2514,7 +2458,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAutoUpdate()).compareTo(other.isSetAutoUpdate()); + lastComparison = java.lang.Boolean.compare(isSetAutoUpdate(), other.isSetAutoUpdate()); if (lastComparison != 0) { return lastComparison; } @@ -2524,7 +2468,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsEnabled()).compareTo(other.isSetIsEnabled()); + lastComparison = java.lang.Boolean.compare(isSetIsEnabled(), other.isSetIsEnabled()); if (lastComparison != 0) { return lastComparison; } @@ -2534,7 +2478,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStartTime()).compareTo(other.isSetStartTime()); + lastComparison = java.lang.Boolean.compare(isSetStartTime(), other.isSetStartTime()); if (lastComparison != 0) { return lastComparison; } @@ -2544,7 +2488,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEndTime()).compareTo(other.isSetEndTime()); + lastComparison = java.lang.Boolean.compare(isSetEndTime(), other.isSetEndTime()); if (lastComparison != 0) { return lastComparison; } @@ -2554,7 +2498,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastUsed()).compareTo(other.isSetLastUsed()); + lastComparison = java.lang.Boolean.compare(isSetLastUsed(), other.isSetLastUsed()); if (lastComparison != 0) { return lastComparison; } @@ -2564,7 +2508,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUseCount()).compareTo(other.isSetUseCount()); + lastComparison = java.lang.Boolean.compare(isSetUseCount(), other.isSetUseCount()); if (lastComparison != 0) { return lastComparison; } @@ -2574,7 +2518,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = java.lang.Boolean.compare(isSetCreateTime(), other.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } @@ -2584,7 +2528,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUpdateTime()).compareTo(other.isSetUpdateTime()); + lastComparison = java.lang.Boolean.compare(isSetUpdateTime(), other.isSetUpdateTime()); if (lastComparison != 0) { return lastComparison; } @@ -2594,7 +2538,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerId()).compareTo(other.isSetOwnerId()); + lastComparison = java.lang.Boolean.compare(isSetOwnerId(), other.isSetOwnerId()); if (lastComparison != 0) { return lastComparison; } @@ -2604,7 +2548,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUpdaterId()).compareTo(other.isSetUpdaterId()); + lastComparison = java.lang.Boolean.compare(isSetUpdaterId(), other.isSetUpdaterId()); if (lastComparison != 0) { return lastComparison; } @@ -2614,7 +2558,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunscript()).compareTo(other.isSetRunscript()); + lastComparison = java.lang.Boolean.compare(isSetRunscript(), other.isSetRunscript()); if (lastComparison != 0) { return lastComparison; } @@ -2624,7 +2568,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNics()).compareTo(other.isSetNics()); + lastComparison = java.lang.Boolean.compare(isSetNics(), other.isSetNics()); if (lastComparison != 0) { return lastComparison; } @@ -2634,7 +2578,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAllowedUsers()).compareTo(other.isSetAllowedUsers()); + lastComparison = java.lang.Boolean.compare(isSetAllowedUsers(), other.isSetAllowedUsers()); if (lastComparison != 0) { return lastComparison; } @@ -2644,7 +2588,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNetworkExceptions()).compareTo(other.isSetNetworkExceptions()); + lastComparison = java.lang.Boolean.compare(isSetNetworkExceptions(), other.isSetNetworkExceptions()); if (lastComparison != 0) { return lastComparison; } @@ -2654,7 +2598,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsExam()).compareTo(other.isSetIsExam()); + lastComparison = java.lang.Boolean.compare(isSetIsExam(), other.isSetIsExam()); if (lastComparison != 0) { return lastComparison; } @@ -2664,7 +2608,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasInternetAccess()).compareTo(other.isSetHasInternetAccess()); + lastComparison = java.lang.Boolean.compare(isSetHasInternetAccess(), other.isSetHasInternetAccess()); if (lastComparison != 0) { return lastComparison; } @@ -2674,7 +2618,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefaultPermissions()).compareTo(other.isSetDefaultPermissions()); + lastComparison = java.lang.Boolean.compare(isSetDefaultPermissions(), other.isSetDefaultPermissions()); if (lastComparison != 0) { return lastComparison; } @@ -2684,7 +2628,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUserPermissions()).compareTo(other.isSetUserPermissions()); + lastComparison = java.lang.Boolean.compare(isSetUserPermissions(), other.isSetUserPermissions()); if (lastComparison != 0) { return lastComparison; } @@ -2694,7 +2638,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLocationIds()).compareTo(other.isSetLocationIds()); + lastComparison = java.lang.Boolean.compare(isSetLocationIds(), other.isSetLocationIds()); if (lastComparison != 0) { return lastComparison; } @@ -2704,7 +2648,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLimitToLocations()).compareTo(other.isSetLimitToLocations()); + lastComparison = java.lang.Boolean.compare(isSetLimitToLocations(), other.isSetLimitToLocations()); if (lastComparison != 0) { return lastComparison; } @@ -2714,7 +2658,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLimitToAllowedUsers()).compareTo(other.isSetLimitToAllowedUsers()); + lastComparison = java.lang.Boolean.compare(isSetLimitToAllowedUsers(), other.isSetLimitToAllowedUsers()); if (lastComparison != 0) { return lastComparison; } @@ -2724,7 +2668,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasUsbAccess()).compareTo(other.isSetHasUsbAccess()); + lastComparison = java.lang.Boolean.compare(isSetHasUsbAccess(), other.isSetHasUsbAccess()); if (lastComparison != 0) { return lastComparison; } @@ -2734,7 +2678,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNetworkShares()).compareTo(other.isSetNetworkShares()); + lastComparison = java.lang.Boolean.compare(isSetNetworkShares(), other.isSetNetworkShares()); if (lastComparison != 0) { return lastComparison; } @@ -2744,7 +2688,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLdapFilters()).compareTo(other.isSetLdapFilters()); + lastComparison = java.lang.Boolean.compare(isSetLdapFilters(), other.isSetLdapFilters()); if (lastComparison != 0) { return lastComparison; } @@ -2754,7 +2698,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPresetScriptIds()).compareTo(other.isSetPresetScriptIds()); + lastComparison = java.lang.Boolean.compare(isSetPresetScriptIds(), other.isSetPresetScriptIds()); if (lastComparison != 0) { return lastComparison; } @@ -2764,7 +2708,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPresetNetworkShares()).compareTo(other.isSetPresetNetworkShares()); + lastComparison = java.lang.Boolean.compare(isSetPresetNetworkShares(), other.isSetPresetNetworkShares()); if (lastComparison != 0) { return lastComparison; } @@ -2774,7 +2718,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPresetLdapFilters()).compareTo(other.isSetPresetLdapFilters()); + lastComparison = java.lang.Boolean.compare(isSetPresetLdapFilters(), other.isSetPresetLdapFilters()); if (lastComparison != 0) { return lastComparison; } @@ -2784,7 +2728,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPresetNetworkExceptionIds()).compareTo(other.isSetPresetNetworkExceptionIds()); + lastComparison = java.lang.Boolean.compare(isSetPresetNetworkExceptionIds(), other.isSetPresetNetworkExceptionIds()); if (lastComparison != 0) { return lastComparison; } @@ -2797,21 +2741,22 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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("LectureRead("); + public java.lang.String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder("LectureRead("); boolean first = true; sb.append("lectureId:"); @@ -3062,7 +3007,7 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - 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; @@ -3072,13 +3017,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } - private static class LectureReadStandardSchemeFactory implements SchemeFactory { + private static class LectureReadStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public LectureReadStandardScheme getScheme() { return new LectureReadStandardScheme(); } } - private static class LectureReadStandardScheme extends StandardScheme<LectureRead> { + private static class LectureReadStandardScheme extends org.apache.thrift.scheme.StandardScheme<LectureRead> { public void read(org.apache.thrift.protocol.TProtocol iprot, LectureRead struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; @@ -3221,13 +3166,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 14: // NICS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list202 = iprot.readListBegin(); - struct.nics = new ArrayList<String>(_list202.size); - String _elem203; - for (int _i204 = 0; _i204 < _list202.size; ++_i204) + org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); + struct.nics = new java.util.ArrayList<java.lang.String>(_list210.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem211; + for (int _i212 = 0; _i212 < _list210.size; ++_i212) { - _elem203 = iprot.readString(); - struct.nics.add(_elem203); + _elem211 = iprot.readString(); + struct.nics.add(_elem211); } iprot.readListEnd(); } @@ -3239,13 +3184,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 15: // ALLOWED_USERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list205 = iprot.readListBegin(); - struct.allowedUsers = new ArrayList<String>(_list205.size); - String _elem206; - for (int _i207 = 0; _i207 < _list205.size; ++_i207) + org.apache.thrift.protocol.TList _list213 = iprot.readListBegin(); + struct.allowedUsers = new java.util.ArrayList<java.lang.String>(_list213.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem214; + for (int _i215 = 0; _i215 < _list213.size; ++_i215) { - _elem206 = iprot.readString(); - struct.allowedUsers.add(_elem206); + _elem214 = iprot.readString(); + struct.allowedUsers.add(_elem214); } iprot.readListEnd(); } @@ -3257,14 +3202,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 16: // NETWORK_EXCEPTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); - struct.networkExceptions = new ArrayList<NetRule>(_list208.size); - NetRule _elem209; - for (int _i210 = 0; _i210 < _list208.size; ++_i210) + org.apache.thrift.protocol.TList _list216 = iprot.readListBegin(); + struct.networkExceptions = new java.util.ArrayList<NetRule>(_list216.size); + @org.apache.thrift.annotation.Nullable NetRule _elem217; + for (int _i218 = 0; _i218 < _list216.size; ++_i218) { - _elem209 = new NetRule(); - _elem209.read(iprot); - struct.networkExceptions.add(_elem209); + _elem217 = new NetRule(); + _elem217.read(iprot); + struct.networkExceptions.add(_elem217); } iprot.readListEnd(); } @@ -3310,13 +3255,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 25: // LOCATION_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list211 = iprot.readListBegin(); - struct.locationIds = new ArrayList<Integer>(_list211.size); - int _elem212; - for (int _i213 = 0; _i213 < _list211.size; ++_i213) + org.apache.thrift.protocol.TList _list219 = iprot.readListBegin(); + struct.locationIds = new java.util.ArrayList<java.lang.Integer>(_list219.size); + int _elem220; + for (int _i221 = 0; _i221 < _list219.size; ++_i221) { - _elem212 = iprot.readI32(); - struct.locationIds.add(_elem212); + _elem220 = iprot.readI32(); + struct.locationIds.add(_elem220); } iprot.readListEnd(); } @@ -3352,14 +3297,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 29: // NETWORK_SHARES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list214 = iprot.readListBegin(); - struct.networkShares = new ArrayList<NetShare>(_list214.size); - NetShare _elem215; - for (int _i216 = 0; _i216 < _list214.size; ++_i216) + org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); + struct.networkShares = new java.util.ArrayList<NetShare>(_list222.size); + @org.apache.thrift.annotation.Nullable NetShare _elem223; + for (int _i224 = 0; _i224 < _list222.size; ++_i224) { - _elem215 = new NetShare(); - _elem215.read(iprot); - struct.networkShares.add(_elem215); + _elem223 = new NetShare(); + _elem223.read(iprot); + struct.networkShares.add(_elem223); } iprot.readListEnd(); } @@ -3371,14 +3316,14 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 30: // LDAP_FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list217 = iprot.readListBegin(); - struct.ldapFilters = new ArrayList<LdapFilter>(_list217.size); - LdapFilter _elem218; - for (int _i219 = 0; _i219 < _list217.size; ++_i219) + org.apache.thrift.protocol.TList _list225 = iprot.readListBegin(); + struct.ldapFilters = new java.util.ArrayList<LdapFilter>(_list225.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem226; + for (int _i227 = 0; _i227 < _list225.size; ++_i227) { - _elem218 = new LdapFilter(); - _elem218.read(iprot); - struct.ldapFilters.add(_elem218); + _elem226 = new LdapFilter(); + _elem226.read(iprot); + struct.ldapFilters.add(_elem226); } iprot.readListEnd(); } @@ -3390,13 +3335,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 31: // PRESET_SCRIPT_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list220 = iprot.readListBegin(); - struct.presetScriptIds = new ArrayList<Integer>(_list220.size); - int _elem221; - for (int _i222 = 0; _i222 < _list220.size; ++_i222) + org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); + struct.presetScriptIds = new java.util.ArrayList<java.lang.Integer>(_list228.size); + int _elem229; + for (int _i230 = 0; _i230 < _list228.size; ++_i230) { - _elem221 = iprot.readI32(); - struct.presetScriptIds.add(_elem221); + _elem229 = iprot.readI32(); + struct.presetScriptIds.add(_elem229); } iprot.readListEnd(); } @@ -3408,13 +3353,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 32: // PRESET_NETWORK_SHARES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list223 = iprot.readListBegin(); - struct.presetNetworkShares = new ArrayList<Integer>(_list223.size); - int _elem224; - for (int _i225 = 0; _i225 < _list223.size; ++_i225) + org.apache.thrift.protocol.TList _list231 = iprot.readListBegin(); + struct.presetNetworkShares = new java.util.ArrayList<java.lang.Integer>(_list231.size); + int _elem232; + for (int _i233 = 0; _i233 < _list231.size; ++_i233) { - _elem224 = iprot.readI32(); - struct.presetNetworkShares.add(_elem224); + _elem232 = iprot.readI32(); + struct.presetNetworkShares.add(_elem232); } iprot.readListEnd(); } @@ -3426,13 +3371,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 33: // PRESET_LDAP_FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); - struct.presetLdapFilters = new ArrayList<Integer>(_list226.size); - int _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); + struct.presetLdapFilters = new java.util.ArrayList<java.lang.Integer>(_list234.size); + int _elem235; + for (int _i236 = 0; _i236 < _list234.size; ++_i236) { - _elem227 = iprot.readI32(); - struct.presetLdapFilters.add(_elem227); + _elem235 = iprot.readI32(); + struct.presetLdapFilters.add(_elem235); } iprot.readListEnd(); } @@ -3444,13 +3389,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture case 34: // PRESET_NETWORK_EXCEPTION_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list229 = iprot.readListBegin(); - struct.presetNetworkExceptionIds = new ArrayList<Integer>(_list229.size); - int _elem230; - for (int _i231 = 0; _i231 < _list229.size; ++_i231) + org.apache.thrift.protocol.TList _list237 = iprot.readListBegin(); + struct.presetNetworkExceptionIds = new java.util.ArrayList<java.lang.Integer>(_list237.size); + int _elem238; + for (int _i239 = 0; _i239 < _list237.size; ++_i239) { - _elem230 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem230); + _elem238 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem238); } iprot.readListEnd(); } @@ -3526,9 +3471,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture oprot.writeFieldBegin(NICS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.nics.size())); - for (String _iter232 : struct.nics) + for (java.lang.String _iter240 : struct.nics) { - oprot.writeString(_iter232); + oprot.writeString(_iter240); } oprot.writeListEnd(); } @@ -3538,9 +3483,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture oprot.writeFieldBegin(ALLOWED_USERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.allowedUsers.size())); - for (String _iter233 : struct.allowedUsers) + for (java.lang.String _iter241 : struct.allowedUsers) { - oprot.writeString(_iter233); + oprot.writeString(_iter241); } oprot.writeListEnd(); } @@ -3550,9 +3495,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 _iter234 : struct.networkExceptions) + for (NetRule _iter242 : struct.networkExceptions) { - _iter234.write(oprot); + _iter242.write(oprot); } oprot.writeListEnd(); } @@ -3596,9 +3541,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 _iter235 : struct.locationIds) + for (int _iter243 : struct.locationIds) { - oprot.writeI32(_iter235); + oprot.writeI32(_iter243); } oprot.writeListEnd(); } @@ -3618,9 +3563,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 _iter236 : struct.networkShares) + for (NetShare _iter244 : struct.networkShares) { - _iter236.write(oprot); + _iter244.write(oprot); } oprot.writeListEnd(); } @@ -3632,9 +3577,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 _iter237 : struct.ldapFilters) + for (LdapFilter _iter245 : struct.ldapFilters) { - _iter237.write(oprot); + _iter245.write(oprot); } oprot.writeListEnd(); } @@ -3646,9 +3591,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 _iter238 : struct.presetScriptIds) + for (int _iter246 : struct.presetScriptIds) { - oprot.writeI32(_iter238); + oprot.writeI32(_iter246); } oprot.writeListEnd(); } @@ -3660,9 +3605,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture oprot.writeFieldBegin(PRESET_NETWORK_SHARES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetNetworkShares.size())); - for (int _iter239 : struct.presetNetworkShares) + for (int _iter247 : struct.presetNetworkShares) { - oprot.writeI32(_iter239); + oprot.writeI32(_iter247); } oprot.writeListEnd(); } @@ -3674,9 +3619,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture oprot.writeFieldBegin(PRESET_LDAP_FILTERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.presetLdapFilters.size())); - for (int _iter240 : struct.presetLdapFilters) + for (int _iter248 : struct.presetLdapFilters) { - oprot.writeI32(_iter240); + oprot.writeI32(_iter248); } oprot.writeListEnd(); } @@ -3688,9 +3633,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture 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 _iter241 : struct.presetNetworkExceptionIds) + for (int _iter249 : struct.presetNetworkExceptionIds) { - oprot.writeI32(_iter241); + oprot.writeI32(_iter249); } oprot.writeListEnd(); } @@ -3703,18 +3648,18 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } - private static class LectureReadTupleSchemeFactory implements SchemeFactory { + private static class LectureReadTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public LectureReadTupleScheme getScheme() { return new LectureReadTupleScheme(); } } - private static class LectureReadTupleScheme extends TupleScheme<LectureRead> { + private static class LectureReadTupleScheme extends org.apache.thrift.scheme.TupleScheme<LectureRead> { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LectureRead 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.isSetLectureId()) { optionals.set(0); } @@ -3866,27 +3811,27 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (struct.isSetNics()) { { oprot.writeI32(struct.nics.size()); - for (String _iter242 : struct.nics) + for (java.lang.String _iter250 : struct.nics) { - oprot.writeString(_iter242); + oprot.writeString(_iter250); } } } if (struct.isSetAllowedUsers()) { { oprot.writeI32(struct.allowedUsers.size()); - for (String _iter243 : struct.allowedUsers) + for (java.lang.String _iter251 : struct.allowedUsers) { - oprot.writeString(_iter243); + oprot.writeString(_iter251); } } } if (struct.isSetNetworkExceptions()) { { oprot.writeI32(struct.networkExceptions.size()); - for (NetRule _iter244 : struct.networkExceptions) + for (NetRule _iter252 : struct.networkExceptions) { - _iter244.write(oprot); + _iter252.write(oprot); } } } @@ -3905,9 +3850,9 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (struct.isSetLocationIds()) { { oprot.writeI32(struct.locationIds.size()); - for (int _iter245 : struct.locationIds) + for (int _iter253 : struct.locationIds) { - oprot.writeI32(_iter245); + oprot.writeI32(_iter253); } } } @@ -3923,54 +3868,54 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture if (struct.isSetNetworkShares()) { { oprot.writeI32(struct.networkShares.size()); - for (NetShare _iter246 : struct.networkShares) + for (NetShare _iter254 : struct.networkShares) { - _iter246.write(oprot); + _iter254.write(oprot); } } } if (struct.isSetLdapFilters()) { { oprot.writeI32(struct.ldapFilters.size()); - for (LdapFilter _iter247 : struct.ldapFilters) + for (LdapFilter _iter255 : struct.ldapFilters) { - _iter247.write(oprot); + _iter255.write(oprot); } } } if (struct.isSetPresetScriptIds()) { { oprot.writeI32(struct.presetScriptIds.size()); - for (int _iter248 : struct.presetScriptIds) + for (int _iter256 : struct.presetScriptIds) { - oprot.writeI32(_iter248); + oprot.writeI32(_iter256); } } } if (struct.isSetPresetNetworkShares()) { { oprot.writeI32(struct.presetNetworkShares.size()); - for (int _iter249 : struct.presetNetworkShares) + for (int _iter257 : struct.presetNetworkShares) { - oprot.writeI32(_iter249); + oprot.writeI32(_iter257); } } } if (struct.isSetPresetLdapFilters()) { { oprot.writeI32(struct.presetLdapFilters.size()); - for (int _iter250 : struct.presetLdapFilters) + for (int _iter258 : struct.presetLdapFilters) { - oprot.writeI32(_iter250); + oprot.writeI32(_iter258); } } } if (struct.isSetPresetNetworkExceptionIds()) { { oprot.writeI32(struct.presetNetworkExceptionIds.size()); - for (int _iter251 : struct.presetNetworkExceptionIds) + for (int _iter259 : struct.presetNetworkExceptionIds) { - oprot.writeI32(_iter251); + oprot.writeI32(_iter259); } } } @@ -3978,8 +3923,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture @Override public void read(org.apache.thrift.protocol.TProtocol prot, LectureRead struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(33); + org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet incoming = iprot.readBitSet(33); if (incoming.get(0)) { struct.lectureId = iprot.readString(); struct.setLectureIdIsSet(true); @@ -4046,40 +3991,40 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } if (incoming.get(16)) { { - org.apache.thrift.protocol.TList _list252 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.nics = new ArrayList<String>(_list252.size); - String _elem253; - for (int _i254 = 0; _i254 < _list252.size; ++_i254) + org.apache.thrift.protocol.TList _list260 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.nics = new java.util.ArrayList<java.lang.String>(_list260.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem261; + for (int _i262 = 0; _i262 < _list260.size; ++_i262) { - _elem253 = iprot.readString(); - struct.nics.add(_elem253); + _elem261 = iprot.readString(); + struct.nics.add(_elem261); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { - org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.allowedUsers = new ArrayList<String>(_list255.size); - String _elem256; - for (int _i257 = 0; _i257 < _list255.size; ++_i257) + org.apache.thrift.protocol.TList _list263 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.allowedUsers = new java.util.ArrayList<java.lang.String>(_list263.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem264; + for (int _i265 = 0; _i265 < _list263.size; ++_i265) { - _elem256 = iprot.readString(); - struct.allowedUsers.add(_elem256); + _elem264 = iprot.readString(); + struct.allowedUsers.add(_elem264); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { - org.apache.thrift.protocol.TList _list258 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList<NetRule>(_list258.size); - NetRule _elem259; - for (int _i260 = 0; _i260 < _list258.size; ++_i260) + org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkExceptions = new java.util.ArrayList<NetRule>(_list266.size); + @org.apache.thrift.annotation.Nullable NetRule _elem267; + for (int _i268 = 0; _i268 < _list266.size; ++_i268) { - _elem259 = new NetRule(); - _elem259.read(iprot); - struct.networkExceptions.add(_elem259); + _elem267 = new NetRule(); + _elem267.read(iprot); + struct.networkExceptions.add(_elem267); } } struct.setNetworkExceptionsIsSet(true); @@ -4104,13 +4049,13 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } if (incoming.get(23)) { { - org.apache.thrift.protocol.TList _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.locationIds = new ArrayList<Integer>(_list261.size); - int _elem262; - for (int _i263 = 0; _i263 < _list261.size; ++_i263) + org.apache.thrift.protocol.TList _list269 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.locationIds = new java.util.ArrayList<java.lang.Integer>(_list269.size); + int _elem270; + for (int _i271 = 0; _i271 < _list269.size; ++_i271) { - _elem262 = iprot.readI32(); - struct.locationIds.add(_elem262); + _elem270 = iprot.readI32(); + struct.locationIds.add(_elem270); } } struct.setLocationIdsIsSet(true); @@ -4129,80 +4074,80 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } if (incoming.get(27)) { { - org.apache.thrift.protocol.TList _list264 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkShares = new ArrayList<NetShare>(_list264.size); - NetShare _elem265; - for (int _i266 = 0; _i266 < _list264.size; ++_i266) + org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkShares = new java.util.ArrayList<NetShare>(_list272.size); + @org.apache.thrift.annotation.Nullable NetShare _elem273; + for (int _i274 = 0; _i274 < _list272.size; ++_i274) { - _elem265 = new NetShare(); - _elem265.read(iprot); - struct.networkShares.add(_elem265); + _elem273 = new NetShare(); + _elem273.read(iprot); + struct.networkShares.add(_elem273); } } struct.setNetworkSharesIsSet(true); } if (incoming.get(28)) { { - org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.ldapFilters = new ArrayList<LdapFilter>(_list267.size); - LdapFilter _elem268; - for (int _i269 = 0; _i269 < _list267.size; ++_i269) + org.apache.thrift.protocol.TList _list275 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ldapFilters = new java.util.ArrayList<LdapFilter>(_list275.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem276; + for (int _i277 = 0; _i277 < _list275.size; ++_i277) { - _elem268 = new LdapFilter(); - _elem268.read(iprot); - struct.ldapFilters.add(_elem268); + _elem276 = new LdapFilter(); + _elem276.read(iprot); + struct.ldapFilters.add(_elem276); } } struct.setLdapFiltersIsSet(true); } if (incoming.get(29)) { { - org.apache.thrift.protocol.TList _list270 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetScriptIds = new ArrayList<Integer>(_list270.size); - int _elem271; - for (int _i272 = 0; _i272 < _list270.size; ++_i272) + org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetScriptIds = new java.util.ArrayList<java.lang.Integer>(_list278.size); + int _elem279; + for (int _i280 = 0; _i280 < _list278.size; ++_i280) { - _elem271 = iprot.readI32(); - struct.presetScriptIds.add(_elem271); + _elem279 = iprot.readI32(); + struct.presetScriptIds.add(_elem279); } } struct.setPresetScriptIdsIsSet(true); } if (incoming.get(30)) { { - org.apache.thrift.protocol.TList _list273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkShares = new ArrayList<Integer>(_list273.size); - int _elem274; - for (int _i275 = 0; _i275 < _list273.size; ++_i275) + org.apache.thrift.protocol.TList _list281 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkShares = new java.util.ArrayList<java.lang.Integer>(_list281.size); + int _elem282; + for (int _i283 = 0; _i283 < _list281.size; ++_i283) { - _elem274 = iprot.readI32(); - struct.presetNetworkShares.add(_elem274); + _elem282 = iprot.readI32(); + struct.presetNetworkShares.add(_elem282); } } struct.setPresetNetworkSharesIsSet(true); } if (incoming.get(31)) { { - org.apache.thrift.protocol.TList _list276 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetLdapFilters = new ArrayList<Integer>(_list276.size); - int _elem277; - for (int _i278 = 0; _i278 < _list276.size; ++_i278) + org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetLdapFilters = new java.util.ArrayList<java.lang.Integer>(_list284.size); + int _elem285; + for (int _i286 = 0; _i286 < _list284.size; ++_i286) { - _elem277 = iprot.readI32(); - struct.presetLdapFilters.add(_elem277); + _elem285 = iprot.readI32(); + struct.presetLdapFilters.add(_elem285); } } struct.setPresetLdapFiltersIsSet(true); } if (incoming.get(32)) { { - org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkExceptionIds = new ArrayList<Integer>(_list279.size); - int _elem280; - for (int _i281 = 0; _i281 < _list279.size; ++_i281) + org.apache.thrift.protocol.TList _list287 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkExceptionIds = new java.util.ArrayList<java.lang.Integer>(_list287.size); + int _elem288; + for (int _i289 = 0; _i289 < _list287.size; ++_i289) { - _elem280 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem280); + _elem288 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem288); } } struct.setPresetNetworkExceptionIdsIsSet(true); @@ -4210,5 +4155,8 @@ public class LectureRead implements org.apache.thrift.TBase<LectureRead, Lecture } } + 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(); + } } |