diff options
Diffstat (limited to 'src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java')
-rw-r--r-- | src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java | 120 |
1 files changed, 56 insertions, 64 deletions
diff --git a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java index 30b49a3..b1c91fa 100644 --- a/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java +++ b/src/main/java/org/openslx/imagemaster/thrift/iface/ImageData.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.1) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -15,8 +15,6 @@ 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; @@ -32,7 +30,7 @@ import java.util.Arrays; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._Fields>, java.io.Serializable, Cloneable, Comparable<ImageData> { +public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._Fields>, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ImageData"); private static final org.apache.thrift.protocol.TField UUID_FIELD_DESC = new org.apache.thrift.protocol.TField("uuid", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -41,7 +39,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I64, (short)4); private static final org.apache.thrift.protocol.TField UPDATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("updateTime", org.apache.thrift.protocol.TType.I64, (short)5); private static final org.apache.thrift.protocol.TField OWNER_LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerLogin", org.apache.thrift.protocol.TType.STRING, (short)6); - private static final org.apache.thrift.protocol.TField OPERATING_SYSTEM_FIELD_DESC = new org.apache.thrift.protocol.TField("operatingSystem", org.apache.thrift.protocol.TType.STRING, (short)7); + private static final org.apache.thrift.protocol.TField OPERATING_SYSTEM_FIELD_DESC = new org.apache.thrift.protocol.TField("operatingSystem", org.apache.thrift.protocol.TType.I32, (short)7); private static final org.apache.thrift.protocol.TField IS_VALID_FIELD_DESC = new org.apache.thrift.protocol.TField("isValid", org.apache.thrift.protocol.TType.BOOL, (short)8); private static final org.apache.thrift.protocol.TField IS_DELETED_FIELD_DESC = new org.apache.thrift.protocol.TField("isDeleted", org.apache.thrift.protocol.TType.BOOL, (short)9); 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)11); @@ -59,7 +57,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ public long createTime; // required public long updateTime; // required public String ownerLogin; // required - public String operatingSystem; // required + public int operatingSystem; // required public boolean isValid; // required public boolean isDeleted; // required public String description; // required @@ -157,9 +155,10 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ private static final int __REVISION_ISSET_ID = 0; private static final int __CREATETIME_ISSET_ID = 1; private static final int __UPDATETIME_ISSET_ID = 2; - private static final int __ISVALID_ISSET_ID = 3; - private static final int __ISDELETED_ISSET_ID = 4; - private static final int __FILESIZE_ISSET_ID = 5; + private static final int __OPERATINGSYSTEM_ISSET_ID = 3; + private static final int __ISVALID_ISSET_ID = 4; + private static final int __ISDELETED_ISSET_ID = 5; + private static final int __FILESIZE_ISSET_ID = 6; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { @@ -177,7 +176,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ tmpMap.put(_Fields.OWNER_LOGIN, new org.apache.thrift.meta_data.FieldMetaData("ownerLogin", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.OPERATING_SYSTEM, new org.apache.thrift.meta_data.FieldMetaData("operatingSystem", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.IS_VALID, new org.apache.thrift.meta_data.FieldMetaData("isValid", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.IS_DELETED, new org.apache.thrift.meta_data.FieldMetaData("isDeleted", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -200,7 +199,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ long createTime, long updateTime, String ownerLogin, - String operatingSystem, + int operatingSystem, boolean isValid, boolean isDeleted, String description, @@ -217,6 +216,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ setUpdateTimeIsSet(true); this.ownerLogin = ownerLogin; this.operatingSystem = operatingSystem; + setOperatingSystemIsSet(true); this.isValid = isValid; setIsValidIsSet(true); this.isDeleted = isDeleted; @@ -243,9 +243,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ if (other.isSetOwnerLogin()) { this.ownerLogin = other.ownerLogin; } - if (other.isSetOperatingSystem()) { - this.operatingSystem = other.operatingSystem; - } + this.operatingSystem = other.operatingSystem; this.isValid = other.isValid; this.isDeleted = other.isDeleted; if (other.isSetDescription()) { @@ -269,7 +267,8 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ setUpdateTimeIsSet(false); this.updateTime = 0; this.ownerLogin = null; - this.operatingSystem = null; + setOperatingSystemIsSet(false); + this.operatingSystem = 0; setIsValidIsSet(false); this.isValid = false; setIsDeletedIsSet(false); @@ -420,28 +419,27 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ } } - public String getOperatingSystem() { + public int getOperatingSystem() { return this.operatingSystem; } - public ImageData setOperatingSystem(String operatingSystem) { + public ImageData setOperatingSystem(int operatingSystem) { this.operatingSystem = operatingSystem; + setOperatingSystemIsSet(true); return this; } public void unsetOperatingSystem() { - this.operatingSystem = null; + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPERATINGSYSTEM_ISSET_ID); } /** Returns true if field operatingSystem is set (has been assigned a value) and false otherwise */ public boolean isSetOperatingSystem() { - return this.operatingSystem != null; + return EncodingUtils.testBit(__isset_bitfield, __OPERATINGSYSTEM_ISSET_ID); } public void setOperatingSystemIsSet(boolean value) { - if (!value) { - this.operatingSystem = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPERATINGSYSTEM_ISSET_ID, value); } public boolean isIsValid() { @@ -591,7 +589,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ if (value == null) { unsetOperatingSystem(); } else { - setOperatingSystem((String)value); + setOperatingSystem((Integer)value); } break; @@ -651,7 +649,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ return getOwnerLogin(); case OPERATING_SYSTEM: - return getOperatingSystem(); + return Integer.valueOf(getOperatingSystem()); case IS_VALID: return Boolean.valueOf(isIsValid()); @@ -769,12 +767,12 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ return false; } - boolean this_present_operatingSystem = true && this.isSetOperatingSystem(); - boolean that_present_operatingSystem = true && that.isSetOperatingSystem(); + boolean this_present_operatingSystem = true; + boolean that_present_operatingSystem = true; if (this_present_operatingSystem || that_present_operatingSystem) { if (!(this_present_operatingSystem && that_present_operatingSystem)) return false; - if (!this.operatingSystem.equals(that.operatingSystem)) + if (this.operatingSystem != that.operatingSystem) return false; } @@ -822,120 +820,120 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ return 0; } - @Override public int compareTo(ImageData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ImageData typedOther = (ImageData)other; - lastComparison = Boolean.valueOf(isSetUuid()).compareTo(other.isSetUuid()); + lastComparison = Boolean.valueOf(isSetUuid()).compareTo(typedOther.isSetUuid()); if (lastComparison != 0) { return lastComparison; } if (isSetUuid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uuid, other.uuid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uuid, typedOther.uuid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRevision()).compareTo(other.isSetRevision()); + lastComparison = Boolean.valueOf(isSetRevision()).compareTo(typedOther.isSetRevision()); if (lastComparison != 0) { return lastComparison; } if (isSetRevision()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, other.revision); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revision, typedOther.revision); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTitle()).compareTo(other.isSetTitle()); + lastComparison = Boolean.valueOf(isSetTitle()).compareTo(typedOther.isSetTitle()); if (lastComparison != 0) { return lastComparison; } if (isSetTitle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.title, other.title); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.title, typedOther.title); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUpdateTime()).compareTo(other.isSetUpdateTime()); + lastComparison = Boolean.valueOf(isSetUpdateTime()).compareTo(typedOther.isSetUpdateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetUpdateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updateTime, other.updateTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updateTime, typedOther.updateTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerLogin()).compareTo(other.isSetOwnerLogin()); + lastComparison = Boolean.valueOf(isSetOwnerLogin()).compareTo(typedOther.isSetOwnerLogin()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerLogin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerLogin, other.ownerLogin); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerLogin, typedOther.ownerLogin); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatingSystem()).compareTo(other.isSetOperatingSystem()); + lastComparison = Boolean.valueOf(isSetOperatingSystem()).compareTo(typedOther.isSetOperatingSystem()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatingSystem()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatingSystem, other.operatingSystem); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatingSystem, typedOther.operatingSystem); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsValid()).compareTo(other.isSetIsValid()); + lastComparison = Boolean.valueOf(isSetIsValid()).compareTo(typedOther.isSetIsValid()); if (lastComparison != 0) { return lastComparison; } if (isSetIsValid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isValid, other.isValid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isValid, typedOther.isValid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIsDeleted()).compareTo(other.isSetIsDeleted()); + lastComparison = Boolean.valueOf(isSetIsDeleted()).compareTo(typedOther.isSetIsDeleted()); if (lastComparison != 0) { return lastComparison; } if (isSetIsDeleted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDeleted, other.isDeleted); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDeleted, typedOther.isDeleted); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription()); if (lastComparison != 0) { return lastComparison; } if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFileSize()).compareTo(other.isSetFileSize()); + lastComparison = Boolean.valueOf(isSetFileSize()).compareTo(typedOther.isSetFileSize()); if (lastComparison != 0) { return lastComparison; } if (isSetFileSize()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileSize, other.fileSize); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fileSize, typedOther.fileSize); if (lastComparison != 0) { return lastComparison; } @@ -997,11 +995,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ first = false; if (!first) sb.append(", "); sb.append("operatingSystem:"); - if (this.operatingSystem == null) { - sb.append("null"); - } else { - sb.append(this.operatingSystem); - } + sb.append(this.operatingSystem); first = false; if (!first) sb.append(", "); sb.append("isValid:"); @@ -1117,8 +1111,8 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ } break; case 7: // OPERATING_SYSTEM - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.operatingSystem = iprot.readString(); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.operatingSystem = iprot.readI32(); struct.setOperatingSystemIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1195,11 +1189,9 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ oprot.writeString(struct.ownerLogin); oprot.writeFieldEnd(); } - if (struct.operatingSystem != null) { - oprot.writeFieldBegin(OPERATING_SYSTEM_FIELD_DESC); - oprot.writeString(struct.operatingSystem); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(OPERATING_SYSTEM_FIELD_DESC); + oprot.writeI32(struct.operatingSystem); + oprot.writeFieldEnd(); oprot.writeFieldBegin(IS_VALID_FIELD_DESC); oprot.writeBool(struct.isValid); oprot.writeFieldEnd(); @@ -1285,7 +1277,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ oprot.writeString(struct.ownerLogin); } if (struct.isSetOperatingSystem()) { - oprot.writeString(struct.operatingSystem); + oprot.writeI32(struct.operatingSystem); } if (struct.isSetIsValid()) { oprot.writeBool(struct.isValid); @@ -1330,7 +1322,7 @@ public class ImageData implements org.apache.thrift.TBase<ImageData, ImageData._ struct.setOwnerLoginIsSet(true); } if (incoming.get(6)) { - struct.operatingSystem = iprot.readString(); + struct.operatingSystem = iprot.readI32(); struct.setOperatingSystemIsSet(true); } if (incoming.get(7)) { |