summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java169
1 files changed, 137 insertions, 32 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java
index d63885e..25e518b 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureSummary.java
@@ -34,12 +34,13 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2016-03-02")
+@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2020-10-12")
public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, LectureSummary._Fields>, java.io.Serializable, Cloneable, Comparable<LectureSummary> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LectureSummary");
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)18);
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)3);
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)4);
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)5);
@@ -64,6 +65,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
public String lectureId; // required
public String lectureName; // required
+ public String description; // required
public String imageVersionId; // required
public String imageBaseId; // required
public boolean isEnabled; // required
@@ -84,6 +86,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
LECTURE_ID((short)1, "lectureId"),
LECTURE_NAME((short)2, "lectureName"),
+ DESCRIPTION((short)18, "description"),
IMAGE_VERSION_ID((short)3, "imageVersionId"),
IMAGE_BASE_ID((short)4, "imageBaseId"),
IS_ENABLED((short)5, "isEnabled"),
@@ -117,6 +120,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
return LECTURE_ID;
case 2: // LECTURE_NAME
return LECTURE_NAME;
+ case 18: // DESCRIPTION
+ return DESCRIPTION;
case 3: // IMAGE_VERSION_ID
return IMAGE_VERSION_ID;
case 4: // IMAGE_BASE_ID
@@ -205,6 +210,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
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 , "UUID")));
tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -245,6 +252,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
public LectureSummary(
String lectureId,
String lectureName,
+ String description,
String imageVersionId,
String imageBaseId,
boolean isEnabled,
@@ -263,6 +271,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
this();
this.lectureId = lectureId;
this.lectureName = lectureName;
+ this.description = description;
this.imageVersionId = imageVersionId;
this.imageBaseId = imageBaseId;
this.isEnabled = isEnabled;
@@ -299,6 +308,9 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
if (other.isSetLectureName()) {
this.lectureName = other.lectureName;
}
+ if (other.isSetDescription()) {
+ this.description = other.description;
+ }
if (other.isSetImageVersionId()) {
this.imageVersionId = other.imageVersionId;
}
@@ -336,6 +348,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
public void clear() {
this.lectureId = null;
this.lectureName = null;
+ this.description = null;
this.imageVersionId = null;
this.imageBaseId = null;
setIsEnabledIsSet(false);
@@ -410,6 +423,30 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
}
}
+ public String getDescription() {
+ return this.description;
+ }
+
+ public LectureSummary setDescription(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;
+ }
+ }
+
public String getImageVersionId() {
return this.imageVersionId;
}
@@ -779,6 +816,14 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
}
break;
+ case DESCRIPTION:
+ if (value == null) {
+ unsetDescription();
+ } else {
+ setDescription((String)value);
+ }
+ break;
+
case IMAGE_VERSION_ID:
if (value == null) {
unsetImageVersionId();
@@ -910,6 +955,9 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
case LECTURE_NAME:
return getLectureName();
+ case DESCRIPTION:
+ return getDescription();
+
case IMAGE_VERSION_ID:
return getImageVersionId();
@@ -970,6 +1018,8 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
return isSetLectureId();
case LECTURE_NAME:
return isSetLectureName();
+ case DESCRIPTION:
+ return isSetDescription();
case IMAGE_VERSION_ID:
return isSetImageVersionId();
case IMAGE_BASE_ID:
@@ -1035,6 +1085,15 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
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) {
@@ -1187,6 +1246,11 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
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)
@@ -1293,6 +1357,16 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
return lastComparison;
}
}
+ lastComparison = Boolean.valueOf(isSetDescription()).compareTo(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 = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId());
if (lastComparison != 0) {
return lastComparison;
@@ -1479,6 +1553,14 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
}
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");
@@ -1631,6 +1713,14 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 18: // 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 3: // IMAGE_VERSION_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.imageVersionId = iprot.readString();
@@ -1837,6 +1927,11 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
oprot.writeFieldBegin(HAS_USB_ACCESS_FIELD_DESC);
oprot.writeBool(struct.hasUsbAccess);
oprot.writeFieldEnd();
+ if (struct.description != null) {
+ oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
+ oprot.writeString(struct.description);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
@@ -1861,58 +1956,64 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
if (struct.isSetLectureName()) {
optionals.set(1);
}
- if (struct.isSetImageVersionId()) {
+ if (struct.isSetDescription()) {
optionals.set(2);
}
- if (struct.isSetImageBaseId()) {
+ if (struct.isSetImageVersionId()) {
optionals.set(3);
}
- if (struct.isSetIsEnabled()) {
+ if (struct.isSetImageBaseId()) {
optionals.set(4);
}
- if (struct.isSetStartTime()) {
+ if (struct.isSetIsEnabled()) {
optionals.set(5);
}
- if (struct.isSetEndTime()) {
+ if (struct.isSetStartTime()) {
optionals.set(6);
}
- if (struct.isSetLastUsed()) {
+ if (struct.isSetEndTime()) {
optionals.set(7);
}
- if (struct.isSetUseCount()) {
+ if (struct.isSetLastUsed()) {
optionals.set(8);
}
- if (struct.isSetOwnerId()) {
+ if (struct.isSetUseCount()) {
optionals.set(9);
}
- if (struct.isSetUpdaterId()) {
+ if (struct.isSetOwnerId()) {
optionals.set(10);
}
- if (struct.isSetIsExam()) {
+ if (struct.isSetUpdaterId()) {
optionals.set(11);
}
- if (struct.isSetHasInternetAccess()) {
+ if (struct.isSetIsExam()) {
optionals.set(12);
}
- if (struct.isSetDefaultPermissions()) {
+ if (struct.isSetHasInternetAccess()) {
optionals.set(13);
}
- if (struct.isSetUserPermissions()) {
+ if (struct.isSetDefaultPermissions()) {
optionals.set(14);
}
- if (struct.isSetIsImageVersionUsable()) {
+ if (struct.isSetUserPermissions()) {
optionals.set(15);
}
- if (struct.isSetHasUsbAccess()) {
+ if (struct.isSetIsImageVersionUsable()) {
optionals.set(16);
}
- oprot.writeBitSet(optionals, 17);
+ if (struct.isSetHasUsbAccess()) {
+ optionals.set(17);
+ }
+ oprot.writeBitSet(optionals, 18);
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);
}
@@ -1963,7 +2064,7 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, LectureSummary struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(17);
+ BitSet incoming = iprot.readBitSet(18);
if (incoming.get(0)) {
struct.lectureId = iprot.readString();
struct.setLectureIdIsSet(true);
@@ -1973,64 +2074,68 @@ public class LectureSummary implements org.apache.thrift.TBase<LectureSummary, L
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(3)) {
+ if (incoming.get(4)) {
struct.imageBaseId = iprot.readString();
struct.setImageBaseIdIsSet(true);
}
- if (incoming.get(4)) {
+ if (incoming.get(5)) {
struct.isEnabled = iprot.readBool();
struct.setIsEnabledIsSet(true);
}
- if (incoming.get(5)) {
+ if (incoming.get(6)) {
struct.startTime = iprot.readI64();
struct.setStartTimeIsSet(true);
}
- if (incoming.get(6)) {
+ if (incoming.get(7)) {
struct.endTime = iprot.readI64();
struct.setEndTimeIsSet(true);
}
- if (incoming.get(7)) {
+ if (incoming.get(8)) {
struct.lastUsed = iprot.readI64();
struct.setLastUsedIsSet(true);
}
- if (incoming.get(8)) {
+ if (incoming.get(9)) {
struct.useCount = iprot.readI32();
struct.setUseCountIsSet(true);
}
- if (incoming.get(9)) {
+ if (incoming.get(10)) {
struct.ownerId = iprot.readString();
struct.setOwnerIdIsSet(true);
}
- if (incoming.get(10)) {
+ if (incoming.get(11)) {
struct.updaterId = iprot.readString();
struct.setUpdaterIdIsSet(true);
}
- if (incoming.get(11)) {
+ if (incoming.get(12)) {
struct.isExam = iprot.readBool();
struct.setIsExamIsSet(true);
}
- if (incoming.get(12)) {
+ if (incoming.get(13)) {
struct.hasInternetAccess = iprot.readBool();
struct.setHasInternetAccessIsSet(true);
}
- if (incoming.get(13)) {
+ if (incoming.get(14)) {
struct.defaultPermissions = new LecturePermissions();
struct.defaultPermissions.read(iprot);
struct.setDefaultPermissionsIsSet(true);
}
- if (incoming.get(14)) {
+ if (incoming.get(15)) {
struct.userPermissions = new LecturePermissions();
struct.userPermissions.read(iprot);
struct.setUserPermissionsIsSet(true);
}
- if (incoming.get(15)) {
+ if (incoming.get(16)) {
struct.isImageVersionUsable = iprot.readBool();
struct.setIsImageVersionUsableIsSet(true);
}
- if (incoming.get(16)) {
+ if (incoming.get(17)) {
struct.hasUsbAccess = iprot.readBool();
struct.setHasUsbAccessIsSet(true);
}