From 746af5d07d2b7745618eb75ef3757d150ab02042 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 17 Dec 2021 17:03:51 +0100 Subject: Update generated Thrift API to version 0.15.0 --- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 1152 ++++++++++---------- 1 file changed, 550 insertions(+), 602 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java index be1aa0c..b23cde8 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java @@ -1,40 +1,13 @@ /** - * Autogenerated by Thrift Compiler (0.9.3) + * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.openslx.bwlp.thrift.iface; -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import javax.annotation.Generated; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2019-02-25") +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) +@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17") public class LectureRead implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureRead"); @@ -72,17 +45,14 @@ public class LectureRead implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new LectureReadStandardSchemeFactory()); - schemes.put(TupleScheme.class, new LectureReadTupleSchemeFactory()); - } + private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new LectureReadStandardSchemeFactory(); + private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new LectureReadTupleSchemeFactory(); - public String lectureId; // required - public String lectureName; // required - public String description; // required - public String imageVersionId; // required - public String imageBaseId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String lectureName; // required + public @org.apache.thrift.annotation.Nullable java.lang.String description; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageVersionId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required public boolean autoUpdate; // required public boolean isEnabled; // required public long startTime; // required @@ -91,26 +61,26 @@ public class LectureRead implements org.apache.thrift.TBase nics; // required - public List allowedUsers; // required - public List networkExceptions; // required + public @org.apache.thrift.annotation.Nullable java.lang.String ownerId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String updaterId; // required + public @org.apache.thrift.annotation.Nullable java.lang.String runscript; // required + public @org.apache.thrift.annotation.Nullable java.util.List 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 LecturePermissions defaultPermissions; // required - public LecturePermissions userPermissions; // optional - public List locationIds; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions defaultPermissions; // required + public @org.apache.thrift.annotation.Nullable LecturePermissions userPermissions; // optional + public @org.apache.thrift.annotation.Nullable java.util.List locationIds; // required public boolean limitToLocations; // required public boolean limitToAllowedUsers; // required public boolean hasUsbAccess; // required - public List networkShares; // optional - public List ldapFilters; // optional - public List presetScriptIds; // optional - public List presetNetworkShares; // optional - public List presetLdapFilters; // optional - public List presetNetworkExceptionIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List networkShares; // optional + public @org.apache.thrift.annotation.Nullable java.util.List ldapFilters; // optional + public @org.apache.thrift.annotation.Nullable java.util.List presetScriptIds; // optional + public @org.apache.thrift.annotation.Nullable java.util.List 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 { @@ -148,10 +118,10 @@ public class LectureRead implements org.apache.thrift.TBase byName = new HashMap(); + private static final java.util.Map byName = new java.util.HashMap(); static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { + for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) { byName.put(field.getFieldName(), field); } } @@ -159,6 +129,7 @@ public class LectureRead implements org.apache.thrift.TBase metaDataMap; + public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.LECTURE_ID, new org.apache.thrift.meta_data.FieldMetaData("lectureId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.LECTURE_NAME, new org.apache.thrift.meta_data.FieldMetaData("lectureName", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -361,7 +333,7 @@ public class LectureRead implements org.apache.thrift.TBase nics, - List allowedUsers, - List networkExceptions, + 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, - List locationIds, + java.util.List locationIds, boolean limitToLocations, boolean limitToAllowedUsers, boolean hasUsbAccess) @@ -476,15 +448,15 @@ public class LectureRead implements org.apache.thrift.TBase __this__nics = new ArrayList(other.nics); + java.util.List __this__nics = new java.util.ArrayList(other.nics); this.nics = __this__nics; } if (other.isSetAllowedUsers()) { - List __this__allowedUsers = new ArrayList(other.allowedUsers); + java.util.List __this__allowedUsers = new java.util.ArrayList(other.allowedUsers); this.allowedUsers = __this__allowedUsers; } if (other.isSetNetworkExceptions()) { - List __this__networkExceptions = new ArrayList(other.networkExceptions.size()); + java.util.List __this__networkExceptions = new java.util.ArrayList(other.networkExceptions.size()); for (NetRule other_element : other.networkExceptions) { __this__networkExceptions.add(new NetRule(other_element)); } @@ -499,40 +471,40 @@ public class LectureRead implements org.apache.thrift.TBase __this__locationIds = new ArrayList(other.locationIds); + java.util.List __this__locationIds = new java.util.ArrayList(other.locationIds); this.locationIds = __this__locationIds; } this.limitToLocations = other.limitToLocations; this.limitToAllowedUsers = other.limitToAllowedUsers; this.hasUsbAccess = other.hasUsbAccess; if (other.isSetNetworkShares()) { - List __this__networkShares = new ArrayList(other.networkShares.size()); + java.util.List __this__networkShares = new java.util.ArrayList(other.networkShares.size()); for (NetShare other_element : other.networkShares) { __this__networkShares.add(new NetShare(other_element)); } this.networkShares = __this__networkShares; } if (other.isSetLdapFilters()) { - List __this__ldapFilters = new ArrayList(other.ldapFilters.size()); + java.util.List __this__ldapFilters = new java.util.ArrayList(other.ldapFilters.size()); for (LdapFilter other_element : other.ldapFilters) { __this__ldapFilters.add(new LdapFilter(other_element)); } this.ldapFilters = __this__ldapFilters; } if (other.isSetPresetScriptIds()) { - List __this__presetScriptIds = new ArrayList(other.presetScriptIds); + java.util.List __this__presetScriptIds = new java.util.ArrayList(other.presetScriptIds); this.presetScriptIds = __this__presetScriptIds; } if (other.isSetPresetNetworkShares()) { - List __this__presetNetworkShares = new ArrayList(other.presetNetworkShares); + java.util.List __this__presetNetworkShares = new java.util.ArrayList(other.presetNetworkShares); this.presetNetworkShares = __this__presetNetworkShares; } if (other.isSetPresetLdapFilters()) { - List __this__presetLdapFilters = new ArrayList(other.presetLdapFilters); + java.util.List __this__presetLdapFilters = new java.util.ArrayList(other.presetLdapFilters); this.presetLdapFilters = __this__presetLdapFilters; } if (other.isSetPresetNetworkExceptionIds()) { - List __this__presetNetworkExceptionIds = new ArrayList(other.presetNetworkExceptionIds); + java.util.List __this__presetNetworkExceptionIds = new java.util.ArrayList(other.presetNetworkExceptionIds); this.presetNetworkExceptionIds = __this__presetNetworkExceptionIds; } } @@ -591,11 +563,12 @@ public class LectureRead implements org.apache.thrift.TBase getNicsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getNicsIterator() { return (this.nics == null) ? null : this.nics.iterator(); } - public void addToNics(String elem) { + public void addToNics(java.lang.String elem) { if (this.nics == null) { - this.nics = new ArrayList(); + this.nics = new java.util.ArrayList(); } this.nics.add(elem); } - public List getNics() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNics() { return this.nics; } - public LectureRead setNics(List nics) { + public LectureRead setNics(@org.apache.thrift.annotation.Nullable java.util.List nics) { this.nics = nics; return this; } @@ -1010,22 +992,24 @@ public class LectureRead implements org.apache.thrift.TBase getAllowedUsersIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getAllowedUsersIterator() { return (this.allowedUsers == null) ? null : this.allowedUsers.iterator(); } - public void addToAllowedUsers(String elem) { + public void addToAllowedUsers(java.lang.String elem) { if (this.allowedUsers == null) { - this.allowedUsers = new ArrayList(); + this.allowedUsers = new java.util.ArrayList(); } this.allowedUsers.add(elem); } - public List getAllowedUsers() { + @org.apache.thrift.annotation.Nullable + public java.util.List getAllowedUsers() { return this.allowedUsers; } - public LectureRead setAllowedUsers(List allowedUsers) { + public LectureRead setAllowedUsers(@org.apache.thrift.annotation.Nullable java.util.List allowedUsers) { this.allowedUsers = allowedUsers; return this; } @@ -1049,22 +1033,24 @@ public class LectureRead implements org.apache.thrift.TBase getNetworkExceptionsIterator() { return (this.networkExceptions == null) ? null : this.networkExceptions.iterator(); } public void addToNetworkExceptions(NetRule elem) { if (this.networkExceptions == null) { - this.networkExceptions = new ArrayList(); + this.networkExceptions = new java.util.ArrayList(); } this.networkExceptions.add(elem); } - public List getNetworkExceptions() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkExceptions() { return this.networkExceptions; } - public LectureRead setNetworkExceptions(List networkExceptions) { + public LectureRead setNetworkExceptions(@org.apache.thrift.annotation.Nullable java.util.List networkExceptions) { this.networkExceptions = networkExceptions; return this; } @@ -1095,16 +1081,16 @@ public class LectureRead implements org.apache.thrift.TBase getLocationIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getLocationIdsIterator() { return (this.locationIds == null) ? null : this.locationIds.iterator(); } public void addToLocationIds(int elem) { if (this.locationIds == null) { - this.locationIds = new ArrayList(); + this.locationIds = new java.util.ArrayList(); } this.locationIds.add(elem); } - public List getLocationIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLocationIds() { return this.locationIds; } - public LectureRead setLocationIds(List locationIds) { + public LectureRead setLocationIds(@org.apache.thrift.annotation.Nullable java.util.List locationIds) { this.locationIds = locationIds; return this; } @@ -1228,16 +1218,16 @@ public class LectureRead implements org.apache.thrift.TBase getNetworkSharesIterator() { return (this.networkShares == null) ? null : this.networkShares.iterator(); } public void addToNetworkShares(NetShare elem) { if (this.networkShares == null) { - this.networkShares = new ArrayList(); + this.networkShares = new java.util.ArrayList(); } this.networkShares.add(elem); } - public List getNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List getNetworkShares() { return this.networkShares; } - public LectureRead setNetworkShares(List networkShares) { + public LectureRead setNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List networkShares) { this.networkShares = networkShares; return this; } @@ -1329,22 +1321,24 @@ public class LectureRead implements org.apache.thrift.TBase getLdapFiltersIterator() { return (this.ldapFilters == null) ? null : this.ldapFilters.iterator(); } public void addToLdapFilters(LdapFilter elem) { if (this.ldapFilters == null) { - this.ldapFilters = new ArrayList(); + this.ldapFilters = new java.util.ArrayList(); } this.ldapFilters.add(elem); } - public List getLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List getLdapFilters() { return this.ldapFilters; } - public LectureRead setLdapFilters(List ldapFilters) { + public LectureRead setLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List ldapFilters) { this.ldapFilters = ldapFilters; return this; } @@ -1368,22 +1362,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetScriptIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetScriptIdsIterator() { return (this.presetScriptIds == null) ? null : this.presetScriptIds.iterator(); } public void addToPresetScriptIds(int elem) { if (this.presetScriptIds == null) { - this.presetScriptIds = new ArrayList(); + this.presetScriptIds = new java.util.ArrayList(); } this.presetScriptIds.add(elem); } - public List getPresetScriptIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetScriptIds() { return this.presetScriptIds; } - public LectureRead setPresetScriptIds(List presetScriptIds) { + public LectureRead setPresetScriptIds(@org.apache.thrift.annotation.Nullable java.util.List presetScriptIds) { this.presetScriptIds = presetScriptIds; return this; } @@ -1407,22 +1403,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetNetworkSharesIterator() { + @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 ArrayList(); + this.presetNetworkShares = new java.util.ArrayList(); } this.presetNetworkShares.add(elem); } - public List getPresetNetworkShares() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetNetworkShares() { return this.presetNetworkShares; } - public LectureRead setPresetNetworkShares(List presetNetworkShares) { + public LectureRead setPresetNetworkShares(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkShares) { this.presetNetworkShares = presetNetworkShares; return this; } @@ -1446,22 +1444,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetLdapFiltersIterator() { + @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 ArrayList(); + this.presetLdapFilters = new java.util.ArrayList(); } this.presetLdapFilters.add(elem); } - public List getPresetLdapFilters() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetLdapFilters() { return this.presetLdapFilters; } - public LectureRead setPresetLdapFilters(List presetLdapFilters) { + public LectureRead setPresetLdapFilters(@org.apache.thrift.annotation.Nullable java.util.List presetLdapFilters) { this.presetLdapFilters = presetLdapFilters; return this; } @@ -1485,22 +1485,24 @@ public class LectureRead implements org.apache.thrift.TBase getPresetNetworkExceptionIdsIterator() { + @org.apache.thrift.annotation.Nullable + public java.util.Iterator getPresetNetworkExceptionIdsIterator() { return (this.presetNetworkExceptionIds == null) ? null : this.presetNetworkExceptionIds.iterator(); } public void addToPresetNetworkExceptionIds(int elem) { if (this.presetNetworkExceptionIds == null) { - this.presetNetworkExceptionIds = new ArrayList(); + this.presetNetworkExceptionIds = new java.util.ArrayList(); } this.presetNetworkExceptionIds.add(elem); } - public List getPresetNetworkExceptionIds() { + @org.apache.thrift.annotation.Nullable + public java.util.List getPresetNetworkExceptionIds() { return this.presetNetworkExceptionIds; } - public LectureRead setPresetNetworkExceptionIds(List presetNetworkExceptionIds) { + public LectureRead setPresetNetworkExceptionIds(@org.apache.thrift.annotation.Nullable java.util.List presetNetworkExceptionIds) { this.presetNetworkExceptionIds = presetNetworkExceptionIds; return this; } @@ -1520,13 +1522,13 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setNics((java.util.List)value); } break; @@ -1662,7 +1664,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setAllowedUsers((java.util.List)value); } break; @@ -1670,7 +1672,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setNetworkExceptions((java.util.List)value); } break; @@ -1678,7 +1680,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setLocationIds((java.util.List)value); } break; @@ -1718,7 +1720,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setNetworkShares((java.util.List)value); } break; @@ -1750,7 +1752,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setLdapFilters((java.util.List)value); } break; @@ -1758,7 +1760,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetScriptIds((java.util.List)value); } break; @@ -1766,7 +1768,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetNetworkShares((java.util.List)value); } break; @@ -1774,7 +1776,7 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetLdapFilters((java.util.List)value); } break; @@ -1782,14 +1784,15 @@ public class LectureRead implements org.apache.thrift.TBase)value); + setPresetNetworkExceptionIds((java.util.List)value); } break; } } - public Object getFieldValue(_Fields field) { + @org.apache.thrift.annotation.Nullable + public java.lang.Object getFieldValue(_Fields field) { switch (field) { case LECTURE_ID: return getLectureId(); @@ -1891,13 +1894,13 @@ public class LectureRead implements org.apache.thrift.TBase list = new ArrayList(); - - boolean present_lectureId = true && (isSetLectureId()); - list.add(present_lectureId); - if (present_lectureId) - list.add(lectureId); - - boolean present_lectureName = true && (isSetLectureName()); - list.add(present_lectureName); - if (present_lectureName) - list.add(lectureName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_imageVersionId = true && (isSetImageVersionId()); - list.add(present_imageVersionId); - if (present_imageVersionId) - list.add(imageVersionId); - - boolean present_imageBaseId = true && (isSetImageBaseId()); - list.add(present_imageBaseId); - if (present_imageBaseId) - list.add(imageBaseId); - - boolean present_autoUpdate = true; - list.add(present_autoUpdate); - if (present_autoUpdate) - list.add(autoUpdate); - - boolean present_isEnabled = true; - list.add(present_isEnabled); - if (present_isEnabled) - list.add(isEnabled); - - boolean present_startTime = true; - list.add(present_startTime); - if (present_startTime) - list.add(startTime); - - boolean present_endTime = true; - list.add(present_endTime); - if (present_endTime) - list.add(endTime); - - boolean present_lastUsed = true; - list.add(present_lastUsed); - if (present_lastUsed) - list.add(lastUsed); - - boolean present_useCount = true; - list.add(present_useCount); - if (present_useCount) - list.add(useCount); - - boolean present_createTime = true; - list.add(present_createTime); - if (present_createTime) - list.add(createTime); - - boolean present_updateTime = true; - list.add(present_updateTime); - if (present_updateTime) - list.add(updateTime); - - boolean present_ownerId = true && (isSetOwnerId()); - list.add(present_ownerId); - if (present_ownerId) - list.add(ownerId); - - boolean present_updaterId = true && (isSetUpdaterId()); - list.add(present_updaterId); - if (present_updaterId) - list.add(updaterId); - - boolean present_runscript = true && (isSetRunscript()); - list.add(present_runscript); - if (present_runscript) - list.add(runscript); - - boolean present_nics = true && (isSetNics()); - list.add(present_nics); - if (present_nics) - list.add(nics); - - boolean present_allowedUsers = true && (isSetAllowedUsers()); - list.add(present_allowedUsers); - if (present_allowedUsers) - list.add(allowedUsers); - - boolean present_networkExceptions = true && (isSetNetworkExceptions()); - list.add(present_networkExceptions); - if (present_networkExceptions) - list.add(networkExceptions); - - boolean present_isExam = true; - list.add(present_isExam); - if (present_isExam) - list.add(isExam); - - boolean present_hasInternetAccess = true; - list.add(present_hasInternetAccess); - if (present_hasInternetAccess) - list.add(hasInternetAccess); - - boolean present_defaultPermissions = true && (isSetDefaultPermissions()); - list.add(present_defaultPermissions); - if (present_defaultPermissions) - list.add(defaultPermissions); - - boolean present_userPermissions = true && (isSetUserPermissions()); - list.add(present_userPermissions); - if (present_userPermissions) - list.add(userPermissions); - - boolean present_locationIds = true && (isSetLocationIds()); - list.add(present_locationIds); - if (present_locationIds) - list.add(locationIds); - - boolean present_limitToLocations = true; - list.add(present_limitToLocations); - if (present_limitToLocations) - list.add(limitToLocations); - - boolean present_limitToAllowedUsers = true; - list.add(present_limitToAllowedUsers); - if (present_limitToAllowedUsers) - list.add(limitToAllowedUsers); - - boolean present_hasUsbAccess = true; - list.add(present_hasUsbAccess); - if (present_hasUsbAccess) - list.add(hasUsbAccess); - - boolean present_networkShares = true && (isSetNetworkShares()); - list.add(present_networkShares); - if (present_networkShares) - list.add(networkShares); - - boolean present_ldapFilters = true && (isSetLdapFilters()); - list.add(present_ldapFilters); - if (present_ldapFilters) - list.add(ldapFilters); - - boolean present_presetScriptIds = true && (isSetPresetScriptIds()); - list.add(present_presetScriptIds); - if (present_presetScriptIds) - list.add(presetScriptIds); - - boolean present_presetNetworkShares = true && (isSetPresetNetworkShares()); - list.add(present_presetNetworkShares); - if (present_presetNetworkShares) - list.add(presetNetworkShares); - - boolean present_presetLdapFilters = true && (isSetPresetLdapFilters()); - list.add(present_presetLdapFilters); - if (present_presetLdapFilters) - list.add(presetLdapFilters); - - boolean present_presetNetworkExceptionIds = true && (isSetPresetNetworkExceptionIds()); - list.add(present_presetNetworkExceptionIds); - if (present_presetNetworkExceptionIds) - list.add(presetNetworkExceptionIds); - - return list.hashCode(); + int hashCode = 1; + + hashCode = hashCode * 8191 + ((isSetLectureId()) ? 131071 : 524287); + if (isSetLectureId()) + hashCode = hashCode * 8191 + lectureId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLectureName()) ? 131071 : 524287); + if (isSetLectureName()) + hashCode = hashCode * 8191 + lectureName.hashCode(); + + hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); + if (isSetDescription()) + hashCode = hashCode * 8191 + description.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageVersionId()) ? 131071 : 524287); + if (isSetImageVersionId()) + hashCode = hashCode * 8191 + imageVersionId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287); + if (isSetImageBaseId()) + hashCode = hashCode * 8191 + imageBaseId.hashCode(); + + hashCode = hashCode * 8191 + ((autoUpdate) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isEnabled) ? 131071 : 524287); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(endTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(lastUsed); + + hashCode = hashCode * 8191 + useCount; + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime); + + hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(updateTime); + + hashCode = hashCode * 8191 + ((isSetOwnerId()) ? 131071 : 524287); + if (isSetOwnerId()) + hashCode = hashCode * 8191 + ownerId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUpdaterId()) ? 131071 : 524287); + if (isSetUpdaterId()) + hashCode = hashCode * 8191 + updaterId.hashCode(); + + hashCode = hashCode * 8191 + ((isSetRunscript()) ? 131071 : 524287); + if (isSetRunscript()) + hashCode = hashCode * 8191 + runscript.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNics()) ? 131071 : 524287); + if (isSetNics()) + hashCode = hashCode * 8191 + nics.hashCode(); + + hashCode = hashCode * 8191 + ((isSetAllowedUsers()) ? 131071 : 524287); + if (isSetAllowedUsers()) + hashCode = hashCode * 8191 + allowedUsers.hashCode(); + + hashCode = hashCode * 8191 + ((isSetNetworkExceptions()) ? 131071 : 524287); + if (isSetNetworkExceptions()) + hashCode = hashCode * 8191 + networkExceptions.hashCode(); + + hashCode = hashCode * 8191 + ((isExam) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasInternetAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetDefaultPermissions()) ? 131071 : 524287); + if (isSetDefaultPermissions()) + hashCode = hashCode * 8191 + defaultPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetUserPermissions()) ? 131071 : 524287); + if (isSetUserPermissions()) + hashCode = hashCode * 8191 + userPermissions.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLocationIds()) ? 131071 : 524287); + if (isSetLocationIds()) + hashCode = hashCode * 8191 + locationIds.hashCode(); + + hashCode = hashCode * 8191 + ((limitToLocations) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((limitToAllowedUsers) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((hasUsbAccess) ? 131071 : 524287); + + hashCode = hashCode * 8191 + ((isSetNetworkShares()) ? 131071 : 524287); + if (isSetNetworkShares()) + hashCode = hashCode * 8191 + networkShares.hashCode(); + + hashCode = hashCode * 8191 + ((isSetLdapFilters()) ? 131071 : 524287); + if (isSetLdapFilters()) + hashCode = hashCode * 8191 + ldapFilters.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetScriptIds()) ? 131071 : 524287); + if (isSetPresetScriptIds()) + hashCode = hashCode * 8191 + presetScriptIds.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetNetworkShares()) ? 131071 : 524287); + if (isSetPresetNetworkShares()) + hashCode = hashCode * 8191 + presetNetworkShares.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetLdapFilters()) ? 131071 : 524287); + if (isSetPresetLdapFilters()) + hashCode = hashCode * 8191 + presetLdapFilters.hashCode(); + + hashCode = hashCode * 8191 + ((isSetPresetNetworkExceptionIds()) ? 131071 : 524287); + if (isSetPresetNetworkExceptionIds()) + hashCode = hashCode * 8191 + presetNetworkExceptionIds.hashCode(); + + return hashCode; } @Override @@ -2464,7 +2408,7 @@ public class LectureRead implements org.apache.thrift.TBase { + 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; @@ -3221,13 +3166,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list202.size); - String _elem203; - for (int _i204 = 0; _i204 < _list202.size; ++_i204) + org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); + struct.nics = new java.util.ArrayList(_list210.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem211; + for (int _i212 = 0; _i212 < _list210.size; ++_i212) { - _elem203 = iprot.readString(); - struct.nics.add(_elem203); + _elem211 = iprot.readString(); + struct.nics.add(_elem211); } iprot.readListEnd(); } @@ -3239,13 +3184,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list205.size); - String _elem206; - for (int _i207 = 0; _i207 < _list205.size; ++_i207) + org.apache.thrift.protocol.TList _list213 = iprot.readListBegin(); + struct.allowedUsers = new java.util.ArrayList(_list213.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem214; + for (int _i215 = 0; _i215 < _list213.size; ++_i215) { - _elem206 = iprot.readString(); - struct.allowedUsers.add(_elem206); + _elem214 = iprot.readString(); + struct.allowedUsers.add(_elem214); } iprot.readListEnd(); } @@ -3257,14 +3202,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list208.size); - NetRule _elem209; - for (int _i210 = 0; _i210 < _list208.size; ++_i210) + org.apache.thrift.protocol.TList _list216 = iprot.readListBegin(); + struct.networkExceptions = new java.util.ArrayList(_list216.size); + @org.apache.thrift.annotation.Nullable NetRule _elem217; + for (int _i218 = 0; _i218 < _list216.size; ++_i218) { - _elem209 = new NetRule(); - _elem209.read(iprot); - struct.networkExceptions.add(_elem209); + _elem217 = new NetRule(); + _elem217.read(iprot); + struct.networkExceptions.add(_elem217); } iprot.readListEnd(); } @@ -3310,13 +3255,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list211.size); - int _elem212; - for (int _i213 = 0; _i213 < _list211.size; ++_i213) + org.apache.thrift.protocol.TList _list219 = iprot.readListBegin(); + struct.locationIds = new java.util.ArrayList(_list219.size); + int _elem220; + for (int _i221 = 0; _i221 < _list219.size; ++_i221) { - _elem212 = iprot.readI32(); - struct.locationIds.add(_elem212); + _elem220 = iprot.readI32(); + struct.locationIds.add(_elem220); } iprot.readListEnd(); } @@ -3352,14 +3297,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list214.size); - NetShare _elem215; - for (int _i216 = 0; _i216 < _list214.size; ++_i216) + org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); + struct.networkShares = new java.util.ArrayList(_list222.size); + @org.apache.thrift.annotation.Nullable NetShare _elem223; + for (int _i224 = 0; _i224 < _list222.size; ++_i224) { - _elem215 = new NetShare(); - _elem215.read(iprot); - struct.networkShares.add(_elem215); + _elem223 = new NetShare(); + _elem223.read(iprot); + struct.networkShares.add(_elem223); } iprot.readListEnd(); } @@ -3371,14 +3316,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list217.size); - LdapFilter _elem218; - for (int _i219 = 0; _i219 < _list217.size; ++_i219) + org.apache.thrift.protocol.TList _list225 = iprot.readListBegin(); + struct.ldapFilters = new java.util.ArrayList(_list225.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem226; + for (int _i227 = 0; _i227 < _list225.size; ++_i227) { - _elem218 = new LdapFilter(); - _elem218.read(iprot); - struct.ldapFilters.add(_elem218); + _elem226 = new LdapFilter(); + _elem226.read(iprot); + struct.ldapFilters.add(_elem226); } iprot.readListEnd(); } @@ -3390,13 +3335,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list220.size); - int _elem221; - for (int _i222 = 0; _i222 < _list220.size; ++_i222) + org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); + struct.presetScriptIds = new java.util.ArrayList(_list228.size); + int _elem229; + for (int _i230 = 0; _i230 < _list228.size; ++_i230) { - _elem221 = iprot.readI32(); - struct.presetScriptIds.add(_elem221); + _elem229 = iprot.readI32(); + struct.presetScriptIds.add(_elem229); } iprot.readListEnd(); } @@ -3408,13 +3353,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list223.size); - int _elem224; - for (int _i225 = 0; _i225 < _list223.size; ++_i225) + org.apache.thrift.protocol.TList _list231 = iprot.readListBegin(); + struct.presetNetworkShares = new java.util.ArrayList(_list231.size); + int _elem232; + for (int _i233 = 0; _i233 < _list231.size; ++_i233) { - _elem224 = iprot.readI32(); - struct.presetNetworkShares.add(_elem224); + _elem232 = iprot.readI32(); + struct.presetNetworkShares.add(_elem232); } iprot.readListEnd(); } @@ -3426,13 +3371,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list226.size); - int _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + org.apache.thrift.protocol.TList _list234 = iprot.readListBegin(); + struct.presetLdapFilters = new java.util.ArrayList(_list234.size); + int _elem235; + for (int _i236 = 0; _i236 < _list234.size; ++_i236) { - _elem227 = iprot.readI32(); - struct.presetLdapFilters.add(_elem227); + _elem235 = iprot.readI32(); + struct.presetLdapFilters.add(_elem235); } iprot.readListEnd(); } @@ -3444,13 +3389,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list229.size); - int _elem230; - for (int _i231 = 0; _i231 < _list229.size; ++_i231) + org.apache.thrift.protocol.TList _list237 = iprot.readListBegin(); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list237.size); + int _elem238; + for (int _i239 = 0; _i239 < _list237.size; ++_i239) { - _elem230 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem230); + _elem238 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem238); } iprot.readListEnd(); } @@ -3526,9 +3471,9 @@ public class LectureRead implements org.apache.thrift.TBase { + 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 { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); + org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; + java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetLectureId()) { optionals.set(0); } @@ -3866,27 +3811,27 @@ public class LectureRead implements org.apache.thrift.TBase(_list252.size); - String _elem253; - for (int _i254 = 0; _i254 < _list252.size; ++_i254) + org.apache.thrift.protocol.TList _list260 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.nics = new java.util.ArrayList(_list260.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem261; + for (int _i262 = 0; _i262 < _list260.size; ++_i262) { - _elem253 = iprot.readString(); - struct.nics.add(_elem253); + _elem261 = iprot.readString(); + struct.nics.add(_elem261); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { - org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.allowedUsers = new ArrayList(_list255.size); - String _elem256; - for (int _i257 = 0; _i257 < _list255.size; ++_i257) + org.apache.thrift.protocol.TList _list263 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING); + struct.allowedUsers = new java.util.ArrayList(_list263.size); + @org.apache.thrift.annotation.Nullable java.lang.String _elem264; + for (int _i265 = 0; _i265 < _list263.size; ++_i265) { - _elem256 = iprot.readString(); - struct.allowedUsers.add(_elem256); + _elem264 = iprot.readString(); + struct.allowedUsers.add(_elem264); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { - org.apache.thrift.protocol.TList _list258 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list258.size); - NetRule _elem259; - for (int _i260 = 0; _i260 < _list258.size; ++_i260) + org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkExceptions = new java.util.ArrayList(_list266.size); + @org.apache.thrift.annotation.Nullable NetRule _elem267; + for (int _i268 = 0; _i268 < _list266.size; ++_i268) { - _elem259 = new NetRule(); - _elem259.read(iprot); - struct.networkExceptions.add(_elem259); + _elem267 = new NetRule(); + _elem267.read(iprot); + struct.networkExceptions.add(_elem267); } } struct.setNetworkExceptionsIsSet(true); @@ -4104,13 +4049,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list261.size); - int _elem262; - for (int _i263 = 0; _i263 < _list261.size; ++_i263) + org.apache.thrift.protocol.TList _list269 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.locationIds = new java.util.ArrayList(_list269.size); + int _elem270; + for (int _i271 = 0; _i271 < _list269.size; ++_i271) { - _elem262 = iprot.readI32(); - struct.locationIds.add(_elem262); + _elem270 = iprot.readI32(); + struct.locationIds.add(_elem270); } } struct.setLocationIdsIsSet(true); @@ -4129,80 +4074,80 @@ public class LectureRead implements org.apache.thrift.TBase(_list264.size); - NetShare _elem265; - for (int _i266 = 0; _i266 < _list264.size; ++_i266) + org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.networkShares = new java.util.ArrayList(_list272.size); + @org.apache.thrift.annotation.Nullable NetShare _elem273; + for (int _i274 = 0; _i274 < _list272.size; ++_i274) { - _elem265 = new NetShare(); - _elem265.read(iprot); - struct.networkShares.add(_elem265); + _elem273 = new NetShare(); + _elem273.read(iprot); + struct.networkShares.add(_elem273); } } struct.setNetworkSharesIsSet(true); } if (incoming.get(28)) { { - org.apache.thrift.protocol.TList _list267 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.ldapFilters = new ArrayList(_list267.size); - LdapFilter _elem268; - for (int _i269 = 0; _i269 < _list267.size; ++_i269) + org.apache.thrift.protocol.TList _list275 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT); + struct.ldapFilters = new java.util.ArrayList(_list275.size); + @org.apache.thrift.annotation.Nullable LdapFilter _elem276; + for (int _i277 = 0; _i277 < _list275.size; ++_i277) { - _elem268 = new LdapFilter(); - _elem268.read(iprot); - struct.ldapFilters.add(_elem268); + _elem276 = new LdapFilter(); + _elem276.read(iprot); + struct.ldapFilters.add(_elem276); } } struct.setLdapFiltersIsSet(true); } if (incoming.get(29)) { { - org.apache.thrift.protocol.TList _list270 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetScriptIds = new ArrayList(_list270.size); - int _elem271; - for (int _i272 = 0; _i272 < _list270.size; ++_i272) + org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetScriptIds = new java.util.ArrayList(_list278.size); + int _elem279; + for (int _i280 = 0; _i280 < _list278.size; ++_i280) { - _elem271 = iprot.readI32(); - struct.presetScriptIds.add(_elem271); + _elem279 = iprot.readI32(); + struct.presetScriptIds.add(_elem279); } } struct.setPresetScriptIdsIsSet(true); } if (incoming.get(30)) { { - org.apache.thrift.protocol.TList _list273 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkShares = new ArrayList(_list273.size); - int _elem274; - for (int _i275 = 0; _i275 < _list273.size; ++_i275) + org.apache.thrift.protocol.TList _list281 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkShares = new java.util.ArrayList(_list281.size); + int _elem282; + for (int _i283 = 0; _i283 < _list281.size; ++_i283) { - _elem274 = iprot.readI32(); - struct.presetNetworkShares.add(_elem274); + _elem282 = iprot.readI32(); + struct.presetNetworkShares.add(_elem282); } } struct.setPresetNetworkSharesIsSet(true); } if (incoming.get(31)) { { - org.apache.thrift.protocol.TList _list276 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetLdapFilters = new ArrayList(_list276.size); - int _elem277; - for (int _i278 = 0; _i278 < _list276.size; ++_i278) + org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetLdapFilters = new java.util.ArrayList(_list284.size); + int _elem285; + for (int _i286 = 0; _i286 < _list284.size; ++_i286) { - _elem277 = iprot.readI32(); - struct.presetLdapFilters.add(_elem277); + _elem285 = iprot.readI32(); + struct.presetLdapFilters.add(_elem285); } } struct.setPresetLdapFiltersIsSet(true); } if (incoming.get(32)) { { - org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.presetNetworkExceptionIds = new ArrayList(_list279.size); - int _elem280; - for (int _i281 = 0; _i281 < _list279.size; ++_i281) + org.apache.thrift.protocol.TList _list287 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32); + struct.presetNetworkExceptionIds = new java.util.ArrayList(_list287.size); + int _elem288; + for (int _i289 = 0; _i289 < _list287.size; ++_i289) { - _elem280 = iprot.readI32(); - struct.presetNetworkExceptionIds.add(_elem280); + _elem288 = iprot.readI32(); + struct.presetNetworkExceptionIds.add(_elem288); } } struct.setPresetNetworkExceptionIdsIsSet(true); @@ -4210,5 +4155,8 @@ public class LectureRead implements org.apache.thrift.TBase S scheme(org.apache.thrift.protocol.TProtocol proto) { + return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme(); + } } -- cgit v1.2.3-55-g7522