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.java525
1 files changed, 235 insertions, 290 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 235b90a..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,40 +1,13 @@
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.15.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.openslx.bwlp.thrift.iface;
-import org.apache.thrift.scheme.IScheme;
-import org.apache.thrift.scheme.SchemeFactory;
-import org.apache.thrift.scheme.StandardScheme;
-
-import org.apache.thrift.scheme.TupleScheme;
-import org.apache.thrift.protocol.TTupleProtocol;
-import org.apache.thrift.protocol.TProtocolException;
-import org.apache.thrift.EncodingUtils;
-import org.apache.thrift.TException;
-import org.apache.thrift.async.AsyncMethodCallback;
-import org.apache.thrift.server.AbstractNonblockingServer.*;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.EnumMap;
-import java.util.Set;
-import java.util.HashSet;
-import java.util.EnumSet;
-import java.util.Collections;
-import java.util.BitSet;
-import java.nio.ByteBuffer;
-import java.util.Arrays;
-import javax.annotation.Generated;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
-@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2020-10-12")
+@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");
@@ -61,36 +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 String description; // 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
@@ -123,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);
}
}
@@ -134,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
@@ -191,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;
}
@@ -214,7 +186,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return _thriftId;
}
- public String getFieldName() {
+ public java.lang.String getFieldName() {
return _fieldName;
}
}
@@ -234,9 +206,9 @@ 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,
@@ -281,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);
}
@@ -289,18 +261,18 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
public ImageSummaryRead(
- String imageBaseId,
- String latestVersionId,
- String imageName,
- String description,
+ 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,
@@ -432,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;
}
@@ -456,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;
}
@@ -480,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;
}
@@ -504,11 +479,12 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
- public String getDescription() {
+ @org.apache.thrift.annotation.Nullable
+ public java.lang.String getDescription() {
return this.description;
}
- public ImageSummaryRead setDescription(String description) {
+ public ImageSummaryRead setDescription(@org.apache.thrift.annotation.Nullable java.lang.String description) {
this.description = description;
return this;
}
@@ -539,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;
}
@@ -586,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() {
@@ -609,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() {
@@ -632,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() {
@@ -655,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;
}
@@ -691,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;
}
@@ -719,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;
}
@@ -727,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;
}
@@ -758,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() {
@@ -781,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() {
@@ -804,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() {
@@ -827,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() {
@@ -850,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;
}
@@ -886,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;
}
@@ -921,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() {
@@ -944,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;
@@ -970,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;
@@ -978,7 +960,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetImageName();
} else {
- setImageName((String)value);
+ setImageName((java.lang.String)value);
}
break;
@@ -986,7 +968,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
if (value == null) {
unsetDescription();
} else {
- setDescription((String)value);
+ setDescription((java.lang.String)value);
}
break;
@@ -994,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;
@@ -1002,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;
@@ -1010,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;
@@ -1018,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;
@@ -1026,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;
@@ -1034,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;
@@ -1042,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;
@@ -1050,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;
@@ -1066,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;
@@ -1074,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;
@@ -1082,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;
@@ -1090,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;
@@ -1098,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;
@@ -1122,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;
@@ -1130,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();
@@ -1206,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) {
@@ -1261,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;
@@ -1276,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();
@@ -1480,119 +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_description = true && (isSetDescription());
- list.add(present_description);
- if (present_description)
- list.add(description);
-
- 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
@@ -1603,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;
}
@@ -1613,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;
}
@@ -1623,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;
}
@@ -1633,7 +1574,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription());
+ lastComparison = java.lang.Boolean.compare(isSetDescription(), other.isSetDescription());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1643,7 +1584,7 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
return lastComparison;
}
}
- lastComparison = Boolean.valueOf(isSetOsId()).compareTo(other.isSetOsId());
+ lastComparison = java.lang.Boolean.compare(isSetOsId(), other.isSetOsId());
if (lastComparison != 0) {
return lastComparison;
}
@@ -1653,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;
}
@@ -1663,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;
}
@@ -1673,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;
}
@@ -1683,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;
}
@@ -1693,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;
}
@@ -1703,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;
}
@@ -1713,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;
}
@@ -1723,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;
}
@@ -1733,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;
}
@@ -1743,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;
}
@@ -1753,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;
}
@@ -1763,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;
}
@@ -1773,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;
}
@@ -1783,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;
}
@@ -1793,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;
}
@@ -1803,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;
}
@@ -1813,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;
}
@@ -1826,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:");
@@ -1999,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;
@@ -2009,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;
@@ -2318,18 +2260,18 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
- 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);
}
@@ -2467,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(22);
+ 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);
@@ -2562,5 +2504,8 @@ public class ImageSummaryRead implements org.apache.thrift.TBase<ImageSummaryRea
}
}
+ 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();
+ }
}