summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java')
-rw-r--r--src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java680
1 files changed, 365 insertions, 315 deletions
diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java
index b52289b..35c0ddc 100644
--- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java
+++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageSummaryRead.java
@@ -1,46 +1,20 @@
/**
- * 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 = "2018-12-07")
+@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
+@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.15.0)", date = "2021-12-17")
public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRead, ImageSummaryRead._Fields>, java.io.Serializable, Cloneable, Comparable<ImageSummaryRead> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ImageSummaryRead");
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)1);
private static final org.apache.thrift.protocol.TField LATEST_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("latestVersionId", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)4);
+ 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)23);
private static final org.apache.thrift.protocol.TField OS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("osId", org.apache.thrift.protocol.TType.I32, (short)5);
private static final org.apache.thrift.protocol.TField VIRT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("virtId", org.apache.thrift.protocol.TType.STRING, (short)6);
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)7);
@@ -60,35 +34,33 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
private static final org.apache.thrift.protocol.TField FILE_SIZE_SUM_FIELD_DESC = new org.apache.thrift.protocol.TField("fileSizeSum", org.apache.thrift.protocol.TType.I64, (short)21);
private static final org.apache.thrift.protocol.TField VERSION_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("versionCount", org.apache.thrift.protocol.TType.I32, (short)22);
- private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
- static {
- schemes.put(StandardScheme.class, new ImageSummaryReadStandardSchemeFactory());
- schemes.put(TupleScheme.class, new ImageSummaryReadTupleSchemeFactory());
- }
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ImageSummaryReadStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ImageSummaryReadTupleSchemeFactory();
- public String imageBaseId; // required
- public String latestVersionId; // required
- public String imageName; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String imageBaseId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String latestVersionId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String imageName; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String description; // required
public int osId; // required
- public String virtId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String virtId; // required
public long createTime; // required
public long updateTime; // required
public long uploadTime; // required
public long expireTime; // required
- public String ownerId; // required
- public String uploaderId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String ownerId; // required
+ public @org.apache.thrift.annotation.Nullable java.lang.String uploaderId; // required
/**
*
* @see ShareMode
*/
- public ShareMode shareMode; // required
+ public @org.apache.thrift.annotation.Nullable ShareMode shareMode; // required
public long fileSize; // required
public boolean isRestricted; // required
public boolean isValid; // required
public boolean isProcessed; // required
public boolean isTemplate; // required
- public ImagePermissions defaultPermissions; // required
- public ImagePermissions userPermissions; // optional
+ public @org.apache.thrift.annotation.Nullable ImagePermissions defaultPermissions; // required
+ public @org.apache.thrift.annotation.Nullable ImagePermissions userPermissions; // optional
public long fileSizeSum; // optional
public int versionCount; // optional
@@ -97,6 +69,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
IMAGE_BASE_ID((short)1, "imageBaseId"),
LATEST_VERSION_ID((short)3, "latestVersionId"),
IMAGE_NAME((short)4, "imageName"),
+ DESCRIPTION((short)23, "description"),
OS_ID((short)5, "osId"),
VIRT_ID((short)6, "virtId"),
CREATE_TIME((short)7, "createTime"),
@@ -120,10 +93,10 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
FILE_SIZE_SUM((short)21, "fileSizeSum"),
VERSION_COUNT((short)22, "versionCount");
- 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);
}
}
@@ -131,6 +104,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
/**
* 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: // IMAGE_BASE_ID
@@ -139,6 +113,8 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return LATEST_VERSION_ID;
case 4: // IMAGE_NAME
return IMAGE_NAME;
+ case 23: // DESCRIPTION
+ return DESCRIPTION;
case 5: // OS_ID
return OS_ID;
case 6: // VIRT_ID
@@ -186,21 +162,22 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
*/
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;
}
@@ -209,7 +186,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return _thriftId;
}
- public String getFieldName() {
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -229,15 +206,17 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
private static final int __VERSIONCOUNT_ISSET_ID = 11;
private short __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.USER_PERMISSIONS,_Fields.FILE_SIZE_SUM,_Fields.VERSION_COUNT};
- 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.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID")));
tmpMap.put(_Fields.LATEST_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("latestVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID")));
tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", 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.OS_ID, new org.apache.thrift.meta_data.FieldMetaData("osId", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.VIRT_ID, new org.apache.thrift.meta_data.FieldMetaData("virtId", org.apache.thrift.TFieldRequirementType.DEFAULT,
@@ -274,7 +253,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.VERSION_COUNT, new org.apache.thrift.meta_data.FieldMetaData("versionCount", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
- metaDataMap = Collections.unmodifiableMap(tmpMap);
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ImageSummaryRead.class, metaDataMap);
}
@@ -282,17 +261,18 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public ImageSummaryRead(
- String imageBaseId,
- String latestVersionId,
- String imageName,
+ java.lang.String imageBaseId,
+ java.lang.String latestVersionId,
+ java.lang.String imageName,
+ java.lang.String description,
int osId,
- String virtId,
+ java.lang.String virtId,
long createTime,
long updateTime,
long uploadTime,
long expireTime,
- String ownerId,
- String uploaderId,
+ java.lang.String ownerId,
+ java.lang.String uploaderId,
ShareMode shareMode,
long fileSize,
boolean isRestricted,
@@ -305,6 +285,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
this.imageBaseId = imageBaseId;
this.latestVersionId = latestVersionId;
this.imageName = imageName;
+ this.description = description;
this.osId = osId;
setOsIdIsSet(true);
this.virtId = virtId;
@@ -346,6 +327,9 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (other.isSetImageName()) {
this.imageName = other.imageName;
}
+ if (other.isSetDescription()) {
+ this.description = other.description;
+ }
this.osId = other.osId;
if (other.isSetVirtId()) {
this.virtId = other.virtId;
@@ -387,6 +371,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
this.imageBaseId = null;
this.latestVersionId = null;
this.imageName = null;
+ this.description = null;
setOsIdIsSet(false);
this.osId = 0;
this.virtId = null;
@@ -419,11 +404,12 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
this.versionCount = 0;
}
- public String getImageBaseId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getImageBaseId() {
return this.imageBaseId;
}
- public ImageSummaryRead setImageBaseId(String imageBaseId) {
+ public ImageSummaryRead setImageBaseId(@org.apache.thrift.annotation.Nullable java.lang.String imageBaseId) {
this.imageBaseId = imageBaseId;
return this;
}
@@ -443,11 +429,12 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
- public String getLatestVersionId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getLatestVersionId() {
return this.latestVersionId;
}
- public ImageSummaryRead setLatestVersionId(String latestVersionId) {
+ public ImageSummaryRead setLatestVersionId(@org.apache.thrift.annotation.Nullable java.lang.String latestVersionId) {
this.latestVersionId = latestVersionId;
return this;
}
@@ -467,11 +454,12 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
- public String getImageName() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getImageName() {
return this.imageName;
}
- public ImageSummaryRead setImageName(String imageName) {
+ public ImageSummaryRead setImageName(@org.apache.thrift.annotation.Nullable java.lang.String imageName) {
this.imageName = imageName;
return this;
}
@@ -491,6 +479,31 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getDescription() {
+ return this.description;
+ }
+
+ public ImageSummaryRead setDescription(@org.apache.thrift.annotation.Nullable java.lang.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 int getOsId() {
return this.osId;
}
@@ -502,23 +515,24 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetOsId() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OSID_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __OSID_ISSET_ID);
}
/** Returns true if field osId is set (has been assigned a value) and false otherwise */
public boolean isSetOsId() {
- return EncodingUtils.testBit(__isset_bitfield, __OSID_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __OSID_ISSET_ID);
}
public void setOsIdIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OSID_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __OSID_ISSET_ID, value);
}
- public String getVirtId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getVirtId() {
return this.virtId;
}
- public ImageSummaryRead setVirtId(String virtId) {
+ public ImageSummaryRead setVirtId(@org.apache.thrift.annotation.Nullable java.lang.String virtId) {
this.virtId = virtId;
return this;
}
@@ -549,16 +563,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetCreateTime() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CREATETIME_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CREATETIME_ISSET_ID);
}
/** Returns true if field createTime is set (has been assigned a value) and false otherwise */
public boolean isSetCreateTime() {
- return EncodingUtils.testBit(__isset_bitfield, __CREATETIME_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CREATETIME_ISSET_ID);
}
public void setCreateTimeIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CREATETIME_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CREATETIME_ISSET_ID, value);
}
public long getUpdateTime() {
@@ -572,16 +586,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetUpdateTime() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __UPDATETIME_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __UPDATETIME_ISSET_ID);
}
/** Returns true if field updateTime is set (has been assigned a value) and false otherwise */
public boolean isSetUpdateTime() {
- return EncodingUtils.testBit(__isset_bitfield, __UPDATETIME_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UPDATETIME_ISSET_ID);
}
public void setUpdateTimeIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __UPDATETIME_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UPDATETIME_ISSET_ID, value);
}
public long getUploadTime() {
@@ -595,16 +609,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetUploadTime() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __UPLOADTIME_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __UPLOADTIME_ISSET_ID);
}
/** Returns true if field uploadTime is set (has been assigned a value) and false otherwise */
public boolean isSetUploadTime() {
- return EncodingUtils.testBit(__isset_bitfield, __UPLOADTIME_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UPLOADTIME_ISSET_ID);
}
public void setUploadTimeIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __UPLOADTIME_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UPLOADTIME_ISSET_ID, value);
}
public long getExpireTime() {
@@ -618,23 +632,24 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetExpireTime() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID);
}
/** Returns true if field expireTime is set (has been assigned a value) and false otherwise */
public boolean isSetExpireTime() {
- return EncodingUtils.testBit(__isset_bitfield, __EXPIRETIME_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __EXPIRETIME_ISSET_ID);
}
public void setExpireTimeIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value);
}
- public String getOwnerId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getOwnerId() {
return this.ownerId;
}
- public ImageSummaryRead setOwnerId(String ownerId) {
+ public ImageSummaryRead setOwnerId(@org.apache.thrift.annotation.Nullable java.lang.String ownerId) {
this.ownerId = ownerId;
return this;
}
@@ -654,11 +669,12 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
- public String getUploaderId() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getUploaderId() {
return this.uploaderId;
}
- public ImageSummaryRead setUploaderId(String uploaderId) {
+ public ImageSummaryRead setUploaderId(@org.apache.thrift.annotation.Nullable java.lang.String uploaderId) {
this.uploaderId = uploaderId;
return this;
}
@@ -682,6 +698,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
*
* @see ShareMode
*/
+ @org.apache.thrift.annotation.Nullable
public ShareMode getShareMode() {
return this.shareMode;
}
@@ -690,7 +707,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
*
* @see ShareMode
*/
- public ImageSummaryRead setShareMode(ShareMode shareMode) {
+ public ImageSummaryRead setShareMode(@org.apache.thrift.annotation.Nullable ShareMode shareMode) {
this.shareMode = shareMode;
return this;
}
@@ -721,16 +738,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetFileSize() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID);
}
/** Returns true if field fileSize is set (has been assigned a value) and false otherwise */
public boolean isSetFileSize() {
- return EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FILESIZE_ISSET_ID);
}
public void setFileSizeIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value);
}
public boolean isIsRestricted() {
@@ -744,16 +761,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetIsRestricted() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISRESTRICTED_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISRESTRICTED_ISSET_ID);
}
/** Returns true if field isRestricted is set (has been assigned a value) and false otherwise */
public boolean isSetIsRestricted() {
- return EncodingUtils.testBit(__isset_bitfield, __ISRESTRICTED_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISRESTRICTED_ISSET_ID);
}
public void setIsRestrictedIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISRESTRICTED_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISRESTRICTED_ISSET_ID, value);
}
public boolean isIsValid() {
@@ -767,16 +784,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetIsValid() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISVALID_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISVALID_ISSET_ID);
}
/** Returns true if field isValid is set (has been assigned a value) and false otherwise */
public boolean isSetIsValid() {
- return EncodingUtils.testBit(__isset_bitfield, __ISVALID_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISVALID_ISSET_ID);
}
public void setIsValidIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISVALID_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISVALID_ISSET_ID, value);
}
public boolean isIsProcessed() {
@@ -790,16 +807,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetIsProcessed() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISPROCESSED_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISPROCESSED_ISSET_ID);
}
/** Returns true if field isProcessed is set (has been assigned a value) and false otherwise */
public boolean isSetIsProcessed() {
- return EncodingUtils.testBit(__isset_bitfield, __ISPROCESSED_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISPROCESSED_ISSET_ID);
}
public void setIsProcessedIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISPROCESSED_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISPROCESSED_ISSET_ID, value);
}
public boolean isIsTemplate() {
@@ -813,23 +830,24 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetIsTemplate() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID);
}
/** Returns true if field isTemplate is set (has been assigned a value) and false otherwise */
public boolean isSetIsTemplate() {
- return EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID);
}
public void setIsTemplateIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ISTEMPLATE_ISSET_ID, value);
}
+ @org.apache.thrift.annotation.Nullable
public ImagePermissions getDefaultPermissions() {
return this.defaultPermissions;
}
- public ImageSummaryRead setDefaultPermissions(ImagePermissions defaultPermissions) {
+ public ImageSummaryRead setDefaultPermissions(@org.apache.thrift.annotation.Nullable ImagePermissions defaultPermissions) {
this.defaultPermissions = defaultPermissions;
return this;
}
@@ -849,11 +867,12 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
+ @org.apache.thrift.annotation.Nullable
public ImagePermissions getUserPermissions() {
return this.userPermissions;
}
- public ImageSummaryRead setUserPermissions(ImagePermissions userPermissions) {
+ public ImageSummaryRead setUserPermissions(@org.apache.thrift.annotation.Nullable ImagePermissions userPermissions) {
this.userPermissions = userPermissions;
return this;
}
@@ -884,16 +903,16 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetFileSizeSum() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZESUM_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FILESIZESUM_ISSET_ID);
}
/** Returns true if field fileSizeSum is set (has been assigned a value) and false otherwise */
public boolean isSetFileSizeSum() {
- return EncodingUtils.testBit(__isset_bitfield, __FILESIZESUM_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FILESIZESUM_ISSET_ID);
}
public void setFileSizeSumIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZESUM_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FILESIZESUM_ISSET_ID, value);
}
public int getVersionCount() {
@@ -907,25 +926,25 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public void unsetVersionCount() {
- __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __VERSIONCOUNT_ISSET_ID);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __VERSIONCOUNT_ISSET_ID);
}
/** Returns true if field versionCount is set (has been assigned a value) and false otherwise */
public boolean isSetVersionCount() {
- return EncodingUtils.testBit(__isset_bitfield, __VERSIONCOUNT_ISSET_ID);
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __VERSIONCOUNT_ISSET_ID);
}
public void setVersionCountIsSet(boolean value) {
- __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __VERSIONCOUNT_ISSET_ID, value);
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __VERSIONCOUNT_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 IMAGE_BASE_ID:
if (value == null) {
unsetImageBaseId();
} else {
- setImageBaseId((String)value);
+ setImageBaseId((java.lang.String)value);
}
break;
@@ -933,7 +952,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetLatestVersionId();
} else {
- setLatestVersionId((String)value);
+ setLatestVersionId((java.lang.String)value);
}
break;
@@ -941,7 +960,15 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetImageName();
} else {
- setImageName((String)value);
+ setImageName((java.lang.String)value);
+ }
+ break;
+
+ case DESCRIPTION:
+ if (value == null) {
+ unsetDescription();
+ } else {
+ setDescription((java.lang.String)value);
}
break;
@@ -949,7 +976,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetOsId();
} else {
- setOsId((Integer)value);
+ setOsId((java.lang.Integer)value);
}
break;
@@ -957,7 +984,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetVirtId();
} else {
- setVirtId((String)value);
+ setVirtId((java.lang.String)value);
}
break;
@@ -965,7 +992,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetCreateTime();
} else {
- setCreateTime((Long)value);
+ setCreateTime((java.lang.Long)value);
}
break;
@@ -973,7 +1000,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetUpdateTime();
} else {
- setUpdateTime((Long)value);
+ setUpdateTime((java.lang.Long)value);
}
break;
@@ -981,7 +1008,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetUploadTime();
} else {
- setUploadTime((Long)value);
+ setUploadTime((java.lang.Long)value);
}
break;
@@ -989,7 +1016,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetExpireTime();
} else {
- setExpireTime((Long)value);
+ setExpireTime((java.lang.Long)value);
}
break;
@@ -997,7 +1024,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetOwnerId();
} else {
- setOwnerId((String)value);
+ setOwnerId((java.lang.String)value);
}
break;
@@ -1005,7 +1032,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetUploaderId();
} else {
- setUploaderId((String)value);
+ setUploaderId((java.lang.String)value);
}
break;
@@ -1021,7 +1048,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetFileSize();
} else {
- setFileSize((Long)value);
+ setFileSize((java.lang.Long)value);
}
break;
@@ -1029,7 +1056,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetIsRestricted();
} else {
- setIsRestricted((Boolean)value);
+ setIsRestricted((java.lang.Boolean)value);
}
break;
@@ -1037,7 +1064,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetIsValid();
} else {
- setIsValid((Boolean)value);
+ setIsValid((java.lang.Boolean)value);
}
break;
@@ -1045,7 +1072,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetIsProcessed();
} else {
- setIsProcessed((Boolean)value);
+ setIsProcessed((java.lang.Boolean)value);
}
break;
@@ -1053,7 +1080,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetIsTemplate();
} else {
- setIsTemplate((Boolean)value);
+ setIsTemplate((java.lang.Boolean)value);
}
break;
@@ -1077,7 +1104,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetFileSizeSum();
} else {
- setFileSizeSum((Long)value);
+ setFileSizeSum((java.lang.Long)value);
}
break;
@@ -1085,14 +1112,15 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetVersionCount();
} else {
- setVersionCount((Integer)value);
+ setVersionCount((java.lang.Integer)value);
}
break;
}
}
- public Object getFieldValue(_Fields field) {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case IMAGE_BASE_ID:
return getImageBaseId();
@@ -1103,6 +1131,9 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
case IMAGE_NAME:
return getImageName();
+ case DESCRIPTION:
+ return getDescription();
+
case OS_ID:
return getOsId();
@@ -1158,13 +1189,13 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return getVersionCount();
}
- 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) {
@@ -1174,6 +1205,8 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return isSetLatestVersionId();
case IMAGE_NAME:
return isSetImageName();
+ case DESCRIPTION:
+ return isSetDescription();
case OS_ID:
return isSetOsId();
case VIRT_ID:
@@ -1211,13 +1244,11 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
case VERSION_COUNT:
return isSetVersionCount();
}
- 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 ImageSummaryRead)
return this.equals((ImageSummaryRead)that);
return false;
@@ -1226,6 +1257,8 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
public boolean equals(ImageSummaryRead that) {
if (that == null)
return false;
+ if (this == that)
+ return true;
boolean this_present_imageBaseId = true && this.isSetImageBaseId();
boolean that_present_imageBaseId = true && that.isSetImageBaseId();
@@ -1254,6 +1287,15 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
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_osId = true;
boolean that_present_osId = true;
if (this_present_osId || that_present_osId) {
@@ -1421,114 +1463,77 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
@Override
public int hashCode() {
- List<Object> list = new ArrayList<Object>();
-
- boolean present_imageBaseId = true && (isSetImageBaseId());
- list.add(present_imageBaseId);
- if (present_imageBaseId)
- list.add(imageBaseId);
-
- boolean present_latestVersionId = true && (isSetLatestVersionId());
- list.add(present_latestVersionId);
- if (present_latestVersionId)
- list.add(latestVersionId);
-
- boolean present_imageName = true && (isSetImageName());
- list.add(present_imageName);
- if (present_imageName)
- list.add(imageName);
-
- boolean present_osId = true;
- list.add(present_osId);
- if (present_osId)
- list.add(osId);
-
- boolean present_virtId = true && (isSetVirtId());
- list.add(present_virtId);
- if (present_virtId)
- list.add(virtId);
-
- 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_uploadTime = true;
- list.add(present_uploadTime);
- if (present_uploadTime)
- list.add(uploadTime);
-
- boolean present_expireTime = true;
- list.add(present_expireTime);
- if (present_expireTime)
- list.add(expireTime);
-
- boolean present_ownerId = true && (isSetOwnerId());
- list.add(present_ownerId);
- if (present_ownerId)
- list.add(ownerId);
-
- boolean present_uploaderId = true && (isSetUploaderId());
- list.add(present_uploaderId);
- if (present_uploaderId)
- list.add(uploaderId);
-
- boolean present_shareMode = true && (isSetShareMode());
- list.add(present_shareMode);
- if (present_shareMode)
- list.add(shareMode.getValue());
-
- boolean present_fileSize = true;
- list.add(present_fileSize);
- if (present_fileSize)
- list.add(fileSize);
-
- boolean present_isRestricted = true;
- list.add(present_isRestricted);
- if (present_isRestricted)
- list.add(isRestricted);
-
- boolean present_isValid = true;
- list.add(present_isValid);
- if (present_isValid)
- list.add(isValid);
-
- boolean present_isProcessed = true;
- list.add(present_isProcessed);
- if (present_isProcessed)
- list.add(isProcessed);
-
- boolean present_isTemplate = true;
- list.add(present_isTemplate);
- if (present_isTemplate)
- list.add(isTemplate);
-
- 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_fileSizeSum = true && (isSetFileSizeSum());
- list.add(present_fileSizeSum);
- if (present_fileSizeSum)
- list.add(fileSizeSum);
-
- boolean present_versionCount = true && (isSetVersionCount());
- list.add(present_versionCount);
- if (present_versionCount)
- list.add(versionCount);
-
- return list.hashCode();
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetImageBaseId()) ? 131071 : 524287);
+ if (isSetImageBaseId())
+ hashCode = hashCode * 8191 + imageBaseId.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetLatestVersionId()) ? 131071 : 524287);
+ if (isSetLatestVersionId())
+ hashCode = hashCode * 8191 + latestVersionId.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetImageName()) ? 131071 : 524287);
+ if (isSetImageName())
+ hashCode = hashCode * 8191 + imageName.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287);
+ if (isSetDescription())
+ hashCode = hashCode * 8191 + description.hashCode();
+
+ hashCode = hashCode * 8191 + osId;
+
+ hashCode = hashCode * 8191 + ((isSetVirtId()) ? 131071 : 524287);
+ if (isSetVirtId())
+ hashCode = hashCode * 8191 + virtId.hashCode();
+
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(createTime);
+
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(updateTime);
+
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(uploadTime);
+
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(expireTime);
+
+ hashCode = hashCode * 8191 + ((isSetOwnerId()) ? 131071 : 524287);
+ if (isSetOwnerId())
+ hashCode = hashCode * 8191 + ownerId.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetUploaderId()) ? 131071 : 524287);
+ if (isSetUploaderId())
+ hashCode = hashCode * 8191 + uploaderId.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetShareMode()) ? 131071 : 524287);
+ if (isSetShareMode())
+ hashCode = hashCode * 8191 + shareMode.getValue();
+
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(fileSize);
+
+ hashCode = hashCode * 8191 + ((isRestricted) ? 131071 : 524287);
+
+ hashCode = hashCode * 8191 + ((isValid) ? 131071 : 524287);
+
+ hashCode = hashCode * 8191 + ((isProcessed) ? 131071 : 524287);
+
+ hashCode = hashCode * 8191 + ((isTemplate) ? 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 + ((isSetFileSizeSum()) ? 131071 : 524287);
+ if (isSetFileSizeSum())
+ hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(fileSizeSum);
+
+ hashCode = hashCode * 8191 + ((isSetVersionCount()) ? 131071 : 524287);
+ if (isSetVersionCount())
+ hashCode = hashCode * 8191 + versionCount;
+
+ return hashCode;
}
@Override
@@ -1539,7 +1544,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
int lastComparison = 0;
- lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId());
+ lastComparison = java.lang.Boolean.compare(isSetImageBaseId(), other.isSetImageBaseId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1549,7 +1554,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetLatestVersionId()).compareTo(other.isSetLatestVersionId());
+ lastComparison = java.lang.Boolean.compare(isSetLatestVersionId(), other.isSetLatestVersionId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1559,7 +1564,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName());
+ lastComparison = java.lang.Boolean.compare(isSetImageName(), other.isSetImageName());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1569,7 +1574,17 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetOsId()).compareTo(other.isSetOsId());
+ lastComparison = java.lang.Boolean.compare(isSetDescription(), 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 = java.lang.Boolean.compare(isSetOsId(), other.isSetOsId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1579,7 +1594,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetVirtId()).compareTo(other.isSetVirtId());
+ lastComparison = java.lang.Boolean.compare(isSetVirtId(), other.isSetVirtId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1589,7 +1604,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime());
+ lastComparison = java.lang.Boolean.compare(isSetCreateTime(), other.isSetCreateTime());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1599,7 +1614,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetUpdateTime()).compareTo(other.isSetUpdateTime());
+ lastComparison = java.lang.Boolean.compare(isSetUpdateTime(), other.isSetUpdateTime());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1609,7 +1624,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetUploadTime()).compareTo(other.isSetUploadTime());
+ lastComparison = java.lang.Boolean.compare(isSetUploadTime(), other.isSetUploadTime());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1619,7 +1634,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime());
+ lastComparison = java.lang.Boolean.compare(isSetExpireTime(), other.isSetExpireTime());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1629,7 +1644,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetOwnerId()).compareTo(other.isSetOwnerId());
+ lastComparison = java.lang.Boolean.compare(isSetOwnerId(), other.isSetOwnerId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1639,7 +1654,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetUploaderId()).compareTo(other.isSetUploaderId());
+ lastComparison = java.lang.Boolean.compare(isSetUploaderId(), other.isSetUploaderId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1649,7 +1664,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetShareMode()).compareTo(other.isSetShareMode());
+ lastComparison = java.lang.Boolean.compare(isSetShareMode(), other.isSetShareMode());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1659,7 +1674,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFileSize()).compareTo(other.isSetFileSize());
+ lastComparison = java.lang.Boolean.compare(isSetFileSize(), other.isSetFileSize());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1669,7 +1684,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetIsRestricted()).compareTo(other.isSetIsRestricted());
+ lastComparison = java.lang.Boolean.compare(isSetIsRestricted(), other.isSetIsRestricted());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1679,7 +1694,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetIsValid()).compareTo(other.isSetIsValid());
+ lastComparison = java.lang.Boolean.compare(isSetIsValid(), other.isSetIsValid());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1689,7 +1704,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetIsProcessed()).compareTo(other.isSetIsProcessed());
+ lastComparison = java.lang.Boolean.compare(isSetIsProcessed(), other.isSetIsProcessed());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1699,7 +1714,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetIsTemplate()).compareTo(other.isSetIsTemplate());
+ lastComparison = java.lang.Boolean.compare(isSetIsTemplate(), other.isSetIsTemplate());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1709,7 +1724,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDefaultPermissions()).compareTo(other.isSetDefaultPermissions());
+ lastComparison = java.lang.Boolean.compare(isSetDefaultPermissions(), other.isSetDefaultPermissions());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1719,7 +1734,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetUserPermissions()).compareTo(other.isSetUserPermissions());
+ lastComparison = java.lang.Boolean.compare(isSetUserPermissions(), other.isSetUserPermissions());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1729,7 +1744,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetFileSizeSum()).compareTo(other.isSetFileSizeSum());
+ lastComparison = java.lang.Boolean.compare(isSetFileSizeSum(), other.isSetFileSizeSum());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1739,7 +1754,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetVersionCount()).compareTo(other.isSetVersionCount());
+ lastComparison = java.lang.Boolean.compare(isSetVersionCount(), other.isSetVersionCount());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1752,21 +1767,22 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
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("ImageSummaryRead(");
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("ImageSummaryRead(");
boolean first = true;
sb.append("imageBaseId:");
@@ -1793,6 +1809,14 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
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("osId:");
sb.append(this.osId);
first = false;
@@ -1917,7 +1941,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
- 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;
@@ -1927,13 +1951,13 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
- private static class ImageSummaryReadStandardSchemeFactory implements SchemeFactory {
+ private static class ImageSummaryReadStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ImageSummaryReadStandardScheme getScheme() {
return new ImageSummaryReadStandardScheme();
}
}
- private static class ImageSummaryReadStandardScheme extends StandardScheme<ImageSummaryRead> {
+ private static class ImageSummaryReadStandardScheme extends org.apache.thrift.scheme.StandardScheme<ImageSummaryRead> {
public void read(org.apache.thrift.protocol.TProtocol iprot, ImageSummaryRead struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
@@ -1969,6 +1993,14 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
+ case 23: // 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 5: // OS_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.osId = iprot.readI32();
@@ -2217,24 +2249,29 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
oprot.writeI32(struct.versionCount);
oprot.writeFieldEnd();
}
+ if (struct.description != null) {
+ oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
+ oprot.writeString(struct.description);
+ oprot.writeFieldEnd();
+ }
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
- private static class ImageSummaryReadTupleSchemeFactory implements SchemeFactory {
+ private static class ImageSummaryReadTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public ImageSummaryReadTupleScheme getScheme() {
return new ImageSummaryReadTupleScheme();
}
}
- private static class ImageSummaryReadTupleScheme extends TupleScheme<ImageSummaryRead> {
+ private static class ImageSummaryReadTupleScheme extends org.apache.thrift.scheme.TupleScheme<ImageSummaryRead> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, ImageSummaryRead 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.isSetImageBaseId()) {
optionals.set(0);
}
@@ -2244,61 +2281,64 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (struct.isSetImageName()) {
optionals.set(2);
}
- if (struct.isSetOsId()) {
+ if (struct.isSetDescription()) {
optionals.set(3);
}
- if (struct.isSetVirtId()) {
+ if (struct.isSetOsId()) {
optionals.set(4);
}
- if (struct.isSetCreateTime()) {
+ if (struct.isSetVirtId()) {
optionals.set(5);
}
- if (struct.isSetUpdateTime()) {
+ if (struct.isSetCreateTime()) {
optionals.set(6);
}
- if (struct.isSetUploadTime()) {
+ if (struct.isSetUpdateTime()) {
optionals.set(7);
}
- if (struct.isSetExpireTime()) {
+ if (struct.isSetUploadTime()) {
optionals.set(8);
}
- if (struct.isSetOwnerId()) {
+ if (struct.isSetExpireTime()) {
optionals.set(9);
}
- if (struct.isSetUploaderId()) {
+ if (struct.isSetOwnerId()) {
optionals.set(10);
}
- if (struct.isSetShareMode()) {
+ if (struct.isSetUploaderId()) {
optionals.set(11);
}
- if (struct.isSetFileSize()) {
+ if (struct.isSetShareMode()) {
optionals.set(12);
}
- if (struct.isSetIsRestricted()) {
+ if (struct.isSetFileSize()) {
optionals.set(13);
}
- if (struct.isSetIsValid()) {
+ if (struct.isSetIsRestricted()) {
optionals.set(14);
}
- if (struct.isSetIsProcessed()) {
+ if (struct.isSetIsValid()) {
optionals.set(15);
}
- if (struct.isSetIsTemplate()) {
+ if (struct.isSetIsProcessed()) {
optionals.set(16);
}
- if (struct.isSetDefaultPermissions()) {
+ if (struct.isSetIsTemplate()) {
optionals.set(17);
}
- if (struct.isSetUserPermissions()) {
+ if (struct.isSetDefaultPermissions()) {
optionals.set(18);
}
- if (struct.isSetFileSizeSum()) {
+ if (struct.isSetUserPermissions()) {
optionals.set(19);
}
- if (struct.isSetVersionCount()) {
+ if (struct.isSetFileSizeSum()) {
optionals.set(20);
}
- oprot.writeBitSet(optionals, 21);
+ if (struct.isSetVersionCount()) {
+ optionals.set(21);
+ }
+ oprot.writeBitSet(optionals, 22);
if (struct.isSetImageBaseId()) {
oprot.writeString(struct.imageBaseId);
}
@@ -2308,6 +2348,9 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (struct.isSetImageName()) {
oprot.writeString(struct.imageName);
}
+ if (struct.isSetDescription()) {
+ oprot.writeString(struct.description);
+ }
if (struct.isSetOsId()) {
oprot.writeI32(struct.osId);
}
@@ -2366,8 +2409,8 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, ImageSummaryRead struct) throws org.apache.thrift.TException {
- TTupleProtocol iprot = (TTupleProtocol) prot;
- BitSet incoming = iprot.readBitSet(21);
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(22);
if (incoming.get(0)) {
struct.imageBaseId = iprot.readString();
struct.setImageBaseIdIsSet(true);
@@ -2381,81 +2424,88 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
struct.setImageNameIsSet(true);
}
if (incoming.get(3)) {
+ struct.description = iprot.readString();
+ struct.setDescriptionIsSet(true);
+ }
+ if (incoming.get(4)) {
struct.osId = iprot.readI32();
struct.setOsIdIsSet(true);
}
- if (incoming.get(4)) {
+ if (incoming.get(5)) {
struct.virtId = iprot.readString();
struct.setVirtIdIsSet(true);
}
- if (incoming.get(5)) {
+ if (incoming.get(6)) {
struct.createTime = iprot.readI64();
struct.setCreateTimeIsSet(true);
}
- if (incoming.get(6)) {
+ if (incoming.get(7)) {
struct.updateTime = iprot.readI64();
struct.setUpdateTimeIsSet(true);
}
- if (incoming.get(7)) {
+ if (incoming.get(8)) {
struct.uploadTime = iprot.readI64();
struct.setUploadTimeIsSet(true);
}
- if (incoming.get(8)) {
+ if (incoming.get(9)) {
struct.expireTime = iprot.readI64();
struct.setExpireTimeIsSet(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.uploaderId = iprot.readString();
struct.setUploaderIdIsSet(true);
}
- if (incoming.get(11)) {
+ if (incoming.get(12)) {
struct.shareMode = org.openslx.bwlp.thrift.iface.ShareMode.findByValue(iprot.readI32());
struct.setShareModeIsSet(true);
}
- if (incoming.get(12)) {
+ if (incoming.get(13)) {
struct.fileSize = iprot.readI64();
struct.setFileSizeIsSet(true);
}
- if (incoming.get(13)) {
+ if (incoming.get(14)) {
struct.isRestricted = iprot.readBool();
struct.setIsRestrictedIsSet(true);
}
- if (incoming.get(14)) {
+ if (incoming.get(15)) {
struct.isValid = iprot.readBool();
struct.setIsValidIsSet(true);
}
- if (incoming.get(15)) {
+ if (incoming.get(16)) {
struct.isProcessed = iprot.readBool();
struct.setIsProcessedIsSet(true);
}
- if (incoming.get(16)) {
+ if (incoming.get(17)) {
struct.isTemplate = iprot.readBool();
struct.setIsTemplateIsSet(true);
}
- if (incoming.get(17)) {
+ if (incoming.get(18)) {
struct.defaultPermissions = new ImagePermissions();
struct.defaultPermissions.read(iprot);
struct.setDefaultPermissionsIsSet(true);
}
- if (incoming.get(18)) {
+ if (incoming.get(19)) {
struct.userPermissions = new ImagePermissions();
struct.userPermissions.read(iprot);
struct.setUserPermissionsIsSet(true);
}
- if (incoming.get(19)) {
+ if (incoming.get(20)) {
struct.fileSizeSum = iprot.readI64();
struct.setFileSizeSumIsSet(true);
}
- if (incoming.get(20)) {
+ if (incoming.get(21)) {
struct.versionCount = iprot.readI32();
struct.setVersionCountIsSet(true);
}
}
}
+ 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();
+ }
}