diff options
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.java | 110 |
1 files changed, 105 insertions, 5 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 f9ec5f2..08482a7 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteConfig.java @@ -34,7 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-01-19") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-01-24") 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"); @@ -46,6 +46,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, private static final org.apache.thrift.protocol.TField MAX_TRANSFERS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxTransfers", org.apache.thrift.protocol.TType.I32, (short)6); private static final org.apache.thrift.protocol.TField MAX_CONNECTIONS_PER_TRANSFER_FIELD_DESC = new org.apache.thrift.protocol.TField("maxConnectionsPerTransfer", org.apache.thrift.protocol.TType.I32, (short)7); private static final org.apache.thrift.protocol.TField MAX_LOCATIONS_PER_LECTURE_FIELD_DESC = new org.apache.thrift.protocol.TField("maxLocationsPerLecture", org.apache.thrift.protocol.TType.I32, (short)8); + private static final org.apache.thrift.protocol.TField ALLOW_LOGIN_BY_DEFAULT_FIELD_DESC = new org.apache.thrift.protocol.TField("allowLoginByDefault", org.apache.thrift.protocol.TType.BOOL, (short)9); private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); static { @@ -61,6 +62,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, public int maxTransfers; // optional public int maxConnectionsPerTransfer; // optional public int maxLocationsPerLecture; // optional + public boolean allowLoginByDefault; // 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 { @@ -71,7 +73,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, MAX_LECTURE_VALIDITY_DAYS((short)5, "maxLectureValidityDays"), MAX_TRANSFERS((short)6, "maxTransfers"), MAX_CONNECTIONS_PER_TRANSFER((short)7, "maxConnectionsPerTransfer"), - MAX_LOCATIONS_PER_LECTURE((short)8, "maxLocationsPerLecture"); + MAX_LOCATIONS_PER_LECTURE((short)8, "maxLocationsPerLecture"), + ALLOW_LOGIN_BY_DEFAULT((short)9, "allowLoginByDefault"); private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); @@ -102,6 +105,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, return MAX_CONNECTIONS_PER_TRANSFER; case 8: // MAX_LOCATIONS_PER_LECTURE return MAX_LOCATIONS_PER_LECTURE; + case 9: // ALLOW_LOGIN_BY_DEFAULT + return ALLOW_LOGIN_BY_DEFAULT; default: return null; } @@ -148,8 +153,9 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, private static final int __MAXTRANSFERS_ISSET_ID = 3; private static final int __MAXCONNECTIONSPERTRANSFER_ISSET_ID = 4; private static final int __MAXLOCATIONSPERLECTURE_ISSET_ID = 5; + private static final int __ALLOWLOGINBYDEFAULT_ISSET_ID = 6; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.MAX_TRANSFERS,_Fields.MAX_CONNECTIONS_PER_TRANSFER,_Fields.MAX_LOCATIONS_PER_LECTURE}; + private static final _Fields optionals[] = {_Fields.MAX_TRANSFERS,_Fields.MAX_CONNECTIONS_PER_TRANSFER,_Fields.MAX_LOCATIONS_PER_LECTURE,_Fields.ALLOW_LOGIN_BY_DEFAULT}; public static final 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); @@ -169,6 +175,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.MAX_LOCATIONS_PER_LECTURE, new org.apache.thrift.meta_data.FieldMetaData("maxLocationsPerLecture", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.ALLOW_LOGIN_BY_DEFAULT, new org.apache.thrift.meta_data.FieldMetaData("allowLoginByDefault", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SatelliteConfig.class, metaDataMap); } @@ -211,6 +219,7 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, this.maxTransfers = other.maxTransfers; this.maxConnectionsPerTransfer = other.maxConnectionsPerTransfer; this.maxLocationsPerLecture = other.maxLocationsPerLecture; + this.allowLoginByDefault = other.allowLoginByDefault; } public SatelliteConfig deepCopy() { @@ -233,6 +242,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, this.maxConnectionsPerTransfer = 0; setMaxLocationsPerLectureIsSet(false); this.maxLocationsPerLecture = 0; + setAllowLoginByDefaultIsSet(false); + this.allowLoginByDefault = false; } public int getPageSize() { @@ -421,6 +432,29 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXLOCATIONSPERLECTURE_ISSET_ID, value); } + public boolean isAllowLoginByDefault() { + return this.allowLoginByDefault; + } + + public SatelliteConfig setAllowLoginByDefault(boolean allowLoginByDefault) { + this.allowLoginByDefault = allowLoginByDefault; + setAllowLoginByDefaultIsSet(true); + return this; + } + + public void unsetAllowLoginByDefault() { + __isset_bitfield = 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); + } + + public void setAllowLoginByDefaultIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ALLOWLOGINBYDEFAULT_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case PAGE_SIZE: @@ -487,6 +521,14 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, } break; + case ALLOW_LOGIN_BY_DEFAULT: + if (value == null) { + unsetAllowLoginByDefault(); + } else { + setAllowLoginByDefault((Boolean)value); + } + break; + } } @@ -516,6 +558,9 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, case MAX_LOCATIONS_PER_LECTURE: return getMaxLocationsPerLecture(); + case ALLOW_LOGIN_BY_DEFAULT: + return isAllowLoginByDefault(); + } throw new IllegalStateException(); } @@ -543,6 +588,8 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, return isSetMaxConnectionsPerTransfer(); case MAX_LOCATIONS_PER_LECTURE: return isSetMaxLocationsPerLecture(); + case ALLOW_LOGIN_BY_DEFAULT: + return isSetAllowLoginByDefault(); } throw new IllegalStateException(); } @@ -632,6 +679,15 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, return false; } + boolean this_present_allowLoginByDefault = true && this.isSetAllowLoginByDefault(); + boolean that_present_allowLoginByDefault = true && that.isSetAllowLoginByDefault(); + if (this_present_allowLoginByDefault || that_present_allowLoginByDefault) { + if (!(this_present_allowLoginByDefault && that_present_allowLoginByDefault)) + return false; + if (this.allowLoginByDefault != that.allowLoginByDefault) + return false; + } + return true; } @@ -679,6 +735,11 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, if (present_maxLocationsPerLecture) list.add(maxLocationsPerLecture); + boolean present_allowLoginByDefault = true && (isSetAllowLoginByDefault()); + list.add(present_allowLoginByDefault); + if (present_allowLoginByDefault) + list.add(allowLoginByDefault); + return list.hashCode(); } @@ -770,6 +831,16 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, return lastComparison; } } + lastComparison = Boolean.valueOf(isSetAllowLoginByDefault()).compareTo(other.isSetAllowLoginByDefault()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAllowLoginByDefault()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allowLoginByDefault, other.allowLoginByDefault); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -835,6 +906,12 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, sb.append(this.maxLocationsPerLecture); first = false; } + if (isSetAllowLoginByDefault()) { + if (!first) sb.append(", "); + sb.append("allowLoginByDefault:"); + sb.append(this.allowLoginByDefault); + first = false; + } sb.append(")"); return sb.toString(); } @@ -952,6 +1029,14 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 9: // ALLOW_LOGIN_BY_DEFAULT + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.allowLoginByDefault = iprot.readBool(); + struct.setAllowLoginByDefaultIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1001,6 +1086,11 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, oprot.writeI32(struct.maxLocationsPerLecture); oprot.writeFieldEnd(); } + if (struct.isSetAllowLoginByDefault()) { + oprot.writeFieldBegin(ALLOW_LOGIN_BY_DEFAULT_FIELD_DESC); + oprot.writeBool(struct.allowLoginByDefault); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1043,7 +1133,10 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, if (struct.isSetMaxLocationsPerLecture()) { optionals.set(7); } - oprot.writeBitSet(optionals, 8); + if (struct.isSetAllowLoginByDefault()) { + optionals.set(8); + } + oprot.writeBitSet(optionals, 9); if (struct.isSetPageSize()) { oprot.writeI32(struct.pageSize); } @@ -1068,12 +1161,15 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, if (struct.isSetMaxLocationsPerLecture()) { oprot.writeI32(struct.maxLocationsPerLecture); } + if (struct.isSetAllowLoginByDefault()) { + oprot.writeBool(struct.allowLoginByDefault); + } } @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(8); + BitSet incoming = iprot.readBitSet(9); if (incoming.get(0)) { struct.pageSize = iprot.readI32(); struct.setPageSizeIsSet(true); @@ -1108,6 +1204,10 @@ public class SatelliteConfig implements org.apache.thrift.TBase<SatelliteConfig, struct.maxLocationsPerLecture = iprot.readI32(); struct.setMaxLocationsPerLectureIsSet(true); } + if (incoming.get(8)) { + struct.allowLoginByDefault = iprot.readBool(); + struct.setAllowLoginByDefaultIsSet(true); + } } } |