/** * 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; @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, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureRead"); private static final org.apache.thrift.protocol.TField LECTURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField LECTURE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("lectureName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)23); private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)24); private static final org.apache.thrift.protocol.TField AUTO_UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("autoUpdate", org.apache.thrift.protocol.TType.BOOL, (short)5); private static final org.apache.thrift.protocol.TField IS_ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("isEnabled", org.apache.thrift.protocol.TType.BOOL, (short)6); private static final org.apache.thrift.protocol.TField START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startTime", org.apache.thrift.protocol.TType.I64, (short)7); private static final org.apache.thrift.protocol.TField END_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endTime", org.apache.thrift.protocol.TType.I64, (short)8); private static final org.apache.thrift.protocol.TField LAST_USED_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUsed", org.apache.thrift.protocol.TType.I64, (short)9); private static final org.apache.thrift.protocol.TField USE_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("useCount", org.apache.thrift.protocol.TType.I32, (short)10); private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I64, (short)20); private static final org.apache.thrift.protocol.TField UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("updateTime", org.apache.thrift.protocol.TType.I64, (short)21); private static final org.apache.thrift.protocol.TField OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerId", org.apache.thrift.protocol.TType.STRING, (short)11); private static final org.apache.thrift.protocol.TField UPDATER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("updaterId", org.apache.thrift.protocol.TType.STRING, (short)12); private static final org.apache.thrift.protocol.TField RUNSCRIPT_FIELD_DESC = new org.apache.thrift.protocol.TField("runscript", org.apache.thrift.protocol.TType.STRING, (short)13); private static final org.apache.thrift.protocol.TField NICS_FIELD_DESC = new org.apache.thrift.protocol.TField("nics", org.apache.thrift.protocol.TType.LIST, (short)14); private static final org.apache.thrift.protocol.TField ALLOWED_USERS_FIELD_DESC = new org.apache.thrift.protocol.TField("allowedUsers", org.apache.thrift.protocol.TType.LIST, (short)15); private static final org.apache.thrift.protocol.TField NETWORK_EXCEPTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("networkExceptions", org.apache.thrift.protocol.TType.LIST, (short)16); private static final org.apache.thrift.protocol.TField IS_EXAM_FIELD_DESC = new org.apache.thrift.protocol.TField("isExam", org.apache.thrift.protocol.TType.BOOL, (short)17); private static final org.apache.thrift.protocol.TField HAS_INTERNET_ACCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("hasInternetAccess", org.apache.thrift.protocol.TType.BOOL, (short)18); private static final org.apache.thrift.protocol.TField DEFAULT_PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultPermissions", org.apache.thrift.protocol.TType.STRUCT, (short)19); private static final org.apache.thrift.protocol.TField USER_PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("userPermissions", org.apache.thrift.protocol.TType.STRUCT, (short)22); private static final org.apache.thrift.protocol.TField LOCATION_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("locationIds", org.apache.thrift.protocol.TType.LIST, (short)25); private static final org.apache.thrift.protocol.TField LIMIT_TO_LOCATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("limitToLocations", org.apache.thrift.protocol.TType.BOOL, (short)26); private static final org.apache.thrift.protocol.TField LIMIT_TO_ALLOWED_USERS_FIELD_DESC = new org.apache.thrift.protocol.TField("limitToAllowedUsers", org.apache.thrift.protocol.TType.BOOL, (short)27); private static final org.apache.thrift.protocol.TField HAS_USB_ACCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("hasUsbAccess", org.apache.thrift.protocol.TType.BOOL, (short)28); private static final org.apache.thrift.protocol.TField NETWORK_SHARES_FIELD_DESC = new org.apache.thrift.protocol.TField("networkShares", org.apache.thrift.protocol.TType.LIST, (short)29); private static final org.apache.thrift.protocol.TField LDAP_FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("ldapFilters", org.apache.thrift.protocol.TType.LIST, (short)30); private static final org.apache.thrift.protocol.TField PRESET_SCRIPT_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("presetScriptIds", org.apache.thrift.protocol.TType.LIST, (short)31); private static final org.apache.thrift.protocol.TField PRESET_NETWORK_SHARES_FIELD_DESC = new org.apache.thrift.protocol.TField("presetNetworkShares", org.apache.thrift.protocol.TType.LIST, (short)32); 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 org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LectureReadStandardSchemeFactory(); private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LectureReadTupleSchemeFactory(); 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 public long endTime; // required public long lastUsed; // required public int useCount; // required public long createTime; // required public long updateTime; // 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 nics; // required public @org.apache.thrift.annotation.Nullable java.util.List allowedUsers; // required public @org.apache.thrift.annotation.Nullable java.util.List networkExceptions; // required public boolean isExam; // required public boolean hasInternetAccess; // 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 locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required public boolean hasUsbAccess; // required public @org.apache.thrift.annotation.Nullable java.util.List networkShares; // optional public @org.apache.thrift.annotation.Nullable java.util.List ldapFilters; // optional public @org.apache.thrift.annotation.Nullable java.util.List presetScriptIds; // optional public @org.apache.thrift.annotation.Nullable java.util.List presetNetworkShares; // optional public @org.apache.thrift.annotation.Nullable java.util.List presetLdapFilters; // optional public @org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { LECTURE_ID((short)1, "lectureId"), LECTURE_NAME((short)2, "lectureName"), DESCRIPTION((short)3, "description"), IMAGE_VERSION_ID((short)23, "imageVersionId"), IMAGE_BASE_ID((short)24, "imageBaseId"), AUTO_UPDATE((short)5, "autoUpdate"), IS_ENABLED((short)6, "isEnabled"), START_TIME((short)7, "startTime"), END_TIME((short)8, "endTime"), LAST_USED((short)9, "lastUsed"), USE_COUNT((short)10, "useCount"), CREATE_TIME((short)20, "createTime"), UPDATE_TIME((short)21, "updateTime"), OWNER_ID((short)11, "ownerId"), UPDATER_ID((short)12, "updaterId"), RUNSCRIPT((short)13, "runscript"), NICS((short)14, "nics"), ALLOWED_USERS((short)15, "allowedUsers"), NETWORK_EXCEPTIONS((short)16, "networkExceptions"), IS_EXAM((short)17, "isExam"), HAS_INTERNET_ACCESS((short)18, "hasInternetAccess"), DEFAULT_PERMISSIONS((short)19, "defaultPermissions"), USER_PERMISSIONS((short)22, "userPermissions"), LOCATION_IDS((short)25, "locationIds"), LIMIT_TO_LOCATIONS((short)26, "limitToLocations"), LIMIT_TO_ALLOWED_USERS((short)27, "limitToAllowedUsers"), HAS_USB_ACCESS((short)28, "hasUsbAccess"), NETWORK_SHARES((short)29, "networkShares"), LDAP_FILTERS((short)30, "ldapFilters"), PRESET_SCRIPT_IDS((short)31, "presetScriptIds"), PRESET_NETWORK_SHARES((short)32, "presetNetworkShares"), PRESET_LDAP_FILTERS((short)33, "presetLdapFilters"), PRESET_NETWORK_EXCEPTION_IDS((short)34, "presetNetworkExceptionIds"); private static final java.util.Map byName = new java.util.HashMap(); static { for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } /** * 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 return LECTURE_ID; case 2: // LECTURE_NAME return LECTURE_NAME; case 3: // DESCRIPTION return DESCRIPTION; case 23: // IMAGE_VERSION_ID return IMAGE_VERSION_ID; case 24: // IMAGE_BASE_ID return IMAGE_BASE_ID; case 5: // AUTO_UPDATE return AUTO_UPDATE; case 6: // IS_ENABLED return IS_ENABLED; case 7: // START_TIME return START_TIME; case 8: // END_TIME return END_TIME; case 9: // LAST_USED return LAST_USED; case 10: // USE_COUNT return USE_COUNT; case 20: // CREATE_TIME return CREATE_TIME; case 21: // UPDATE_TIME return UPDATE_TIME; case 11: // OWNER_ID return OWNER_ID; case 12: // UPDATER_ID return UPDATER_ID; case 13: // RUNSCRIPT return RUNSCRIPT; case 14: // NICS return NICS; case 15: // ALLOWED_USERS return ALLOWED_USERS; case 16: // NETWORK_EXCEPTIONS return NETWORK_EXCEPTIONS; case 17: // IS_EXAM return IS_EXAM; case 18: // HAS_INTERNET_ACCESS return HAS_INTERNET_ACCESS; case 19: // DEFAULT_PERMISSIONS return DEFAULT_PERMISSIONS; case 22: // USER_PERMISSIONS return USER_PERMISSIONS; case 25: // LOCATION_IDS return LOCATION_IDS; case 26: // LIMIT_TO_LOCATIONS return LIMIT_TO_LOCATIONS; case 27: // LIMIT_TO_ALLOWED_USERS return LIMIT_TO_ALLOWED_USERS; case 28: // HAS_USB_ACCESS return HAS_USB_ACCESS; case 29: // NETWORK_SHARES return NETWORK_SHARES; case 30: // LDAP_FILTERS return LDAP_FILTERS; case 31: // PRESET_SCRIPT_IDS return PRESET_SCRIPT_IDS; case 32: // PRESET_NETWORK_SHARES return PRESET_NETWORK_SHARES; case 33: // PRESET_LDAP_FILTERS return PRESET_LDAP_FILTERS; case 34: // PRESET_NETWORK_EXCEPTION_IDS return PRESET_NETWORK_EXCEPTION_IDS; default: return null; } } /** * Find the _Fields constant that matches fieldId, throwing an exception * if it is not found. */ public static _Fields findByThriftIdOrThrow(int fieldId) { _Fields fields = findByThriftId(fieldId); if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!"); return fields; } /** * Find the _Fields constant that matches name, or null if its not found. */ @org.apache.thrift.annotation.Nullable public static _Fields findByName(java.lang.String name) { return byName.get(name); } private final short _thriftId; private final java.lang.String _fieldName; _Fields(short thriftId, java.lang.String fieldName) { _thriftId = thriftId; _fieldName = fieldName; } public short getThriftFieldId() { return _thriftId; } public java.lang.String getFieldName() { return _fieldName; } } // isset id assignments private static final int __AUTOUPDATE_ISSET_ID = 0; private static final int __ISENABLED_ISSET_ID = 1; private static final int __STARTTIME_ISSET_ID = 2; private static final int __ENDTIME_ISSET_ID = 3; private static final int __LASTUSED_ISSET_ID = 4; private static final int __USECOUNT_ISSET_ID = 5; private static final int __CREATETIME_ISSET_ID = 6; private static final int __UPDATETIME_ISSET_ID = 7; private static final int __ISEXAM_ISSET_ID = 8; private static final int __HASINTERNETACCESS_ISSET_ID = 9; private static final int __LIMITTOLOCATIONS_ISSET_ID = 10; private static final int __LIMITTOALLOWEDUSERS_ISSET_ID = 11; 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 java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { 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, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.AUTO_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("autoUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IS_ENABLED, new org.apache.thrift.meta_data.FieldMetaData("isEnabled", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.START_TIME, new org.apache.thrift.meta_data.FieldMetaData("startTime", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); tmpMap.put(_Fields.END_TIME, new org.apache.thrift.meta_data.FieldMetaData("endTime", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); tmpMap.put(_Fields.LAST_USED, new org.apache.thrift.meta_data.FieldMetaData("lastUsed", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); tmpMap.put(_Fields.USE_COUNT, new org.apache.thrift.meta_data.FieldMetaData("useCount", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); tmpMap.put(_Fields.UPDATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("updateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); tmpMap.put(_Fields.OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("ownerId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.UPDATER_ID, new org.apache.thrift.meta_data.FieldMetaData("updaterId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.RUNSCRIPT, new org.apache.thrift.meta_data.FieldMetaData("runscript", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NICS, new org.apache.thrift.meta_data.FieldMetaData("nics", org.apache.thrift.TFieldRequirementType.DEFAULT, 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.STRING)))); tmpMap.put(_Fields.ALLOWED_USERS, new org.apache.thrift.meta_data.FieldMetaData("allowedUsers", org.apache.thrift.TFieldRequirementType.DEFAULT, 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.STRING)))); tmpMap.put(_Fields.NETWORK_EXCEPTIONS, new org.apache.thrift.meta_data.FieldMetaData("networkExceptions", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NetRule.class)))); tmpMap.put(_Fields.IS_EXAM, new org.apache.thrift.meta_data.FieldMetaData("isExam", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.HAS_INTERNET_ACCESS, new org.apache.thrift.meta_data.FieldMetaData("hasInternetAccess", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.DEFAULT_PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("defaultPermissions", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class))); tmpMap.put(_Fields.USER_PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("userPermissions", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LecturePermissions.class))); tmpMap.put(_Fields.LOCATION_IDS, new org.apache.thrift.meta_data.FieldMetaData("locationIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 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)))); tmpMap.put(_Fields.LIMIT_TO_LOCATIONS, new org.apache.thrift.meta_data.FieldMetaData("limitToLocations", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.LIMIT_TO_ALLOWED_USERS, new org.apache.thrift.meta_data.FieldMetaData("limitToAllowedUsers", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.HAS_USB_ACCESS, new org.apache.thrift.meta_data.FieldMetaData("hasUsbAccess", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.NETWORK_SHARES, new org.apache.thrift.meta_data.FieldMetaData("networkShares", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, NetShare.class)))); tmpMap.put(_Fields.LDAP_FILTERS, new org.apache.thrift.meta_data.FieldMetaData("ldapFilters", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LdapFilter.class)))); tmpMap.put(_Fields.PRESET_SCRIPT_IDS, new org.apache.thrift.meta_data.FieldMetaData("presetScriptIds", 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)))); tmpMap.put(_Fields.PRESET_NETWORK_SHARES, new org.apache.thrift.meta_data.FieldMetaData("presetNetworkShares", 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)))); tmpMap.put(_Fields.PRESET_LDAP_FILTERS, new org.apache.thrift.meta_data.FieldMetaData("presetLdapFilters", 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)))); 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 = java.util.Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LectureRead.class, metaDataMap); } public LectureRead() { } public LectureRead( 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, long endTime, long lastUsed, int useCount, long createTime, long updateTime, java.lang.String ownerId, java.lang.String updaterId, java.lang.String runscript, java.util.List nics, java.util.List allowedUsers, java.util.List networkExceptions, boolean isExam, boolean hasInternetAccess, LecturePermissions defaultPermissions, java.util.List locationIds, boolean limitToLocations, boolean limitToAllowedUsers, boolean hasUsbAccess) { this(); this.lectureId = lectureId; this.lectureName = lectureName; this.description = description; this.imageVersionId = imageVersionId; this.imageBaseId = imageBaseId; this.autoUpdate = autoUpdate; setAutoUpdateIsSet(true); this.isEnabled = isEnabled; setIsEnabledIsSet(true); this.startTime = startTime; setStartTimeIsSet(true); this.endTime = endTime; setEndTimeIsSet(true); this.lastUsed = lastUsed; setLastUsedIsSet(true); this.useCount = useCount; setUseCountIsSet(true); this.createTime = createTime; setCreateTimeIsSet(true); this.updateTime = updateTime; setUpdateTimeIsSet(true); this.ownerId = ownerId; this.updaterId = updaterId; this.runscript = runscript; this.nics = nics; this.allowedUsers = allowedUsers; this.networkExceptions = networkExceptions; this.isExam = isExam; setIsExamIsSet(true); this.hasInternetAccess = hasInternetAccess; setHasInternetAccessIsSet(true); this.defaultPermissions = defaultPermissions; this.locationIds = locationIds; this.limitToLocations = limitToLocations; setLimitToLocationsIsSet(true); this.limitToAllowedUsers = limitToAllowedUsers; setLimitToAllowedUsersIsSet(true); this.hasUsbAccess = hasUsbAccess; setHasUsbAccessIsSet(true); } /** * Performs a deep copy on other. */ public LectureRead(LectureRead other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetLectureId()) { this.lectureId = other.lectureId; } if (other.isSetLectureName()) { this.lectureName = other.lectureName; } if (other.isSetDescription()) { this.description = other.description; } if (other.isSetImageVersionId()) { this.imageVersionId = other.imageVersionId; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } this.autoUpdate = other.autoUpdate; this.isEnabled = other.isEnabled; this.startTime = other.startTime; this.endTime = other.endTime; this.lastUsed = other.lastUsed; this.useCount = other.useCount; this.createTime = other.createTime; this.updateTime = other.updateTime; if (other.isSetOwnerId()) { this.ownerId = other.ownerId; } if (other.isSetUpdaterId()) { this.updaterId = other.updaterId; } if (other.isSetRunscript()) { this.runscript = other.runscript; } if (other.isSetNics()) { java.util.List __this__nics = new java.util.ArrayList(other.nics); this.nics = __this__nics; } if (other.isSetAllowedUsers()) { java.util.List __this__allowedUsers = new java.util.ArrayList(other.allowedUsers); this.allowedUsers = __this__allowedUsers; } if (other.isSetNetworkExceptions()) { java.util.List __this__networkExceptions = new java.util.ArrayList(other.networkExceptions.size()); for (NetRule other_element : other.networkExceptions) { __this__networkExceptions.add(new NetRule(other_element)); } this.networkExceptions = __this__networkExceptions; } this.isExam = other.isExam; this.hasInternetAccess = other.hasInternetAccess; if (other.isSetDefaultPermissions()) { this.defaultPermissions = new LecturePermissions(other.defaultPermissions); } if (other.isSetUserPermissions()) { this.userPermissions = new LecturePermissions(other.userPermissions); } if (other.isSetLocationIds()) { java.util.List __this__locationIds = new java.util.ArrayList(other.locationIds); this.locationIds = __this__locationIds; } this.limitToLocations = other.limitToLocations; this.limitToAllowedUsers = other.limitToAllowedUsers; this.hasUsbAccess = other.hasUsbAccess; if (other.isSetNetworkShares()) { java.util.List __this__networkShares = new java.util.ArrayList(other.networkShares.size()); for (NetShare other_element : other.networkShares) { __this__networkShares.add(new NetShare(other_element)); } this.networkShares = __this__networkShares; } if (other.isSetLdapFilters()) { java.util.List __this__ldapFilters = new java.util.ArrayList(other.ldapFilters.size()); for (LdapFilter other_element : other.ldapFilters) { __this__ldapFilters.add(new LdapFilter(other_element)); } this.ldapFilters = __this__ldapFilters; } if (other.isSetPresetScriptIds()) { java.util.List __this__presetScriptIds = new java.util.ArrayList(other.presetScriptIds); this.presetScriptIds = __this__presetScriptIds; } if (other.isSetPresetNetworkShares()) { java.util.List __this__presetNetworkShares = new java.util.ArrayList(other.presetNetworkShares); this.presetNetworkShares = __this__presetNetworkShares; } if (other.isSetPresetLdapFilters()) { java.util.List __this__presetLdapFilters = new java.util.ArrayList(other.presetLdapFilters); this.presetLdapFilters = __this__presetLdapFilters; } if (other.isSetPresetNetworkExceptionIds()) { java.util.List __this__presetNetworkExceptionIds = new java.util.ArrayList(other.presetNetworkExceptionIds); this.presetNetworkExceptionIds = __this__presetNetworkExceptionIds; } } public LectureRead deepCopy() { return new LectureRead(this); } @Override public void clear() { this.lectureId = null; this.lectureName = null; this.description = null; this.imageVersionId = null; this.imageBaseId = null; setAutoUpdateIsSet(false); this.autoUpdate = false; setIsEnabledIsSet(false); this.isEnabled = false; setStartTimeIsSet(false); this.startTime = 0; setEndTimeIsSet(false); this.endTime = 0; setLastUsedIsSet(false); this.lastUsed = 0; setUseCountIsSet(false); this.useCount = 0; setCreateTimeIsSet(false); this.createTime = 0; setUpdateTimeIsSet(false); this.updateTime = 0; this.ownerId = null; this.updaterId = null; this.runscript = null; this.nics = null; this.allowedUsers = null; this.networkExceptions = null; setIsExamIsSet(false); this.isExam = false; setHasInternetAccessIsSet(false); this.hasInternetAccess = false; this.defaultPermissions = null; this.userPermissions = null; this.locationIds = null; setLimitToLocationsIsSet(false); this.limitToLocations = false; setLimitToAllowedUsersIsSet(false); this.limitToAllowedUsers = false; setHasUsbAccessIsSet(false); this.hasUsbAccess = false; this.networkShares = null; this.ldapFilters = null; this.presetScriptIds = null; this.presetNetworkShares = null; this.presetLdapFilters = null; this.presetNetworkExceptionIds = null; } @org.apache.thrift.annotation.Nullable public java.lang.String getLectureId() { return this.lectureId; } public LectureRead setLectureId(@org.apache.thrift.annotation.Nullable java.lang.String lectureId) { this.lectureId = lectureId; return this; } public void unsetLectureId() { this.lectureId = null; } /** Returns true if field lectureId is set (has been assigned a value) and false otherwise */ public boolean isSetLectureId() { return this.lectureId != null; } public void setLectureIdIsSet(boolean value) { if (!value) { this.lectureId = null; } } @org.apache.thrift.annotation.Nullable public java.lang.String getLectureName() { return this.lectureName; } public LectureRead setLectureName(@org.apache.thrift.annotation.Nullable java.lang.String lectureName) { this.lectureName = lectureName; return this; } public void unsetLectureName() { this.lectureName = null; } /** Returns true if field lectureName is set (has been assigned a value) and false otherwise */ public boolean isSetLectureName() { return this.lectureName != null; } public void setLectureNameIsSet(boolean value) { if (!value) { this.lectureName = null; } } @org.apache.thrift.annotation.Nullable public java.lang.String getDescription() { return this.description; } public LectureRead setDescription(@org.apache.thrift.annotation.Nullable java.lang.String description) { this.description = description; return this; } public void unsetDescription() { this.description = null; } /** Returns true if field description is set (has been assigned a value) and false otherwise */ public boolean isSetDescription() { return this.description != null; } public void setDescriptionIsSet(boolean value) { if (!value) { this.description = null; } } @org.apache.thrift.annotation.Nullable public java.lang.String getImageVersionId() { return this.imageVersionId; } public LectureRead setImageVersionId(@org.apache.thrift.annotation.Nullable java.lang.String imageVersionId) { this.imageVersionId = imageVersionId; return this; } public void unsetImageVersionId() { this.imageVersionId = null; } /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ public boolean isSetImageVersionId() { return this.imageVersionId != null; } public void setImageVersionIdIsSet(boolean value) { if (!value) { this.imageVersionId = null; } } @org.apache.thrift.annotation.Nullable public java.lang.String getImageBaseId() { return this.imageBaseId; } public LectureRead setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) { this.imageBaseId = imageBaseId; return this; } public void unsetImageBaseId() { this.imageBaseId = null; } /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ public boolean isSetImageBaseId() { return this.imageBaseId != null; } public void setImageBaseIdIsSet(boolean value) { if (!value) { this.imageBaseId = null; } } public boolean isAutoUpdate() { return this.autoUpdate; } public LectureRead setAutoUpdate(boolean autoUpdate) { this.autoUpdate = autoUpdate; setAutoUpdateIsSet(true); return this; } public void unsetAutoUpdate() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID); } public void setAutoUpdateIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __AUTOUPDATE_ISSET_ID, value); } public boolean isIsEnabled() { return this.isEnabled; } public LectureRead setIsEnabled(boolean isEnabled) { this.isEnabled = isEnabled; setIsEnabledIsSet(true); return this; } public void unsetIsEnabled() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISENABLED_ISSET_ID); } public void setIsEnabledIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISENABLED_ISSET_ID, value); } public long getStartTime() { return this.startTime; } public LectureRead setStartTime(long startTime) { this.startTime = startTime; setStartTimeIsSet(true); return this; } public void unsetStartTime() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STARTTIME_ISSET_ID); } public void setStartTimeIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STARTTIME_ISSET_ID, value); } public long getEndTime() { return this.endTime; } public LectureRead setEndTime(long endTime) { this.endTime = endTime; setEndTimeIsSet(true); return this; } public void unsetEndTime() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ENDTIME_ISSET_ID); } public void setEndTimeIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ENDTIME_ISSET_ID, value); } public long getLastUsed() { return this.lastUsed; } public LectureRead setLastUsed(long lastUsed) { this.lastUsed = lastUsed; setLastUsedIsSet(true); return this; } public void unsetLastUsed() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LASTUSED_ISSET_ID); } public void setLastUsedIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LASTUSED_ISSET_ID, value); } public int getUseCount() { return this.useCount; } public LectureRead setUseCount(int useCount) { this.useCount = useCount; setUseCountIsSet(true); return this; } public void unsetUseCount() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __USECOUNT_ISSET_ID); } public void setUseCountIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __USECOUNT_ISSET_ID, value); } public long getCreateTime() { return this.createTime; } public LectureRead setCreateTime(long createTime) { this.createTime = createTime; setCreateTimeIsSet(true); return this; } public void unsetCreateTime() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATETIME_ISSET_ID); } public void setCreateTimeIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CREATETIME_ISSET_ID, value); } public long getUpdateTime() { return this.updateTime; } public LectureRead setUpdateTime(long updateTime) { this.updateTime = updateTime; setUpdateTimeIsSet(true); return this; } public void unsetUpdateTime() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UPDATETIME_ISSET_ID); } public void setUpdateTimeIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UPDATETIME_ISSET_ID, value); } @org.apache.thrift.annotation.Nullable public java.lang.String getOwnerId() { return this.ownerId; } public LectureRead setOwnerId(@org.apache.thrift.annotation.Nullable java.lang.String ownerId) { this.ownerId = ownerId; return this; } public void unsetOwnerId() { this.ownerId = null; } /** Returns true if field ownerId is set (has been assigned a value) and false otherwise */ public boolean isSetOwnerId() { return this.ownerId != null; } public void setOwnerIdIsSet(boolean value) { if (!value) { this.ownerId = null; } } @org.apache.thrift.annotation.Nullable public java.lang.String getUpdaterId() { return this.updaterId; } public LectureRead setUpdaterId(@org.apache.thrift.annotation.Nullable java.lang.String updaterId) { this.updaterId = updaterId; return this; } public void unsetUpdaterId() { this.updaterId = null; } /** Returns true if field updaterId is set (has been assigned a value) and false otherwise */ public boolean isSetUpdaterId() { return this.updaterId != null; } public void setUpdaterIdIsSet(boolean value) { if (!value) { this.updaterId = null; } } @org.apache.thrift.annotation.Nullable public java.lang.String getRunscript() { return this.runscript; } public LectureRead setRunscript(@org.apache.thrift.annotation.Nullable java.lang.String runscript) { this.runscript = runscript; return this; } public void unsetRunscript() { this.runscript = null; } /** Returns true if field runscript is set (has been assigned a value) and false otherwise */ public boolean isSetRunscript() { return this.runscript != null; } public void setRunscriptIsSet(boolean value) { if (!value) { this.runscript = null; } } public int getNicsSize() { return (this.nics == null) ? 0 : this.nics.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getNicsIterator() { return (this.nics == null) ? null : this.nics.iterator(); } public void addToNics(java.lang.String elem) { if (this.nics == null) { this.nics = new java.util.ArrayList(); } this.nics.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getNics() { return this.nics; } public LectureRead setNics(@org.apache.thrift.annotation.Nullable java.util.List nics) { this.nics = nics; return this; } public void unsetNics() { this.nics = null; } /** Returns true if field nics is set (has been assigned a value) and false otherwise */ public boolean isSetNics() { return this.nics != null; } public void setNicsIsSet(boolean value) { if (!value) { this.nics = null; } } public int getAllowedUsersSize() { return (this.allowedUsers == null) ? 0 : this.allowedUsers.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getAllowedUsersIterator() { return (this.allowedUsers == null) ? null : this.allowedUsers.iterator(); } public void addToAllowedUsers(java.lang.String elem) { if (this.allowedUsers == null) { this.allowedUsers = new java.util.ArrayList(); } this.allowedUsers.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getAllowedUsers() { return this.allowedUsers; } public LectureRead setAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List allowedUsers) { this.allowedUsers = allowedUsers; return this; } public void unsetAllowedUsers() { this.allowedUsers = null; } /** Returns true if field allowedUsers is set (has been assigned a value) and false otherwise */ public boolean isSetAllowedUsers() { return this.allowedUsers != null; } public void setAllowedUsersIsSet(boolean value) { if (!value) { this.allowedUsers = null; } } public int getNetworkExceptionsSize() { return (this.networkExceptions == null) ? 0 : this.networkExceptions.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getNetworkExceptionsIterator() { return (this.networkExceptions == null) ? null : this.networkExceptions.iterator(); } public void addToNetworkExceptions(NetRule elem) { if (this.networkExceptions == null) { this.networkExceptions = new java.util.ArrayList(); } this.networkExceptions.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getNetworkExceptions() { return this.networkExceptions; } public LectureRead setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List networkExceptions) { this.networkExceptions = networkExceptions; return this; } public void unsetNetworkExceptions() { this.networkExceptions = null; } /** Returns true if field networkExceptions is set (has been assigned a value) and false otherwise */ public boolean isSetNetworkExceptions() { return this.networkExceptions != null; } public void setNetworkExceptionsIsSet(boolean value) { if (!value) { this.networkExceptions = null; } } public boolean isIsExam() { return this.isExam; } public LectureRead setIsExam(boolean isExam) { this.isExam = isExam; setIsExamIsSet(true); return this; } public void unsetIsExam() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISEXAM_ISSET_ID); } public void setIsExamIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISEXAM_ISSET_ID, value); } public boolean isHasInternetAccess() { return this.hasInternetAccess; } public LectureRead setHasInternetAccess(boolean hasInternetAccess) { this.hasInternetAccess = hasInternetAccess; setHasInternetAccessIsSet(true); return this; } public void unsetHasInternetAccess() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __HASINTERNETACCESS_ISSET_ID); } public void setHasInternetAccessIsSet(boolean 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(@org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions) { this.defaultPermissions = defaultPermissions; return this; } public void unsetDefaultPermissions() { this.defaultPermissions = null; } /** Returns true if field defaultPermissions is set (has been assigned a value) and false otherwise */ public boolean isSetDefaultPermissions() { return this.defaultPermissions != null; } public void setDefaultPermissionsIsSet(boolean value) { if (!value) { this.defaultPermissions = null; } } @org.apache.thrift.annotation.Nullable public LecturePermissions getUserPermissions() { return this.userPermissions; } public LectureRead setUserPermissions(@org.apache.thrift.annotation.Nullable LecturePermissions userPermissions) { this.userPermissions = userPermissions; return this; } public void unsetUserPermissions() { this.userPermissions = null; } /** Returns true if field userPermissions is set (has been assigned a value) and false otherwise */ public boolean isSetUserPermissions() { return this.userPermissions != null; } public void setUserPermissionsIsSet(boolean value) { if (!value) { this.userPermissions = null; } } public int getLocationIdsSize() { return (this.locationIds == null) ? 0 : this.locationIds.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getLocationIdsIterator() { return (this.locationIds == null) ? null : this.locationIds.iterator(); } public void addToLocationIds(int elem) { if (this.locationIds == null) { this.locationIds = new java.util.ArrayList(); } this.locationIds.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getLocationIds() { return this.locationIds; } public LectureRead setLocationIds(@org.apache.thrift.annotation.Nullable java.util.List locationIds) { this.locationIds = locationIds; return this; } public void unsetLocationIds() { this.locationIds = null; } /** Returns true if field locationIds is set (has been assigned a value) and false otherwise */ public boolean isSetLocationIds() { return this.locationIds != null; } public void setLocationIdsIsSet(boolean value) { if (!value) { this.locationIds = null; } } public boolean isLimitToLocations() { return this.limitToLocations; } public LectureRead setLimitToLocations(boolean limitToLocations) { this.limitToLocations = limitToLocations; setLimitToLocationsIsSet(true); return this; } public void unsetLimitToLocations() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID); } public void setLimitToLocationsIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LIMITTOLOCATIONS_ISSET_ID, value); } public boolean isLimitToAllowedUsers() { return this.limitToAllowedUsers; } public LectureRead setLimitToAllowedUsers(boolean limitToAllowedUsers) { this.limitToAllowedUsers = limitToAllowedUsers; setLimitToAllowedUsersIsSet(true); return this; } public void unsetLimitToAllowedUsers() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID); } public void setLimitToAllowedUsersIsSet(boolean value) { __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __LIMITTOALLOWEDUSERS_ISSET_ID, value); } public boolean isHasUsbAccess() { return this.hasUsbAccess; } public LectureRead setHasUsbAccess(boolean hasUsbAccess) { this.hasUsbAccess = hasUsbAccess; setHasUsbAccessIsSet(true); return this; } public void unsetHasUsbAccess() { __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 org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __HASUSBACCESS_ISSET_ID); } public void setHasUsbAccessIsSet(boolean 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 getNetworkSharesIterator() { return (this.networkShares == null) ? null : this.networkShares.iterator(); } public void addToNetworkShares(NetShare elem) { if (this.networkShares == null) { this.networkShares = new java.util.ArrayList(); } this.networkShares.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getNetworkShares() { return this.networkShares; } public LectureRead setNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List networkShares) { this.networkShares = networkShares; return this; } public void unsetNetworkShares() { this.networkShares = null; } /** Returns true if field networkShares is set (has been assigned a value) and false otherwise */ public boolean isSetNetworkShares() { return this.networkShares != null; } public void setNetworkSharesIsSet(boolean value) { if (!value) { this.networkShares = null; } } public int getLdapFiltersSize() { return (this.ldapFilters == null) ? 0 : this.ldapFilters.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getLdapFiltersIterator() { return (this.ldapFilters == null) ? null : this.ldapFilters.iterator(); } public void addToLdapFilters(LdapFilter elem) { if (this.ldapFilters == null) { this.ldapFilters = new java.util.ArrayList(); } this.ldapFilters.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getLdapFilters() { return this.ldapFilters; } public LectureRead setLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List ldapFilters) { this.ldapFilters = ldapFilters; return this; } public void unsetLdapFilters() { this.ldapFilters = null; } /** Returns true if field ldapFilters is set (has been assigned a value) and false otherwise */ public boolean isSetLdapFilters() { return this.ldapFilters != null; } public void setLdapFiltersIsSet(boolean value) { if (!value) { this.ldapFilters = null; } } public int getPresetScriptIdsSize() { return (this.presetScriptIds == null) ? 0 : this.presetScriptIds.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getPresetScriptIdsIterator() { return (this.presetScriptIds == null) ? null : this.presetScriptIds.iterator(); } public void addToPresetScriptIds(int elem) { if (this.presetScriptIds == null) { this.presetScriptIds = new java.util.ArrayList(); } this.presetScriptIds.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getPresetScriptIds() { return this.presetScriptIds; } public LectureRead setPresetScriptIds(@org.apache.thrift.annotation.Nullable java.util.List presetScriptIds) { this.presetScriptIds = presetScriptIds; return this; } public void unsetPresetScriptIds() { this.presetScriptIds = null; } /** Returns true if field presetScriptIds is set (has been assigned a value) and false otherwise */ public boolean isSetPresetScriptIds() { return this.presetScriptIds != null; } public void setPresetScriptIdsIsSet(boolean value) { if (!value) { this.presetScriptIds = null; } } public int getPresetNetworkSharesSize() { return (this.presetNetworkShares == null) ? 0 : this.presetNetworkShares.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getPresetNetworkSharesIterator() { return (this.presetNetworkShares == null) ? null : this.presetNetworkShares.iterator(); } public void addToPresetNetworkShares(int elem) { if (this.presetNetworkShares == null) { this.presetNetworkShares = new java.util.ArrayList(); } this.presetNetworkShares.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getPresetNetworkShares() { return this.presetNetworkShares; } public LectureRead setPresetNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkShares) { this.presetNetworkShares = presetNetworkShares; return this; } public void unsetPresetNetworkShares() { this.presetNetworkShares = null; } /** Returns true if field presetNetworkShares is set (has been assigned a value) and false otherwise */ public boolean isSetPresetNetworkShares() { return this.presetNetworkShares != null; } public void setPresetNetworkSharesIsSet(boolean value) { if (!value) { this.presetNetworkShares = null; } } public int getPresetLdapFiltersSize() { return (this.presetLdapFilters == null) ? 0 : this.presetLdapFilters.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getPresetLdapFiltersIterator() { return (this.presetLdapFilters == null) ? null : this.presetLdapFilters.iterator(); } public void addToPresetLdapFilters(int elem) { if (this.presetLdapFilters == null) { this.presetLdapFilters = new java.util.ArrayList(); } this.presetLdapFilters.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getPresetLdapFilters() { return this.presetLdapFilters; } public LectureRead setPresetLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List presetLdapFilters) { this.presetLdapFilters = presetLdapFilters; return this; } public void unsetPresetLdapFilters() { this.presetLdapFilters = null; } /** Returns true if field presetLdapFilters is set (has been assigned a value) and false otherwise */ public boolean isSetPresetLdapFilters() { return this.presetLdapFilters != null; } public void setPresetLdapFiltersIsSet(boolean value) { if (!value) { this.presetLdapFilters = null; } } public int getPresetNetworkExceptionIdsSize() { return (this.presetNetworkExceptionIds == null) ? 0 : this.presetNetworkExceptionIds.size(); } @org.apache.thrift.annotation.Nullable public java.util.Iterator getPresetNetworkExceptionIdsIterator() { return (this.presetNetworkExceptionIds == null) ? null : this.presetNetworkExceptionIds.iterator(); } public void addToPresetNetworkExceptionIds(int elem) { if (this.presetNetworkExceptionIds == null) { this.presetNetworkExceptionIds = new java.util.ArrayList(); } this.presetNetworkExceptionIds.add(elem); } @org.apache.thrift.annotation.Nullable public java.util.List getPresetNetworkExceptionIds() { return this.presetNetworkExceptionIds; } public LectureRead setPresetNetworkExceptionIds(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds) { this.presetNetworkExceptionIds = presetNetworkExceptionIds; return this; } public void unsetPresetNetworkExceptionIds() { this.presetNetworkExceptionIds = null; } /** Returns true if field presetNetworkExceptionIds is set (has been assigned a value) and false otherwise */ public boolean isSetPresetNetworkExceptionIds() { return this.presetNetworkExceptionIds != null; } public void setPresetNetworkExceptionIdsIsSet(boolean value) { if (!value) { this.presetNetworkExceptionIds = null; } } 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((java.lang.String)value); } break; case LECTURE_NAME: if (value == null) { unsetLectureName(); } else { setLectureName((java.lang.String)value); } break; case DESCRIPTION: if (value == null) { unsetDescription(); } else { setDescription((java.lang.String)value); } break; case IMAGE_VERSION_ID: if (value == null) { unsetImageVersionId(); } else { setImageVersionId((java.lang.String)value); } break; case IMAGE_BASE_ID: if (value == null) { unsetImageBaseId(); } else { setImageBaseId((java.lang.String)value); } break; case AUTO_UPDATE: if (value == null) { unsetAutoUpdate(); } else { setAutoUpdate((java.lang.Boolean)value); } break; case IS_ENABLED: if (value == null) { unsetIsEnabled(); } else { setIsEnabled((java.lang.Boolean)value); } break; case START_TIME: if (value == null) { unsetStartTime(); } else { setStartTime((java.lang.Long)value); } break; case END_TIME: if (value == null) { unsetEndTime(); } else { setEndTime((java.lang.Long)value); } break; case LAST_USED: if (value == null) { unsetLastUsed(); } else { setLastUsed((java.lang.Long)value); } break; case USE_COUNT: if (value == null) { unsetUseCount(); } else { setUseCount((java.lang.Integer)value); } break; case CREATE_TIME: if (value == null) { unsetCreateTime(); } else { setCreateTime((java.lang.Long)value); } break; case UPDATE_TIME: if (value == null) { unsetUpdateTime(); } else { setUpdateTime((java.lang.Long)value); } break; case OWNER_ID: if (value == null) { unsetOwnerId(); } else { setOwnerId((java.lang.String)value); } break; case UPDATER_ID: if (value == null) { unsetUpdaterId(); } else { setUpdaterId((java.lang.String)value); } break; case RUNSCRIPT: if (value == null) { unsetRunscript(); } else { setRunscript((java.lang.String)value); } break; case NICS: if (value == null) { unsetNics(); } else { setNics((java.util.List)value); } break; case ALLOWED_USERS: if (value == null) { unsetAllowedUsers(); } else { setAllowedUsers((java.util.List)value); } break; case NETWORK_EXCEPTIONS: if (value == null) { unsetNetworkExceptions(); } else { setNetworkExceptions((java.util.List)value); } break; case IS_EXAM: if (value == null) { unsetIsExam(); } else { setIsExam((java.lang.Boolean)value); } break; case HAS_INTERNET_ACCESS: if (value == null) { unsetHasInternetAccess(); } else { setHasInternetAccess((java.lang.Boolean)value); } break; case DEFAULT_PERMISSIONS: if (value == null) { unsetDefaultPermissions(); } else { setDefaultPermissions((LecturePermissions)value); } break; case USER_PERMISSIONS: if (value == null) { unsetUserPermissions(); } else { setUserPermissions((LecturePermissions)value); } break; case LOCATION_IDS: if (value == null) { unsetLocationIds(); } else { setLocationIds((java.util.List)value); } break; case LIMIT_TO_LOCATIONS: if (value == null) { unsetLimitToLocations(); } else { setLimitToLocations((java.lang.Boolean)value); } break; case LIMIT_TO_ALLOWED_USERS: if (value == null) { unsetLimitToAllowedUsers(); } else { setLimitToAllowedUsers((java.lang.Boolean)value); } break; case HAS_USB_ACCESS: if (value == null) { unsetHasUsbAccess(); } else { setHasUsbAccess((java.lang.Boolean)value); } break; case NETWORK_SHARES: if (value == null) { unsetNetworkShares(); } else { setNetworkShares((java.util.List)value); } break; case LDAP_FILTERS: if (value == null) { unsetLdapFilters(); } else { setLdapFilters((java.util.List)value); } break; case PRESET_SCRIPT_IDS: if (value == null) { unsetPresetScriptIds(); } else { setPresetScriptIds((java.util.List)value); } break; case PRESET_NETWORK_SHARES: if (value == null) { unsetPresetNetworkShares(); } else { setPresetNetworkShares((java.util.List)value); } break; case PRESET_LDAP_FILTERS: if (value == null) { unsetPresetLdapFilters(); } else { setPresetLdapFilters((java.util.List)value); } break; case PRESET_NETWORK_EXCEPTION_IDS: if (value == null) { unsetPresetNetworkExceptionIds(); } else { setPresetNetworkExceptionIds((java.util.List)value); } break; } } @org.apache.thrift.annotation.Nullable public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LECTURE_ID: return getLectureId(); case LECTURE_NAME: return getLectureName(); case DESCRIPTION: return getDescription(); case IMAGE_VERSION_ID: return getImageVersionId(); case IMAGE_BASE_ID: return getImageBaseId(); case AUTO_UPDATE: return isAutoUpdate(); case IS_ENABLED: return isIsEnabled(); case START_TIME: return getStartTime(); case END_TIME: return getEndTime(); case LAST_USED: return getLastUsed(); case USE_COUNT: return getUseCount(); case CREATE_TIME: return getCreateTime(); case UPDATE_TIME: return getUpdateTime(); case OWNER_ID: return getOwnerId(); case UPDATER_ID: return getUpdaterId(); case RUNSCRIPT: return getRunscript(); case NICS: return getNics(); case ALLOWED_USERS: return getAllowedUsers(); case NETWORK_EXCEPTIONS: return getNetworkExceptions(); case IS_EXAM: return isIsExam(); case HAS_INTERNET_ACCESS: return isHasInternetAccess(); case DEFAULT_PERMISSIONS: return getDefaultPermissions(); case USER_PERMISSIONS: return getUserPermissions(); case LOCATION_IDS: return getLocationIds(); case LIMIT_TO_LOCATIONS: return isLimitToLocations(); case LIMIT_TO_ALLOWED_USERS: return isLimitToAllowedUsers(); case HAS_USB_ACCESS: return isHasUsbAccess(); case NETWORK_SHARES: return getNetworkShares(); case LDAP_FILTERS: return getLdapFilters(); case PRESET_SCRIPT_IDS: return getPresetScriptIds(); case PRESET_NETWORK_SHARES: return getPresetNetworkShares(); case PRESET_LDAP_FILTERS: return getPresetLdapFilters(); case PRESET_NETWORK_EXCEPTION_IDS: return getPresetNetworkExceptionIds(); } 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 java.lang.IllegalArgumentException(); } switch (field) { case LECTURE_ID: return isSetLectureId(); case LECTURE_NAME: return isSetLectureName(); case DESCRIPTION: return isSetDescription(); case IMAGE_VERSION_ID: return isSetImageVersionId(); case IMAGE_BASE_ID: return isSetImageBaseId(); case AUTO_UPDATE: return isSetAutoUpdate(); case IS_ENABLED: return isSetIsEnabled(); case START_TIME: return isSetStartTime(); case END_TIME: return isSetEndTime(); case LAST_USED: return isSetLastUsed(); case USE_COUNT: return isSetUseCount(); case CREATE_TIME: return isSetCreateTime(); case UPDATE_TIME: return isSetUpdateTime(); case OWNER_ID: return isSetOwnerId(); case UPDATER_ID: return isSetUpdaterId(); case RUNSCRIPT: return isSetRunscript(); case NICS: return isSetNics(); case ALLOWED_USERS: return isSetAllowedUsers(); case NETWORK_EXCEPTIONS: return isSetNetworkExceptions(); case IS_EXAM: return isSetIsExam(); case HAS_INTERNET_ACCESS: return isSetHasInternetAccess(); case DEFAULT_PERMISSIONS: return isSetDefaultPermissions(); case USER_PERMISSIONS: return isSetUserPermissions(); case LOCATION_IDS: return isSetLocationIds(); case LIMIT_TO_LOCATIONS: return isSetLimitToLocations(); case LIMIT_TO_ALLOWED_USERS: return isSetLimitToAllowedUsers(); case HAS_USB_ACCESS: return isSetHasUsbAccess(); case NETWORK_SHARES: return isSetNetworkShares(); case LDAP_FILTERS: return isSetLdapFilters(); case PRESET_SCRIPT_IDS: return isSetPresetScriptIds(); case PRESET_NETWORK_SHARES: return isSetPresetNetworkShares(); case PRESET_LDAP_FILTERS: return isSetPresetLdapFilters(); case PRESET_NETWORK_EXCEPTION_IDS: return isSetPresetNetworkExceptionIds(); } throw new java.lang.IllegalStateException(); } @Override public boolean equals(java.lang.Object that) { if (that instanceof LectureRead) return this.equals((LectureRead)that); return false; } 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(); if (this_present_lectureId || that_present_lectureId) { if (!(this_present_lectureId && that_present_lectureId)) return false; if (!this.lectureId.equals(that.lectureId)) return false; } boolean this_present_lectureName = true && this.isSetLectureName(); boolean that_present_lectureName = true && that.isSetLectureName(); if (this_present_lectureName || that_present_lectureName) { if (!(this_present_lectureName && that_present_lectureName)) return false; if (!this.lectureName.equals(that.lectureName)) return false; } boolean this_present_description = true && this.isSetDescription(); boolean that_present_description = true && that.isSetDescription(); if (this_present_description || that_present_description) { if (!(this_present_description && that_present_description)) return false; if (!this.description.equals(that.description)) return false; } boolean this_present_imageVersionId = true && this.isSetImageVersionId(); boolean that_present_imageVersionId = true && that.isSetImageVersionId(); if (this_present_imageVersionId || that_present_imageVersionId) { if (!(this_present_imageVersionId && that_present_imageVersionId)) return false; if (!this.imageVersionId.equals(that.imageVersionId)) return false; } boolean this_present_imageBaseId = true && this.isSetImageBaseId(); boolean that_present_imageBaseId = true && that.isSetImageBaseId(); if (this_present_imageBaseId || that_present_imageBaseId) { if (!(this_present_imageBaseId && that_present_imageBaseId)) return false; if (!this.imageBaseId.equals(that.imageBaseId)) return false; } boolean this_present_autoUpdate = true; boolean that_present_autoUpdate = true; if (this_present_autoUpdate || that_present_autoUpdate) { if (!(this_present_autoUpdate && that_present_autoUpdate)) return false; if (this.autoUpdate != that.autoUpdate) return false; } boolean this_present_isEnabled = true; boolean that_present_isEnabled = true; if (this_present_isEnabled || that_present_isEnabled) { if (!(this_present_isEnabled && that_present_isEnabled)) return false; if (this.isEnabled != that.isEnabled) return false; } boolean this_present_startTime = true; boolean that_present_startTime = true; if (this_present_startTime || that_present_startTime) { if (!(this_present_startTime && that_present_startTime)) return false; if (this.startTime != that.startTime) return false; } boolean this_present_endTime = true; boolean that_present_endTime = true; if (this_present_endTime || that_present_endTime) { if (!(this_present_endTime && that_present_endTime)) return false; if (this.endTime != that.endTime) return false; } boolean this_present_lastUsed = true; boolean that_present_lastUsed = true; if (this_present_lastUsed || that_present_lastUsed) { if (!(this_present_lastUsed && that_present_lastUsed)) return false; if (this.lastUsed != that.lastUsed) return false; } boolean this_present_useCount = true; boolean that_present_useCount = true; if (this_present_useCount || that_present_useCount) { if (!(this_present_useCount && that_present_useCount)) return false; if (this.useCount != that.useCount) return false; } boolean this_present_createTime = true; boolean that_present_createTime = true; if (this_present_createTime || that_present_createTime) { if (!(this_present_createTime && that_present_createTime)) return false; if (this.createTime != that.createTime) return false; } boolean this_present_updateTime = true; boolean that_present_updateTime = true; if (this_present_updateTime || that_present_updateTime) { if (!(this_present_updateTime && that_present_updateTime)) return false; if (this.updateTime != that.updateTime) return false; } boolean this_present_ownerId = true && this.isSetOwnerId(); boolean that_present_ownerId = true && that.isSetOwnerId(); if (this_present_ownerId || that_present_ownerId) { if (!(this_present_ownerId && that_present_ownerId)) return false; if (!this.ownerId.equals(that.ownerId)) return false; } boolean this_present_updaterId = true && this.isSetUpdaterId(); boolean that_present_updaterId = true && that.isSetUpdaterId(); if (this_present_updaterId || that_present_updaterId) { if (!(this_present_updaterId && that_present_updaterId)) return false; if (!this.updaterId.equals(that.updaterId)) return false; } boolean this_present_runscript = true && this.isSetRunscript(); boolean that_present_runscript = true && that.isSetRunscript(); if (this_present_runscript || that_present_runscript) { if (!(this_present_runscript && that_present_runscript)) return false; if (!this.runscript.equals(that.runscript)) return false; } boolean this_present_nics = true && this.isSetNics(); boolean that_present_nics = true && that.isSetNics(); if (this_present_nics || that_present_nics) { if (!(this_present_nics && that_present_nics)) return false; if (!this.nics.equals(that.nics)) return false; } boolean this_present_allowedUsers = true && this.isSetAllowedUsers(); boolean that_present_allowedUsers = true && that.isSetAllowedUsers(); if (this_present_allowedUsers || that_present_allowedUsers) { if (!(this_present_allowedUsers && that_present_allowedUsers)) return false; if (!this.allowedUsers.equals(that.allowedUsers)) return false; } boolean this_present_networkExceptions = true && this.isSetNetworkExceptions(); boolean that_present_networkExceptions = true && that.isSetNetworkExceptions(); if (this_present_networkExceptions || that_present_networkExceptions) { if (!(this_present_networkExceptions && that_present_networkExceptions)) return false; if (!this.networkExceptions.equals(that.networkExceptions)) return false; } boolean this_present_isExam = true; boolean that_present_isExam = true; if (this_present_isExam || that_present_isExam) { if (!(this_present_isExam && that_present_isExam)) return false; if (this.isExam != that.isExam) return false; } boolean this_present_hasInternetAccess = true; boolean that_present_hasInternetAccess = true; if (this_present_hasInternetAccess || that_present_hasInternetAccess) { if (!(this_present_hasInternetAccess && that_present_hasInternetAccess)) return false; if (this.hasInternetAccess != that.hasInternetAccess) return false; } boolean this_present_defaultPermissions = true && this.isSetDefaultPermissions(); boolean that_present_defaultPermissions = true && that.isSetDefaultPermissions(); if (this_present_defaultPermissions || that_present_defaultPermissions) { if (!(this_present_defaultPermissions && that_present_defaultPermissions)) return false; if (!this.defaultPermissions.equals(that.defaultPermissions)) return false; } boolean this_present_userPermissions = true && this.isSetUserPermissions(); boolean that_present_userPermissions = true && that.isSetUserPermissions(); if (this_present_userPermissions || that_present_userPermissions) { if (!(this_present_userPermissions && that_present_userPermissions)) return false; if (!this.userPermissions.equals(that.userPermissions)) return false; } boolean this_present_locationIds = true && this.isSetLocationIds(); boolean that_present_locationIds = true && that.isSetLocationIds(); if (this_present_locationIds || that_present_locationIds) { if (!(this_present_locationIds && that_present_locationIds)) return false; if (!this.locationIds.equals(that.locationIds)) return false; } boolean this_present_limitToLocations = true; boolean that_present_limitToLocations = true; if (this_present_limitToLocations || that_present_limitToLocations) { if (!(this_present_limitToLocations && that_present_limitToLocations)) return false; if (this.limitToLocations != that.limitToLocations) return false; } boolean this_present_limitToAllowedUsers = true; boolean that_present_limitToAllowedUsers = true; if (this_present_limitToAllowedUsers || that_present_limitToAllowedUsers) { if (!(this_present_limitToAllowedUsers && that_present_limitToAllowedUsers)) return false; if (this.limitToAllowedUsers != that.limitToAllowedUsers) return false; } boolean this_present_hasUsbAccess = true; boolean that_present_hasUsbAccess = true; if (this_present_hasUsbAccess || that_present_hasUsbAccess) { if (!(this_present_hasUsbAccess && that_present_hasUsbAccess)) return false; if (this.hasUsbAccess != that.hasUsbAccess) return false; } boolean this_present_networkShares = true && this.isSetNetworkShares(); boolean that_present_networkShares = true && that.isSetNetworkShares(); if (this_present_networkShares || that_present_networkShares) { if (!(this_present_networkShares && that_present_networkShares)) return false; if (!this.networkShares.equals(that.networkShares)) return false; } boolean this_present_ldapFilters = true && this.isSetLdapFilters(); boolean that_present_ldapFilters = true && that.isSetLdapFilters(); if (this_present_ldapFilters || that_present_ldapFilters) { if (!(this_present_ldapFilters && that_present_ldapFilters)) return false; if (!this.ldapFilters.equals(that.ldapFilters)) return false; } boolean this_present_presetScriptIds = true && this.isSetPresetScriptIds(); boolean that_present_presetScriptIds = true && that.isSetPresetScriptIds(); if (this_present_presetScriptIds || that_present_presetScriptIds) { if (!(this_present_presetScriptIds && that_present_presetScriptIds)) return false; if (!this.presetScriptIds.equals(that.presetScriptIds)) return false; } boolean this_present_presetNetworkShares = true && this.isSetPresetNetworkShares(); boolean that_present_presetNetworkShares = true && that.isSetPresetNetworkShares(); if (this_present_presetNetworkShares || that_present_presetNetworkShares) { if (!(this_present_presetNetworkShares && that_present_presetNetworkShares)) return false; if (!this.presetNetworkShares.equals(that.presetNetworkShares)) return false; } boolean this_present_presetLdapFilters = true && this.isSetPresetLdapFilters(); boolean that_present_presetLdapFilters = true && that.isSetPresetLdapFilters(); if (this_present_presetLdapFilters || that_present_presetLdapFilters) { if (!(this_present_presetLdapFilters && that_present_presetLdapFilters)) return false; if (!this.presetLdapFilters.equals(that.presetLdapFilters)) return false; } boolean this_present_presetNetworkExceptionIds = true && this.isSetPresetNetworkExceptionIds(); boolean that_present_presetNetworkExceptionIds = true && that.isSetPresetNetworkExceptionIds(); if (this_present_presetNetworkExceptionIds || that_present_presetNetworkExceptionIds) { if (!(this_present_presetNetworkExceptionIds && that_present_presetNetworkExceptionIds)) return false; if (!this.presetNetworkExceptionIds.equals(that.presetNetworkExceptionIds)) return false; } return true; } @Override public int 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 public int compareTo(LectureRead other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.compare(isSetLectureId(), other.isSetLectureId()); if (lastComparison != 0) { return lastComparison; } if (isSetLectureId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureId, other.lectureId); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetLectureName(), other.isSetLectureName()); if (lastComparison != 0) { return lastComparison; } if (isSetLectureName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lectureName, other.lectureName); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetDescription(), other.isSetDescription()); if (lastComparison != 0) { return lastComparison; } if (isSetDescription()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetImageVersionId(), other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } if (isSetImageVersionId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } if (isSetImageBaseId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetAutoUpdate(), other.isSetAutoUpdate()); if (lastComparison != 0) { return lastComparison; } if (isSetAutoUpdate()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.autoUpdate, other.autoUpdate); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetIsEnabled(), other.isSetIsEnabled()); if (lastComparison != 0) { return lastComparison; } if (isSetIsEnabled()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEnabled, other.isEnabled); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetStartTime(), other.isSetStartTime()); if (lastComparison != 0) { return lastComparison; } if (isSetStartTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startTime, other.startTime); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetEndTime(), other.isSetEndTime()); if (lastComparison != 0) { return lastComparison; } if (isSetEndTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endTime, other.endTime); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetLastUsed(), other.isSetLastUsed()); if (lastComparison != 0) { return lastComparison; } if (isSetLastUsed()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUsed, other.lastUsed); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetUseCount(), other.isSetUseCount()); if (lastComparison != 0) { return lastComparison; } if (isSetUseCount()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.useCount, other.useCount); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetCreateTime(), other.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetUpdateTime(), other.isSetUpdateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetUpdateTime()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updateTime, other.updateTime); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetOwnerId(), other.isSetOwnerId()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerId, other.ownerId); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetUpdaterId(), other.isSetUpdaterId()); if (lastComparison != 0) { return lastComparison; } if (isSetUpdaterId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updaterId, other.updaterId); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetRunscript(), other.isSetRunscript()); if (lastComparison != 0) { return lastComparison; } if (isSetRunscript()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runscript, other.runscript); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetNics(), other.isSetNics()); if (lastComparison != 0) { return lastComparison; } if (isSetNics()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nics, other.nics); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetAllowedUsers(), other.isSetAllowedUsers()); if (lastComparison != 0) { return lastComparison; } if (isSetAllowedUsers()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allowedUsers, other.allowedUsers); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetNetworkExceptions(), other.isSetNetworkExceptions()); if (lastComparison != 0) { return lastComparison; } if (isSetNetworkExceptions()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.networkExceptions, other.networkExceptions); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetIsExam(), other.isSetIsExam()); if (lastComparison != 0) { return lastComparison; } if (isSetIsExam()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isExam, other.isExam); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetHasInternetAccess(), other.isSetHasInternetAccess()); if (lastComparison != 0) { return lastComparison; } if (isSetHasInternetAccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasInternetAccess, other.hasInternetAccess); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetDefaultPermissions(), other.isSetDefaultPermissions()); if (lastComparison != 0) { return lastComparison; } if (isSetDefaultPermissions()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultPermissions, other.defaultPermissions); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetUserPermissions(), other.isSetUserPermissions()); if (lastComparison != 0) { return lastComparison; } if (isSetUserPermissions()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPermissions, other.userPermissions); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetLocationIds(), other.isSetLocationIds()); if (lastComparison != 0) { return lastComparison; } if (isSetLocationIds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationIds, other.locationIds); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetLimitToLocations(), other.isSetLimitToLocations()); if (lastComparison != 0) { return lastComparison; } if (isSetLimitToLocations()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limitToLocations, other.limitToLocations); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetLimitToAllowedUsers(), other.isSetLimitToAllowedUsers()); if (lastComparison != 0) { return lastComparison; } if (isSetLimitToAllowedUsers()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limitToAllowedUsers, other.limitToAllowedUsers); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetHasUsbAccess(), other.isSetHasUsbAccess()); if (lastComparison != 0) { return lastComparison; } if (isSetHasUsbAccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasUsbAccess, other.hasUsbAccess); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetNetworkShares(), other.isSetNetworkShares()); if (lastComparison != 0) { return lastComparison; } if (isSetNetworkShares()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.networkShares, other.networkShares); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetLdapFilters(), other.isSetLdapFilters()); if (lastComparison != 0) { return lastComparison; } if (isSetLdapFilters()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ldapFilters, other.ldapFilters); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetPresetScriptIds(), other.isSetPresetScriptIds()); if (lastComparison != 0) { return lastComparison; } if (isSetPresetScriptIds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetScriptIds, other.presetScriptIds); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetPresetNetworkShares(), other.isSetPresetNetworkShares()); if (lastComparison != 0) { return lastComparison; } if (isSetPresetNetworkShares()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetNetworkShares, other.presetNetworkShares); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetPresetLdapFilters(), other.isSetPresetLdapFilters()); if (lastComparison != 0) { return lastComparison; } if (isSetPresetLdapFilters()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetLdapFilters, other.presetLdapFilters); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.compare(isSetPresetNetworkExceptionIds(), other.isSetPresetNetworkExceptionIds()); if (lastComparison != 0) { return lastComparison; } if (isSetPresetNetworkExceptionIds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.presetNetworkExceptionIds, other.presetNetworkExceptionIds); if (lastComparison != 0) { return lastComparison; } } 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 { scheme(iprot).read(iprot, this); } public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { scheme(oprot).write(oprot, this); } @Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("LectureRead("); boolean first = true; sb.append("lectureId:"); if (this.lectureId == null) { sb.append("null"); } else { sb.append(this.lectureId); } first = false; if (!first) sb.append(", "); sb.append("lectureName:"); if (this.lectureName == null) { sb.append("null"); } else { sb.append(this.lectureName); } first = false; if (!first) sb.append(", "); sb.append("description:"); if (this.description == null) { sb.append("null"); } else { sb.append(this.description); } first = false; if (!first) sb.append(", "); sb.append("imageVersionId:"); if (this.imageVersionId == null) { sb.append("null"); } else { sb.append(this.imageVersionId); } first = false; if (!first) sb.append(", "); sb.append("imageBaseId:"); if (this.imageBaseId == null) { sb.append("null"); } else { sb.append(this.imageBaseId); } first = false; if (!first) sb.append(", "); sb.append("autoUpdate:"); sb.append(this.autoUpdate); first = false; if (!first) sb.append(", "); sb.append("isEnabled:"); sb.append(this.isEnabled); first = false; if (!first) sb.append(", "); sb.append("startTime:"); sb.append(this.startTime); first = false; if (!first) sb.append(", "); sb.append("endTime:"); sb.append(this.endTime); first = false; if (!first) sb.append(", "); sb.append("lastUsed:"); sb.append(this.lastUsed); first = false; if (!first) sb.append(", "); sb.append("useCount:"); sb.append(this.useCount); first = false; if (!first) sb.append(", "); sb.append("createTime:"); sb.append(this.createTime); first = false; if (!first) sb.append(", "); sb.append("updateTime:"); sb.append(this.updateTime); first = false; if (!first) sb.append(", "); sb.append("ownerId:"); if (this.ownerId == null) { sb.append("null"); } else { sb.append(this.ownerId); } first = false; if (!first) sb.append(", "); sb.append("updaterId:"); if (this.updaterId == null) { sb.append("null"); } else { sb.append(this.updaterId); } first = false; if (!first) sb.append(", "); sb.append("runscript:"); if (this.runscript == null) { sb.append("null"); } else { sb.append(this.runscript); } first = false; if (!first) sb.append(", "); sb.append("nics:"); if (this.nics == null) { sb.append("null"); } else { sb.append(this.nics); } first = false; if (!first) sb.append(", "); sb.append("allowedUsers:"); if (this.allowedUsers == null) { sb.append("null"); } else { sb.append(this.allowedUsers); } first = false; if (!first) sb.append(", "); sb.append("networkExceptions:"); if (this.networkExceptions == null) { sb.append("null"); } else { sb.append(this.networkExceptions); } first = false; if (!first) sb.append(", "); sb.append("isExam:"); sb.append(this.isExam); first = false; if (!first) sb.append(", "); sb.append("hasInternetAccess:"); sb.append(this.hasInternetAccess); first = false; if (!first) sb.append(", "); sb.append("defaultPermissions:"); if (this.defaultPermissions == null) { sb.append("null"); } else { sb.append(this.defaultPermissions); } first = false; if (isSetUserPermissions()) { if (!first) sb.append(", "); sb.append("userPermissions:"); if (this.userPermissions == null) { sb.append("null"); } else { sb.append(this.userPermissions); } first = false; } if (!first) sb.append(", "); sb.append("locationIds:"); if (this.locationIds == null) { sb.append("null"); } else { sb.append(this.locationIds); } first = false; if (!first) sb.append(", "); sb.append("limitToLocations:"); sb.append(this.limitToLocations); first = false; if (!first) sb.append(", "); sb.append("limitToAllowedUsers:"); sb.append(this.limitToAllowedUsers); first = false; if (!first) sb.append(", "); sb.append("hasUsbAccess:"); sb.append(this.hasUsbAccess); first = false; if (isSetNetworkShares()) { if (!first) sb.append(", "); sb.append("networkShares:"); if (this.networkShares == null) { sb.append("null"); } else { sb.append(this.networkShares); } first = false; } if (isSetLdapFilters()) { if (!first) sb.append(", "); sb.append("ldapFilters:"); if (this.ldapFilters == null) { sb.append("null"); } else { sb.append(this.ldapFilters); } first = false; } if (isSetPresetScriptIds()) { if (!first) sb.append(", "); sb.append("presetScriptIds:"); if (this.presetScriptIds == null) { sb.append("null"); } else { sb.append(this.presetScriptIds); } first = false; } if (isSetPresetNetworkShares()) { if (!first) sb.append(", "); sb.append("presetNetworkShares:"); if (this.presetNetworkShares == null) { sb.append("null"); } else { sb.append(this.presetNetworkShares); } first = false; } if (isSetPresetLdapFilters()) { if (!first) sb.append(", "); sb.append("presetLdapFilters:"); if (this.presetLdapFilters == null) { sb.append("null"); } else { sb.append(this.presetLdapFilters); } first = false; } if (isSetPresetNetworkExceptionIds()) { if (!first) sb.append(", "); sb.append("presetNetworkExceptionIds:"); if (this.presetNetworkExceptionIds == null) { sb.append("null"); } else { sb.append(this.presetNetworkExceptionIds); } first = false; } sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (defaultPermissions != null) { defaultPermissions.validate(); } if (userPermissions != null) { userPermissions.validate(); } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } private static class LectureReadStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public LectureReadStandardScheme getScheme() { return new LectureReadStandardScheme(); } } private static class LectureReadStandardScheme extends org.apache.thrift.scheme.StandardScheme { public void read(org.apache.thrift.protocol.TProtocol iprot, LectureRead struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // LECTURE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.lectureId = iprot.readString(); struct.setLectureIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 2: // LECTURE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.lectureName = iprot.readString(); struct.setLectureNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // DESCRIPTION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.description = iprot.readString(); struct.setDescriptionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 23: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.imageVersionId = iprot.readString(); struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 24: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 5: // AUTO_UPDATE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.autoUpdate = iprot.readBool(); struct.setAutoUpdateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 6: // IS_ENABLED if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.isEnabled = iprot.readBool(); struct.setIsEnabledIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 7: // START_TIME if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.startTime = iprot.readI64(); struct.setStartTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 8: // END_TIME if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.endTime = iprot.readI64(); struct.setEndTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 9: // LAST_USED if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.lastUsed = iprot.readI64(); struct.setLastUsedIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 10: // USE_COUNT if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.useCount = iprot.readI32(); struct.setUseCountIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 20: // CREATE_TIME if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.createTime = iprot.readI64(); struct.setCreateTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 21: // UPDATE_TIME if (schemeField.type == org.apache.thrift.protocol.TType.I64) { struct.updateTime = iprot.readI64(); struct.setUpdateTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 11: // OWNER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.ownerId = iprot.readString(); struct.setOwnerIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 12: // UPDATER_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.updaterId = iprot.readString(); struct.setUpdaterIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 13: // RUNSCRIPT if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.runscript = iprot.readString(); struct.setRunscriptIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 14: // NICS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); struct.nics = new java.util.ArrayList(_list210.size); @org.apache.thrift.annotation.Nullable java.lang.String _elem211; for (int _i212 = 0; _i212 < _list210.size; ++_i212) { _elem211 = iprot.readString(); struct.nics.add(_elem211); } iprot.readListEnd(); } struct.setNicsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 15: // ALLOWED_USERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list213 = iprot.readListBegin(); struct.allowedUsers = new java.util.ArrayList(_list213.size); @org.apache.thrift.annotation.Nullable java.lang.String _elem214; for (int _i215 = 0; _i215 < _list213.size; ++_i215) { _elem214 = iprot.readString(); struct.allowedUsers.add(_elem214); } iprot.readListEnd(); } struct.setAllowedUsersIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 16: // NETWORK_EXCEPTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list216 = iprot.readListBegin(); struct.networkExceptions = new java.util.ArrayList(_list216.size); @org.apache.thrift.annotation.Nullable NetRule _elem217; for (int _i218 = 0; _i218 < _list216.size; ++_i218) { _elem217 = new NetRule(); _elem217.read(iprot); struct.networkExceptions.add(_elem217); } iprot.readListEnd(); } struct.setNetworkExceptionsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 17: // IS_EXAM if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.isExam = iprot.readBool(); struct.setIsExamIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 18: // HAS_INTERNET_ACCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.hasInternetAccess = iprot.readBool(); struct.setHasInternetAccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 19: // DEFAULT_PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.defaultPermissions = new LecturePermissions(); struct.defaultPermissions.read(iprot); struct.setDefaultPermissionsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 22: // USER_PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.userPermissions = new LecturePermissions(); struct.userPermissions.read(iprot); struct.setUserPermissionsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 25: // LOCATION_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list219 = iprot.readListBegin(); struct.locationIds = new java.util.ArrayList(_list219.size); int _elem220; for (int _i221 = 0; _i221 < _list219.size; ++_i221) { _elem220 = iprot.readI32(); struct.locationIds.add(_elem220); } iprot.readListEnd(); } struct.setLocationIdsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 26: // LIMIT_TO_LOCATIONS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.limitToLocations = iprot.readBool(); struct.setLimitToLocationsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 27: // LIMIT_TO_ALLOWED_USERS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.limitToAllowedUsers = iprot.readBool(); struct.setLimitToAllowedUsersIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 28: // HAS_USB_ACCESS if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.hasUsbAccess = iprot.readBool(); struct.setHasUsbAccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 29: // NETWORK_SHARES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); struct.networkShares = new java.util.ArrayList(_list222.size); @org.apache.thrift.annotation.Nullable NetShare _elem223; for (int _i224 = 0; _i224 < _list222.size; ++_i224) { _elem223 = new NetShare(); _elem223.read(iprot); struct.networkShares.add(_elem223); } iprot.readListEnd(); } struct.setNetworkSharesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 30: // LDAP_FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list225 = iprot.readListBegin(); struct.ldapFilters = new java.util.ArrayList(_list225.size); @org.apache.thrift.annotation.Nullable LdapFilter _elem226; for (int _i227 = 0; _i227 < _list225.size; ++_i227) { _elem226 = new LdapFilter(); _elem226.read(iprot); struct.ldapFilters.add(_elem226); } iprot.readListEnd(); } struct.setLdapFiltersIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 31: // PRESET_SCRIPT_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); struct.presetScriptIds = new java.util.ArrayList(_list228.size); int _elem229; for (int _i230 = 0; _i230 < _list228.size; ++_i230) { _elem229 = iprot.readI32(); struct.presetScriptIds.add(_elem229); } iprot.readListEnd(); } struct.setPresetScriptIdsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 32: // PRESET_NETWORK_SHARES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list231 = iprot.readListBegin(); struct.presetNetworkShares = new java.util.ArrayList(_list231.size); int _elem232; for (int _i233 = 0; _i233 < _list231.size; ++_i233) { _elem232 = iprot.readI32(); struct.presetNetworkShares.add(_elem232); } iprot.readListEnd(); } struct.setPresetNetworkSharesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 33: // PRESET_LDAP_FILTERS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); struct.presetLdapFilters = new java.util.ArrayList(_list234.size); int _elem235; for (int _i236 = 0; _i236 < _list234.size; ++_i236) { _elem235 = iprot.readI32(); struct.presetLdapFilters.add(_elem235); } iprot.readListEnd(); } struct.setPresetLdapFiltersIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 34: // PRESET_NETWORK_EXCEPTION_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list237 = iprot.readListBegin(); struct.presetNetworkExceptionIds = new java.util.ArrayList(_list237.size); int _elem238; for (int _i239 = 0; _i239 < _list237.size; ++_i239) { _elem238 = iprot.readI32(); struct.presetNetworkExceptionIds.add(_elem238); } iprot.readListEnd(); } struct.setPresetNetworkExceptionIdsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); } public void write(org.apache.thrift.protocol.TProtocol oprot, LectureRead struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.lectureId != null) { oprot.writeFieldBegin(LECTURE_ID_FIELD_DESC); oprot.writeString(struct.lectureId); oprot.writeFieldEnd(); } if (struct.lectureName != null) { oprot.writeFieldBegin(LECTURE_NAME_FIELD_DESC); oprot.writeString(struct.lectureName); oprot.writeFieldEnd(); } if (struct.description != null) { oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); oprot.writeString(struct.description); oprot.writeFieldEnd(); } oprot.writeFieldBegin(AUTO_UPDATE_FIELD_DESC); oprot.writeBool(struct.autoUpdate); oprot.writeFieldEnd(); oprot.writeFieldBegin(IS_ENABLED_FIELD_DESC); oprot.writeBool(struct.isEnabled); oprot.writeFieldEnd(); oprot.writeFieldBegin(START_TIME_FIELD_DESC); oprot.writeI64(struct.startTime); oprot.writeFieldEnd(); oprot.writeFieldBegin(END_TIME_FIELD_DESC); oprot.writeI64(struct.endTime); oprot.writeFieldEnd(); oprot.writeFieldBegin(LAST_USED_FIELD_DESC); oprot.writeI64(struct.lastUsed); oprot.writeFieldEnd(); oprot.writeFieldBegin(USE_COUNT_FIELD_DESC); oprot.writeI32(struct.useCount); oprot.writeFieldEnd(); if (struct.ownerId != null) { oprot.writeFieldBegin(OWNER_ID_FIELD_DESC); oprot.writeString(struct.ownerId); oprot.writeFieldEnd(); } if (struct.updaterId != null) { oprot.writeFieldBegin(UPDATER_ID_FIELD_DESC); oprot.writeString(struct.updaterId); oprot.writeFieldEnd(); } if (struct.runscript != null) { oprot.writeFieldBegin(RUNSCRIPT_FIELD_DESC); oprot.writeString(struct.runscript); oprot.writeFieldEnd(); } if (struct.nics != null) { oprot.writeFieldBegin(NICS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.nics.size())); for (java.lang.String _iter240 : struct.nics) { oprot.writeString(_iter240); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.allowedUsers != null) { oprot.writeFieldBegin(ALLOWED_USERS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.allowedUsers.size())); for (java.lang.String _iter241 : struct.allowedUsers) { oprot.writeString(_iter241); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.networkExceptions != null) { 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 _iter242 : struct.networkExceptions) { _iter242.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(IS_EXAM_FIELD_DESC); oprot.writeBool(struct.isExam); oprot.writeFieldEnd(); oprot.writeFieldBegin(HAS_INTERNET_ACCESS_FIELD_DESC); oprot.writeBool(struct.hasInternetAccess); oprot.writeFieldEnd(); if (struct.defaultPermissions != null) { oprot.writeFieldBegin(DEFAULT_PERMISSIONS_FIELD_DESC); struct.defaultPermissions.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldBegin(CREATE_TIME_FIELD_DESC); oprot.writeI64(struct.createTime); oprot.writeFieldEnd(); oprot.writeFieldBegin(UPDATE_TIME_FIELD_DESC); oprot.writeI64(struct.updateTime); oprot.writeFieldEnd(); if (struct.userPermissions != null) { if (struct.isSetUserPermissions()) { oprot.writeFieldBegin(USER_PERMISSIONS_FIELD_DESC); struct.userPermissions.write(oprot); oprot.writeFieldEnd(); } } if (struct.imageVersionId != null) { oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } if (struct.imageBaseId != null) { oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } if (struct.locationIds != null) { 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 _iter243 : struct.locationIds) { oprot.writeI32(_iter243); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldBegin(LIMIT_TO_LOCATIONS_FIELD_DESC); oprot.writeBool(struct.limitToLocations); oprot.writeFieldEnd(); oprot.writeFieldBegin(LIMIT_TO_ALLOWED_USERS_FIELD_DESC); oprot.writeBool(struct.limitToAllowedUsers); oprot.writeFieldEnd(); oprot.writeFieldBegin(HAS_USB_ACCESS_FIELD_DESC); oprot.writeBool(struct.hasUsbAccess); oprot.writeFieldEnd(); if (struct.networkShares != null) { if (struct.isSetNetworkShares()) { 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 _iter244 : struct.networkShares) { _iter244.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.ldapFilters != null) { if (struct.isSetLdapFilters()) { 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 _iter245 : struct.ldapFilters) { _iter245.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.presetScriptIds != null) { if (struct.isSetPresetScriptIds()) { 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 _iter246 : struct.presetScriptIds) { oprot.writeI32(_iter246); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.presetNetworkShares != null) { if (struct.isSetPresetNetworkShares()) { 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 _iter247 : struct.presetNetworkShares) { oprot.writeI32(_iter247); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.presetLdapFilters != null) { if (struct.isSetPresetLdapFilters()) { 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 _iter248 : struct.presetLdapFilters) { oprot.writeI32(_iter248); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } if (struct.presetNetworkExceptionIds != null) { if (struct.isSetPresetNetworkExceptionIds()) { 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 _iter249 : struct.presetNetworkExceptionIds) { oprot.writeI32(_iter249); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); } } private static class LectureReadTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory { public LectureReadTupleScheme getScheme() { return new LectureReadTupleScheme(); } } private static class LectureReadTupleScheme extends org.apache.thrift.scheme.TupleScheme { @Override public void write(org.apache.thrift.protocol.TProtocol prot, LectureRead struct) throws org.apache.thrift.TException { 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); } if (struct.isSetLectureName()) { optionals.set(1); } if (struct.isSetDescription()) { optionals.set(2); } if (struct.isSetImageVersionId()) { optionals.set(3); } if (struct.isSetImageBaseId()) { optionals.set(4); } if (struct.isSetAutoUpdate()) { optionals.set(5); } if (struct.isSetIsEnabled()) { optionals.set(6); } if (struct.isSetStartTime()) { optionals.set(7); } if (struct.isSetEndTime()) { optionals.set(8); } if (struct.isSetLastUsed()) { optionals.set(9); } if (struct.isSetUseCount()) { optionals.set(10); } if (struct.isSetCreateTime()) { optionals.set(11); } if (struct.isSetUpdateTime()) { optionals.set(12); } if (struct.isSetOwnerId()) { optionals.set(13); } if (struct.isSetUpdaterId()) { optionals.set(14); } if (struct.isSetRunscript()) { optionals.set(15); } if (struct.isSetNics()) { optionals.set(16); } if (struct.isSetAllowedUsers()) { optionals.set(17); } if (struct.isSetNetworkExceptions()) { optionals.set(18); } if (struct.isSetIsExam()) { optionals.set(19); } if (struct.isSetHasInternetAccess()) { optionals.set(20); } if (struct.isSetDefaultPermissions()) { optionals.set(21); } if (struct.isSetUserPermissions()) { optionals.set(22); } if (struct.isSetLocationIds()) { optionals.set(23); } if (struct.isSetLimitToLocations()) { optionals.set(24); } if (struct.isSetLimitToAllowedUsers()) { optionals.set(25); } if (struct.isSetHasUsbAccess()) { optionals.set(26); } if (struct.isSetNetworkShares()) { optionals.set(27); } if (struct.isSetLdapFilters()) { optionals.set(28); } if (struct.isSetPresetScriptIds()) { optionals.set(29); } if (struct.isSetPresetNetworkShares()) { optionals.set(30); } if (struct.isSetPresetLdapFilters()) { optionals.set(31); } if (struct.isSetPresetNetworkExceptionIds()) { optionals.set(32); } oprot.writeBitSet(optionals, 33); if (struct.isSetLectureId()) { oprot.writeString(struct.lectureId); } if (struct.isSetLectureName()) { oprot.writeString(struct.lectureName); } if (struct.isSetDescription()) { oprot.writeString(struct.description); } if (struct.isSetImageVersionId()) { oprot.writeString(struct.imageVersionId); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } if (struct.isSetAutoUpdate()) { oprot.writeBool(struct.autoUpdate); } if (struct.isSetIsEnabled()) { oprot.writeBool(struct.isEnabled); } if (struct.isSetStartTime()) { oprot.writeI64(struct.startTime); } if (struct.isSetEndTime()) { oprot.writeI64(struct.endTime); } if (struct.isSetLastUsed()) { oprot.writeI64(struct.lastUsed); } if (struct.isSetUseCount()) { oprot.writeI32(struct.useCount); } if (struct.isSetCreateTime()) { oprot.writeI64(struct.createTime); } if (struct.isSetUpdateTime()) { oprot.writeI64(struct.updateTime); } if (struct.isSetOwnerId()) { oprot.writeString(struct.ownerId); } if (struct.isSetUpdaterId()) { oprot.writeString(struct.updaterId); } if (struct.isSetRunscript()) { oprot.writeString(struct.runscript); } if (struct.isSetNics()) { { oprot.writeI32(struct.nics.size()); for (java.lang.String _iter250 : struct.nics) { oprot.writeString(_iter250); } } } if (struct.isSetAllowedUsers()) { { oprot.writeI32(struct.allowedUsers.size()); for (java.lang.String _iter251 : struct.allowedUsers) { oprot.writeString(_iter251); } } } if (struct.isSetNetworkExceptions()) { { oprot.writeI32(struct.networkExceptions.size()); for (NetRule _iter252 : struct.networkExceptions) { _iter252.write(oprot); } } } if (struct.isSetIsExam()) { oprot.writeBool(struct.isExam); } if (struct.isSetHasInternetAccess()) { oprot.writeBool(struct.hasInternetAccess); } if (struct.isSetDefaultPermissions()) { struct.defaultPermissions.write(oprot); } if (struct.isSetUserPermissions()) { struct.userPermissions.write(oprot); } if (struct.isSetLocationIds()) { { oprot.writeI32(struct.locationIds.size()); for (int _iter253 : struct.locationIds) { oprot.writeI32(_iter253); } } } if (struct.isSetLimitToLocations()) { oprot.writeBool(struct.limitToLocations); } if (struct.isSetLimitToAllowedUsers()) { oprot.writeBool(struct.limitToAllowedUsers); } if (struct.isSetHasUsbAccess()) { oprot.writeBool(struct.hasUsbAccess); } if (struct.isSetNetworkShares()) { { oprot.writeI32(struct.networkShares.size()); for (NetShare _iter254 : struct.networkShares) { _iter254.write(oprot); } } } if (struct.isSetLdapFilters()) { { oprot.writeI32(struct.ldapFilters.size()); for (LdapFilter _iter255 : struct.ldapFilters) { _iter255.write(oprot); } } } if (struct.isSetPresetScriptIds()) { { oprot.writeI32(struct.presetScriptIds.size()); for (int _iter256 : struct.presetScriptIds) { oprot.writeI32(_iter256); } } } if (struct.isSetPresetNetworkShares()) { { oprot.writeI32(struct.presetNetworkShares.size()); for (int _iter257 : struct.presetNetworkShares) { oprot.writeI32(_iter257); } } } if (struct.isSetPresetLdapFilters()) { { oprot.writeI32(struct.presetLdapFilters.size()); for (int _iter258 : struct.presetLdapFilters) { oprot.writeI32(_iter258); } } } if (struct.isSetPresetNetworkExceptionIds()) { { oprot.writeI32(struct.presetNetworkExceptionIds.size()); for (int _iter259 : struct.presetNetworkExceptionIds) { oprot.writeI32(_iter259); } } } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, LectureRead struct) throws org.apache.thrift.TException { 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); } if (incoming.get(1)) { struct.lectureName = iprot.readString(); struct.setLectureNameIsSet(true); } if (incoming.get(2)) { struct.description = iprot.readString(); struct.setDescriptionIsSet(true); } if (incoming.get(3)) { struct.imageVersionId = iprot.readString(); struct.setImageVersionIdIsSet(true); } if (incoming.get(4)) { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } if (incoming.get(5)) { struct.autoUpdate = iprot.readBool(); struct.setAutoUpdateIsSet(true); } if (incoming.get(6)) { struct.isEnabled = iprot.readBool(); struct.setIsEnabledIsSet(true); } if (incoming.get(7)) { struct.startTime = iprot.readI64(); struct.setStartTimeIsSet(true); } if (incoming.get(8)) { struct.endTime = iprot.readI64(); struct.setEndTimeIsSet(true); } if (incoming.get(9)) { struct.lastUsed = iprot.readI64(); struct.setLastUsedIsSet(true); } if (incoming.get(10)) { struct.useCount = iprot.readI32(); struct.setUseCountIsSet(true); } if (incoming.get(11)) { struct.createTime = iprot.readI64(); struct.setCreateTimeIsSet(true); } if (incoming.get(12)) { struct.updateTime = iprot.readI64(); struct.setUpdateTimeIsSet(true); } if (incoming.get(13)) { struct.ownerId = iprot.readString(); struct.setOwnerIdIsSet(true); } if (incoming.get(14)) { struct.updaterId = iprot.readString(); struct.setUpdaterIdIsSet(true); } if (incoming.get(15)) { struct.runscript = iprot.readString(); struct.setRunscriptIsSet(true); } if (incoming.get(16)) { { org.apache.thrift.protocol.TList _list260 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); struct.nics = new java.util.ArrayList(_list260.size); @org.apache.thrift.annotation.Nullable java.lang.String _elem261; for (int _i262 = 0; _i262 < _list260.size; ++_i262) { _elem261 = iprot.readString(); struct.nics.add(_elem261); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { org.apache.thrift.protocol.TList _list263 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); struct.allowedUsers = new java.util.ArrayList(_list263.size); @org.apache.thrift.annotation.Nullable java.lang.String _elem264; for (int _i265 = 0; _i265 < _list263.size; ++_i265) { _elem264 = iprot.readString(); struct.allowedUsers.add(_elem264); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); struct.networkExceptions = new java.util.ArrayList(_list266.size); @org.apache.thrift.annotation.Nullable NetRule _elem267; for (int _i268 = 0; _i268 < _list266.size; ++_i268) { _elem267 = new NetRule(); _elem267.read(iprot); struct.networkExceptions.add(_elem267); } } struct.setNetworkExceptionsIsSet(true); } if (incoming.get(19)) { struct.isExam = iprot.readBool(); struct.setIsExamIsSet(true); } if (incoming.get(20)) { struct.hasInternetAccess = iprot.readBool(); struct.setHasInternetAccessIsSet(true); } if (incoming.get(21)) { struct.defaultPermissions = new LecturePermissions(); struct.defaultPermissions.read(iprot); struct.setDefaultPermissionsIsSet(true); } if (incoming.get(22)) { struct.userPermissions = new LecturePermissions(); struct.userPermissions.read(iprot); struct.setUserPermissionsIsSet(true); } if (incoming.get(23)) { { org.apache.thrift.protocol.TList _list269 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); struct.locationIds = new java.util.ArrayList(_list269.size); int _elem270; for (int _i271 = 0; _i271 < _list269.size; ++_i271) { _elem270 = iprot.readI32(); struct.locationIds.add(_elem270); } } struct.setLocationIdsIsSet(true); } if (incoming.get(24)) { struct.limitToLocations = iprot.readBool(); struct.setLimitToLocationsIsSet(true); } if (incoming.get(25)) { struct.limitToAllowedUsers = iprot.readBool(); struct.setLimitToAllowedUsersIsSet(true); } if (incoming.get(26)) { struct.hasUsbAccess = iprot.readBool(); struct.setHasUsbAccessIsSet(true); } if (incoming.get(27)) { { org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); struct.networkShares = new java.util.ArrayList(_list272.size); @org.apache.thrift.annotation.Nullable NetShare _elem273; for (int _i274 = 0; _i274 < _list272.size; ++_i274) { _elem273 = new NetShare(); _elem273.read(iprot); struct.networkShares.add(_elem273); } } struct.setNetworkSharesIsSet(true); } if (incoming.get(28)) { { org.apache.thrift.protocol.TList _list275 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); struct.ldapFilters = new java.util.ArrayList(_list275.size); @org.apache.thrift.annotation.Nullable LdapFilter _elem276; for (int _i277 = 0; _i277 < _list275.size; ++_i277) { _elem276 = new LdapFilter(); _elem276.read(iprot); struct.ldapFilters.add(_elem276); } } struct.setLdapFiltersIsSet(true); } if (incoming.get(29)) { { org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); struct.presetScriptIds = new java.util.ArrayList(_list278.size); int _elem279; for (int _i280 = 0; _i280 < _list278.size; ++_i280) { _elem279 = iprot.readI32(); struct.presetScriptIds.add(_elem279); } } struct.setPresetScriptIdsIsSet(true); } if (incoming.get(30)) { { org.apache.thrift.protocol.TList _list281 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); struct.presetNetworkShares = new java.util.ArrayList(_list281.size); int _elem282; for (int _i283 = 0; _i283 < _list281.size; ++_i283) { _elem282 = iprot.readI32(); struct.presetNetworkShares.add(_elem282); } } struct.setPresetNetworkSharesIsSet(true); } if (incoming.get(31)) { { org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); struct.presetLdapFilters = new java.util.ArrayList(_list284.size); int _elem285; for (int _i286 = 0; _i286 < _list284.size; ++_i286) { _elem285 = iprot.readI32(); struct.presetLdapFilters.add(_elem285); } } struct.setPresetLdapFiltersIsSet(true); } if (incoming.get(32)) { { org.apache.thrift.protocol.TList _list287 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); struct.presetNetworkExceptionIds = new java.util.ArrayList(_list287.size); int _elem288; for (int _i289 = 0; _i289 < _list287.size; ++_i289) { _elem288 = iprot.readI32(); struct.presetNetworkExceptionIds.add(_elem288); } } struct.setPresetNetworkExceptionIdsIsSet(true); } } } private static 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(); } }