summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java309
1 files changed, 136 insertions, 173 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java
index 0dc1800..b412de9 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.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 = "2021-04-21")
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17")
public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, SatelliteConfig._Fields>, java.io.Serializable, Cloneable, Comparable<SatelliteConfig> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SatelliteConfig");
@@ -50,15 +23,12 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
private static final org.apache.thrift.protocol.TField SERVER_SIDE_COPY_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSideCopy", org.apache.thrift.protocol.TType.I32, (short)10);
private static final org.apache.thrift.protocol.TField ALLOW_STUDENT_DOWNLOAD_FIELD_DESC = new org.apache.thrift.protocol.TField("allowStudentDownload", org.apache.thrift.protocol.TType.BOOL, (short)11);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new SatelliteConfigStandardSchemeFactory());
- schemes.put(TupleScheme.class, new SatelliteConfigTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new SatelliteConfigStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new SatelliteConfigTupleSchemeFactory();
public int pageSize; // required
- public ImagePermissions defaultImagePermissions; // required
- public LecturePermissions defaultLecturePermissions; // required
+ public @org.apache.thrift.annotation.Nullable ImagePermissions defaultImagePermissions; // required
+ public @org.apache.thrift.annotation.Nullable LecturePermissions defaultLecturePermissions; // required
public int maxImageValidityDays; // required
public int maxLectureValidityDays; // required
public int maxTransfers; // optional
@@ -69,7 +39,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
*
* @see SscMode
*/
- public SscMode serverSideCopy; // optional
+ public @org.apache.thrift.annotation.Nullable SscMode serverSideCopy; // optional
public boolean allowStudentDownload; // optional
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
@@ -90,10 +60,10 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
SERVER_SIDE_COPY((short)10, "serverSideCopy"),
ALLOW_STUDENT_DOWNLOAD((short)11, "allowStudentDownload");
- private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
- for (_Fields field : EnumSet.allOf(_Fields.class)) {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
@@ -101,6 +71,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
/**
* 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: // PAGE_SIZE
@@ -136,21 +107,22 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
- public static _Fields findByName(String name) {
+ @org.apache.thrift.annotation.Nullable
+ public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
- private final String _fieldName;
+ private final java.lang.String _fieldName;
- _Fields(short thriftId, String fieldName) {
+ _Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
@@ -159,7 +131,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return _thriftId;
}
- public String getFieldName() {
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -175,9 +147,9 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
private static final int __ALLOWSTUDENTDOWNLOAD_ISSET_ID = 7;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.MAX_TRANSFERS,_Fields.MAX_CONNECTIONS_PER_TRANSFER,_Fields.MAX_LOCATIONS_PER_LECTURE,_Fields.ALLOW_LOGIN_BY_DEFAULT,_Fields.SERVER_SIDE_COPY,_Fields.ALLOW_STUDENT_DOWNLOAD};
- public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
- Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.PAGE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("pageSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.DEFAULT_IMAGE_PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("defaultImagePermissions", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -200,7 +172,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SscMode.class)));
tmpMap.put(_Fields.ALLOW_STUDENT_DOWNLOAD, new org.apache.thrift.meta_data.FieldMetaData("allowStudentDownload", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SatelliteConfig.class, metaDataMap);
}
@@ -287,23 +259,24 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetPageSize() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGESIZE_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PAGESIZE_ISSET_ID);
}
/** Returns true if field pageSize is set (has been assigned a value) and false otherwise */
public boolean isSetPageSize() {
- return EncodingUtils.testBit(__isset_bitfield, __PAGESIZE_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PAGESIZE_ISSET_ID);
}
public void setPageSizeIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGESIZE_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PAGESIZE_ISSET_ID, value);
}
+ @org.apache.thrift.annotation.Nullable
public ImagePermissions getDefaultImagePermissions() {
return this.defaultImagePermissions;
}
- public SatelliteConfig setDefaultImagePermissions(ImagePermissions defaultImagePermissions) {
+ public SatelliteConfig setDefaultImagePermissions(@org.apache.thrift.annotation.Nullable ImagePermissions defaultImagePermissions) {
this.defaultImagePermissions = defaultImagePermissions;
return this;
}
@@ -323,11 +296,12 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
}
+ @org.apache.thrift.annotation.Nullable
public LecturePermissions getDefaultLecturePermissions() {
return this.defaultLecturePermissions;
}
- public SatelliteConfig setDefaultLecturePermissions(LecturePermissions defaultLecturePermissions) {
+ public SatelliteConfig setDefaultLecturePermissions(@org.apache.thrift.annotation.Nullable LecturePermissions defaultLecturePermissions) {
this.defaultLecturePermissions = defaultLecturePermissions;
return this;
}
@@ -358,16 +332,16 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetMaxImageValidityDays() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXIMAGEVALIDITYDAYS_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXIMAGEVALIDITYDAYS_ISSET_ID);
}
/** Returns true if field maxImageValidityDays is set (has been assigned a value) and false otherwise */
public boolean isSetMaxImageValidityDays() {
- return EncodingUtils.testBit(__isset_bitfield, __MAXIMAGEVALIDITYDAYS_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXIMAGEVALIDITYDAYS_ISSET_ID);
}
public void setMaxImageValidityDaysIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXIMAGEVALIDITYDAYS_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXIMAGEVALIDITYDAYS_ISSET_ID, value);
}
public int getMaxLectureValidityDays() {
@@ -381,16 +355,16 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetMaxLectureValidityDays() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXLECTUREVALIDITYDAYS_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXLECTUREVALIDITYDAYS_ISSET_ID);
}
/** Returns true if field maxLectureValidityDays is set (has been assigned a value) and false otherwise */
public boolean isSetMaxLectureValidityDays() {
- return EncodingUtils.testBit(__isset_bitfield, __MAXLECTUREVALIDITYDAYS_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXLECTUREVALIDITYDAYS_ISSET_ID);
}
public void setMaxLectureValidityDaysIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXLECTUREVALIDITYDAYS_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXLECTUREVALIDITYDAYS_ISSET_ID, value);
}
public int getMaxTransfers() {
@@ -404,16 +378,16 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetMaxTransfers() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXTRANSFERS_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXTRANSFERS_ISSET_ID);
}
/** Returns true if field maxTransfers is set (has been assigned a value) and false otherwise */
public boolean isSetMaxTransfers() {
- return EncodingUtils.testBit(__isset_bitfield, __MAXTRANSFERS_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXTRANSFERS_ISSET_ID);
}
public void setMaxTransfersIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXTRANSFERS_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXTRANSFERS_ISSET_ID, value);
}
public int getMaxConnectionsPerTransfer() {
@@ -427,16 +401,16 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetMaxConnectionsPerTransfer() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXCONNECTIONSPERTRANSFER_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXCONNECTIONSPERTRANSFER_ISSET_ID);
}
/** Returns true if field maxConnectionsPerTransfer is set (has been assigned a value) and false otherwise */
public boolean isSetMaxConnectionsPerTransfer() {
- return EncodingUtils.testBit(__isset_bitfield, __MAXCONNECTIONSPERTRANSFER_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXCONNECTIONSPERTRANSFER_ISSET_ID);
}
public void setMaxConnectionsPerTransferIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXCONNECTIONSPERTRANSFER_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXCONNECTIONSPERTRANSFER_ISSET_ID, value);
}
public int getMaxLocationsPerLecture() {
@@ -450,16 +424,16 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetMaxLocationsPerLecture() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXLOCATIONSPERLECTURE_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MAXLOCATIONSPERLECTURE_ISSET_ID);
}
/** Returns true if field maxLocationsPerLecture is set (has been assigned a value) and false otherwise */
public boolean isSetMaxLocationsPerLecture() {
- return EncodingUtils.testBit(__isset_bitfield, __MAXLOCATIONSPERLECTURE_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MAXLOCATIONSPERLECTURE_ISSET_ID);
}
public void setMaxLocationsPerLectureIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXLOCATIONSPERLECTURE_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MAXLOCATIONSPERLECTURE_ISSET_ID, value);
}
public boolean isAllowLoginByDefault() {
@@ -473,22 +447,23 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetAllowLoginByDefault() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ALLOWLOGINBYDEFAULT_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ALLOWLOGINBYDEFAULT_ISSET_ID);
}
/** Returns true if field allowLoginByDefault is set (has been assigned a value) and false otherwise */
public boolean isSetAllowLoginByDefault() {
- return EncodingUtils.testBit(__isset_bitfield, __ALLOWLOGINBYDEFAULT_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ALLOWLOGINBYDEFAULT_ISSET_ID);
}
public void setAllowLoginByDefaultIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ALLOWLOGINBYDEFAULT_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ALLOWLOGINBYDEFAULT_ISSET_ID, value);
}
/**
*
* @see SscMode
*/
+ @org.apache.thrift.annotation.Nullable
public SscMode getServerSideCopy() {
return this.serverSideCopy;
}
@@ -497,7 +472,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
*
* @see SscMode
*/
- public SatelliteConfig setServerSideCopy(SscMode serverSideCopy) {
+ public SatelliteConfig setServerSideCopy(@org.apache.thrift.annotation.Nullable SscMode serverSideCopy) {
this.serverSideCopy = serverSideCopy;
return this;
}
@@ -528,25 +503,25 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
public void unsetAllowStudentDownload() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ALLOWSTUDENTDOWNLOAD_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ALLOWSTUDENTDOWNLOAD_ISSET_ID);
}
/** Returns true if field allowStudentDownload is set (has been assigned a value) and false otherwise */
public boolean isSetAllowStudentDownload() {
- return EncodingUtils.testBit(__isset_bitfield, __ALLOWSTUDENTDOWNLOAD_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ALLOWSTUDENTDOWNLOAD_ISSET_ID);
}
public void setAllowStudentDownloadIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ALLOWSTUDENTDOWNLOAD_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ALLOWSTUDENTDOWNLOAD_ISSET_ID, value);
}
- public void setFieldValue(_Fields field, Object value) {
+ public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PAGE_SIZE:
if (value == null) {
unsetPageSize();
} else {
- setPageSize((Integer)value);
+ setPageSize((java.lang.Integer)value);
}
break;
@@ -570,7 +545,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (value == null) {
unsetMaxImageValidityDays();
} else {
- setMaxImageValidityDays((Integer)value);
+ setMaxImageValidityDays((java.lang.Integer)value);
}
break;
@@ -578,7 +553,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (value == null) {
unsetMaxLectureValidityDays();
} else {
- setMaxLectureValidityDays((Integer)value);
+ setMaxLectureValidityDays((java.lang.Integer)value);
}
break;
@@ -586,7 +561,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (value == null) {
unsetMaxTransfers();
} else {
- setMaxTransfers((Integer)value);
+ setMaxTransfers((java.lang.Integer)value);
}
break;
@@ -594,7 +569,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (value == null) {
unsetMaxConnectionsPerTransfer();
} else {
- setMaxConnectionsPerTransfer((Integer)value);
+ setMaxConnectionsPerTransfer((java.lang.Integer)value);
}
break;
@@ -602,7 +577,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (value == null) {
unsetMaxLocationsPerLecture();
} else {
- setMaxLocationsPerLecture((Integer)value);
+ setMaxLocationsPerLecture((java.lang.Integer)value);
}
break;
@@ -610,7 +585,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (value == null) {
unsetAllowLoginByDefault();
} else {
- setAllowLoginByDefault((Boolean)value);
+ setAllowLoginByDefault((java.lang.Boolean)value);
}
break;
@@ -626,14 +601,15 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
if (value == null) {
unsetAllowStudentDownload();
} else {
- setAllowStudentDownload((Boolean)value);
+ setAllowStudentDownload((java.lang.Boolean)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PAGE_SIZE:
return getPageSize();
@@ -669,13 +645,13 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return isAllowStudentDownload();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
- throw new IllegalArgumentException();
+ throw new java.lang.IllegalArgumentException();
}
switch (field) {
@@ -702,13 +678,11 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
case ALLOW_STUDENT_DOWNLOAD:
return isSetAllowStudentDownload();
}
- throw new IllegalStateException();
+ throw new java.lang.IllegalStateException();
}
@Override
- public boolean equals(Object that) {
- if (that == null)
- return false;
+ public boolean equals(java.lang.Object that) {
if (that instanceof SatelliteConfig)
return this.equals((SatelliteConfig)that);
return false;
@@ -717,6 +691,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
public boolean equals(SatelliteConfig that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_pageSize = true;
boolean that_present_pageSize = true;
@@ -822,64 +798,47 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
-
- boolean present_pageSize = true;
- list.add(present_pageSize);
- if (present_pageSize)
- list.add(pageSize);
-
- boolean present_defaultImagePermissions = true && (isSetDefaultImagePermissions());
- list.add(present_defaultImagePermissions);
- if (present_defaultImagePermissions)
- list.add(defaultImagePermissions);
-
- boolean present_defaultLecturePermissions = true && (isSetDefaultLecturePermissions());
- list.add(present_defaultLecturePermissions);
- if (present_defaultLecturePermissions)
- list.add(defaultLecturePermissions);
-
- boolean present_maxImageValidityDays = true;
- list.add(present_maxImageValidityDays);
- if (present_maxImageValidityDays)
- list.add(maxImageValidityDays);
-
- boolean present_maxLectureValidityDays = true;
- list.add(present_maxLectureValidityDays);
- if (present_maxLectureValidityDays)
- list.add(maxLectureValidityDays);
-
- boolean present_maxTransfers = true && (isSetMaxTransfers());
- list.add(present_maxTransfers);
- if (present_maxTransfers)
- list.add(maxTransfers);
-
- boolean present_maxConnectionsPerTransfer = true && (isSetMaxConnectionsPerTransfer());
- list.add(present_maxConnectionsPerTransfer);
- if (present_maxConnectionsPerTransfer)
- list.add(maxConnectionsPerTransfer);
-
- boolean present_maxLocationsPerLecture = true && (isSetMaxLocationsPerLecture());
- list.add(present_maxLocationsPerLecture);
- if (present_maxLocationsPerLecture)
- list.add(maxLocationsPerLecture);
-
- boolean present_allowLoginByDefault = true && (isSetAllowLoginByDefault());
- list.add(present_allowLoginByDefault);
- if (present_allowLoginByDefault)
- list.add(allowLoginByDefault);
-
- boolean present_serverSideCopy = true && (isSetServerSideCopy());
- list.add(present_serverSideCopy);
- if (present_serverSideCopy)
- list.add(serverSideCopy.getValue());
-
- boolean present_allowStudentDownload = true && (isSetAllowStudentDownload());
- list.add(present_allowStudentDownload);
- if (present_allowStudentDownload)
- list.add(allowStudentDownload);
-
- return list.hashCode();
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + pageSize;
+
+ hashCode = hashCode * 8191 + ((isSetDefaultImagePermissions()) ? 131071 : 524287);
+ if (isSetDefaultImagePermissions())
+ hashCode = hashCode * 8191 + defaultImagePermissions.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetDefaultLecturePermissions()) ? 131071 : 524287);
+ if (isSetDefaultLecturePermissions())
+ hashCode = hashCode * 8191 + defaultLecturePermissions.hashCode();
+
+ hashCode = hashCode * 8191 + maxImageValidityDays;
+
+ hashCode = hashCode * 8191 + maxLectureValidityDays;
+
+ hashCode = hashCode * 8191 + ((isSetMaxTransfers()) ? 131071 : 524287);
+ if (isSetMaxTransfers())
+ hashCode = hashCode * 8191 + maxTransfers;
+
+ hashCode = hashCode * 8191 + ((isSetMaxConnectionsPerTransfer()) ? 131071 : 524287);
+ if (isSetMaxConnectionsPerTransfer())
+ hashCode = hashCode * 8191 + maxConnectionsPerTransfer;
+
+ hashCode = hashCode * 8191 + ((isSetMaxLocationsPerLecture()) ? 131071 : 524287);
+ if (isSetMaxLocationsPerLecture())
+ hashCode = hashCode * 8191 + maxLocationsPerLecture;
+
+ hashCode = hashCode * 8191 + ((isSetAllowLoginByDefault()) ? 131071 : 524287);
+ if (isSetAllowLoginByDefault())
+ hashCode = hashCode * 8191 + ((allowLoginByDefault) ? 131071 : 524287);
+
+ hashCode = hashCode * 8191 + ((isSetServerSideCopy()) ? 131071 : 524287);
+ if (isSetServerSideCopy())
+ hashCode = hashCode * 8191 + serverSideCopy.getValue();
+
+ hashCode = hashCode * 8191 + ((isSetAllowStudentDownload()) ? 131071 : 524287);
+ if (isSetAllowStudentDownload())
+ hashCode = hashCode * 8191 + ((allowStudentDownload) ? 131071 : 524287);
+
+ return hashCode;
}
@Override
@@ -890,7 +849,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetPageSize()).compareTo(other.isSetPageSize());
+ lastComparison = java.lang.Boolean.compare(isSetPageSize(), other.isSetPageSize());
if (lastComparison != 0) {
return lastComparison;
}
@@ -900,7 +859,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDefaultImagePermissions()).compareTo(other.isSetDefaultImagePermissions());
+ lastComparison = java.lang.Boolean.compare(isSetDefaultImagePermissions(), other.isSetDefaultImagePermissions());
if (lastComparison != 0) {
return lastComparison;
}
@@ -910,7 +869,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDefaultLecturePermissions()).compareTo(other.isSetDefaultLecturePermissions());
+ lastComparison = java.lang.Boolean.compare(isSetDefaultLecturePermissions(), other.isSetDefaultLecturePermissions());
if (lastComparison != 0) {
return lastComparison;
}
@@ -920,7 +879,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetMaxImageValidityDays()).compareTo(other.isSetMaxImageValidityDays());
+ lastComparison = java.lang.Boolean.compare(isSetMaxImageValidityDays(), other.isSetMaxImageValidityDays());
if (lastComparison != 0) {
return lastComparison;
}
@@ -930,7 +889,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetMaxLectureValidityDays()).compareTo(other.isSetMaxLectureValidityDays());
+ lastComparison = java.lang.Boolean.compare(isSetMaxLectureValidityDays(), other.isSetMaxLectureValidityDays());
if (lastComparison != 0) {
return lastComparison;
}
@@ -940,7 +899,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetMaxTransfers()).compareTo(other.isSetMaxTransfers());
+ lastComparison = java.lang.Boolean.compare(isSetMaxTransfers(), other.isSetMaxTransfers());
if (lastComparison != 0) {
return lastComparison;
}
@@ -950,7 +909,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetMaxConnectionsPerTransfer()).compareTo(other.isSetMaxConnectionsPerTransfer());
+ lastComparison = java.lang.Boolean.compare(isSetMaxConnectionsPerTransfer(), other.isSetMaxConnectionsPerTransfer());
if (lastComparison != 0) {
return lastComparison;
}
@@ -960,7 +919,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetMaxLocationsPerLecture()).compareTo(other.isSetMaxLocationsPerLecture());
+ lastComparison = java.lang.Boolean.compare(isSetMaxLocationsPerLecture(), other.isSetMaxLocationsPerLecture());
if (lastComparison != 0) {
return lastComparison;
}
@@ -970,7 +929,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAllowLoginByDefault()).compareTo(other.isSetAllowLoginByDefault());
+ lastComparison = java.lang.Boolean.compare(isSetAllowLoginByDefault(), other.isSetAllowLoginByDefault());
if (lastComparison != 0) {
return lastComparison;
}
@@ -980,7 +939,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetServerSideCopy()).compareTo(other.isSetServerSideCopy());
+ lastComparison = java.lang.Boolean.compare(isSetServerSideCopy(), other.isSetServerSideCopy());
if (lastComparison != 0) {
return lastComparison;
}
@@ -990,7 +949,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetAllowStudentDownload()).compareTo(other.isSetAllowStudentDownload());
+ lastComparison = java.lang.Boolean.compare(isSetAllowStudentDownload(), other.isSetAllowStudentDownload());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1003,21 +962,22 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
return 0;
}
+ @org.apache.thrift.annotation.Nullable
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+ scheme(iprot).read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+ scheme(oprot).write(oprot, this);
}
@Override
- public String toString() {
- StringBuilder sb = new StringBuilder("SatelliteConfig(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("SatelliteConfig(");
boolean first = true;
sb.append("pageSize:");
@@ -1110,7 +1070,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
}
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
@@ -1120,13 +1080,13 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
}
- private static class SatelliteConfigStandardSchemeFactory implements SchemeFactory {
+ private static class SatelliteConfigStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public SatelliteConfigStandardScheme getScheme() {
return new SatelliteConfigStandardScheme();
}
}
- private static class SatelliteConfigStandardScheme extends StandardScheme<SatelliteConfig> {
+ private static class SatelliteConfigStandardScheme extends org.apache.thrift.scheme.StandardScheme<SatelliteConfig> {
public void read(org.apache.thrift.protocol.TProtocol iprot, SatelliteConfig struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
@@ -1300,18 +1260,18 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
- private static class SatelliteConfigTupleSchemeFactory implements SchemeFactory {
+ private static class SatelliteConfigTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public SatelliteConfigTupleScheme getScheme() {
return new SatelliteConfigTupleScheme();
}
}
- private static class SatelliteConfigTupleScheme extends TupleScheme<SatelliteConfig> {
+ private static class SatelliteConfigTupleScheme extends org.apache.thrift.scheme.TupleScheme<SatelliteConfig> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, SatelliteConfig 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.isSetPageSize()) {
optionals.set(0);
}
@@ -1383,8 +1343,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, SatelliteConfig struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(11);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(11);
if (incoming.get(0)) {
struct.pageSize = iprot.readI32();
struct.setPageSizeIsSet(true);
@@ -1434,5 +1394,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig,
}
}
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
}