From 9ea33470d3522f62706385887b064526cef8a2e5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 28 Aug 2015 13:30:06 +0200 Subject: Thrift API --- .../bwlp/thrift/iface/ImagePublishData.java | 1034 ++- .../org/openslx/bwlp/thrift/iface/LectureRead.java | 100 +- .../openslx/bwlp/thrift/iface/LectureWrite.java | 132 +- .../openslx/bwlp/thrift/iface/MasterServer.java | 3372 ++++--- .../openslx/bwlp/thrift/iface/SatelliteServer.java | 9303 ++++++++++---------- .../bwlp/thrift/iface/TransferInformation.java | 32 +- src/main/thrift/bwlp.thrift | 118 +- 7 files changed, 7866 insertions(+), 6225 deletions(-) (limited to 'src') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImagePublishData.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImagePublishData.java index e8c93a1..0de0072 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImagePublishData.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImagePublishData.java @@ -36,16 +36,17 @@ public class ImagePublishData implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -54,30 +55,32 @@ public class ImagePublishData implements org.apache.thrift.TBase software; // required + public List tags; // required public int osId; // required public String virtId; // required - public long baseCreateTime; // required - public long versionCreateTime; // required - public String ownerId; // required - public String uploaderId; // required - public long fileSize; // required public boolean isTemplate; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IMAGE_BASE_ID((short)1, "imageBaseId"), - CURRENT_VERSION_ID((short)2, "currentVersionId"), + IMAGE_VERSION_ID((short)2, "imageVersionId"), IMAGE_NAME((short)3, "imageName"), - OS_ID((short)4, "osId"), - VIRT_ID((short)5, "virtId"), - BASE_CREATE_TIME((short)6, "baseCreateTime"), - VERSION_CREATE_TIME((short)7, "versionCreateTime"), - OWNER_ID((short)8, "ownerId"), - UPLOADER_ID((short)9, "uploaderId"), - FILE_SIZE((short)11, "fileSize"), - IS_TEMPLATE((short)16, "isTemplate"); + DESCRIPTION((short)4, "description"), + CREATE_TIME((short)5, "createTime"), + USER_ID((short)6, "userId"), + FILE_SIZE((short)7, "fileSize"), + SOFTWARE((short)8, "software"), + TAGS((short)9, "tags"), + OS_ID((short)10, "osId"), + VIRT_ID((short)11, "virtId"), + IS_TEMPLATE((short)12, "isTemplate"); private static final Map byName = new HashMap(); @@ -94,25 +97,27 @@ public class ImagePublishData implements org.apache.thrift.TBase metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.CURRENT_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("currentVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.IMAGE_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.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, + 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.BASE_CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("baseCreateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); - tmpMap.put(_Fields.VERSION_CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("versionCreateTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.CREATE_TIME, new org.apache.thrift.meta_data.FieldMetaData("createTime", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); - tmpMap.put(_Fields.OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("ownerId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.UPLOADER_ID, new org.apache.thrift.meta_data.FieldMetaData("uploaderId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.FILE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("fileSize", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.SOFTWARE, new org.apache.thrift.meta_data.FieldMetaData("software", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.TAGS, new org.apache.thrift.meta_data.FieldMetaData("tags", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + 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, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.IS_TEMPLATE, new org.apache.thrift.meta_data.FieldMetaData("isTemplate", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); metaDataMap = Collections.unmodifiableMap(tmpMap); @@ -194,32 +202,33 @@ public class ImagePublishData implements org.apache.thrift.TBase software, + List tags, int osId, String virtId, - long baseCreateTime, - long versionCreateTime, - String ownerId, - String uploaderId, - long fileSize, boolean isTemplate) { this(); this.imageBaseId = imageBaseId; - this.currentVersionId = currentVersionId; + this.imageVersionId = imageVersionId; this.imageName = imageName; + this.description = description; + this.createTime = createTime; + setCreateTimeIsSet(true); + this.userId = userId; + this.fileSize = fileSize; + setFileSizeIsSet(true); + this.software = software; + this.tags = tags; this.osId = osId; setOsIdIsSet(true); this.virtId = virtId; - this.baseCreateTime = baseCreateTime; - setBaseCreateTimeIsSet(true); - this.versionCreateTime = versionCreateTime; - setVersionCreateTimeIsSet(true); - this.ownerId = ownerId; - this.uploaderId = uploaderId; - this.fileSize = fileSize; - setFileSizeIsSet(true); this.isTemplate = isTemplate; setIsTemplateIsSet(true); } @@ -232,25 +241,32 @@ public class ImagePublishData implements org.apache.thrift.TBase __this__software = new ArrayList(other.software); + this.software = __this__software; + } + if (other.isSetTags()) { + List __this__tags = new ArrayList(other.tags); + this.tags = __this__tags; + } this.osId = other.osId; if (other.isSetVirtId()) { this.virtId = other.virtId; } - this.baseCreateTime = other.baseCreateTime; - this.versionCreateTime = other.versionCreateTime; - if (other.isSetOwnerId()) { - this.ownerId = other.ownerId; - } - if (other.isSetUploaderId()) { - this.uploaderId = other.uploaderId; - } - this.fileSize = other.fileSize; this.isTemplate = other.isTemplate; } @@ -261,19 +277,19 @@ public class ImagePublishData implements org.apache.thrift.TBase getSoftwareIterator() { + return (this.software == null) ? null : this.software.iterator(); } - public ImagePublishData setOwnerId(String ownerId) { - this.ownerId = ownerId; + public void addToSoftware(String elem) { + if (this.software == null) { + this.software = new ArrayList(); + } + this.software.add(elem); + } + + public List getSoftware() { + return this.software; + } + + public ImagePublishData setSoftware(List software) { + this.software = software; return this; } - public void unsetOwnerId() { - this.ownerId = null; + public void unsetSoftware() { + this.software = null; } - /** Returns true if field ownerId is set (has been assigned a value) and false otherwise */ - public boolean isSetOwnerId() { - return this.ownerId != null; + /** Returns true if field software is set (has been assigned a value) and false otherwise */ + public boolean isSetSoftware() { + return this.software != null; } - public void setOwnerIdIsSet(boolean value) { + public void setSoftwareIsSet(boolean value) { if (!value) { - this.ownerId = null; + this.software = null; + } + } + + public int getTagsSize() { + return (this.tags == null) ? 0 : this.tags.size(); + } + + public java.util.Iterator getTagsIterator() { + return (this.tags == null) ? null : this.tags.iterator(); + } + + public void addToTags(String elem) { + if (this.tags == null) { + this.tags = new ArrayList(); } + this.tags.add(elem); } - public String getUploaderId() { - return this.uploaderId; + public List getTags() { + return this.tags; } - public ImagePublishData setUploaderId(String uploaderId) { - this.uploaderId = uploaderId; + public ImagePublishData setTags(List tags) { + this.tags = tags; return this; } - public void unsetUploaderId() { - this.uploaderId = null; + public void unsetTags() { + this.tags = null; } - /** Returns true if field uploaderId is set (has been assigned a value) and false otherwise */ - public boolean isSetUploaderId() { - return this.uploaderId != null; + /** Returns true if field tags is set (has been assigned a value) and false otherwise */ + public boolean isSetTags() { + return this.tags != null; } - public void setUploaderIdIsSet(boolean value) { + public void setTagsIsSet(boolean value) { if (!value) { - this.uploaderId = null; + this.tags = null; } } - public long getFileSize() { - return this.fileSize; + public int getOsId() { + return this.osId; } - public ImagePublishData setFileSize(long fileSize) { - this.fileSize = fileSize; - setFileSizeIsSet(true); + public ImagePublishData setOsId(int osId) { + this.osId = osId; + setOsIdIsSet(true); return this; } - public void unsetFileSize() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FILESIZE_ISSET_ID); + public void unsetOsId() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OSID_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); + /** 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); } - public void setFileSizeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FILESIZE_ISSET_ID, value); + public void setOsIdIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OSID_ISSET_ID, value); + } + + public String getVirtId() { + return this.virtId; + } + + public ImagePublishData setVirtId(String virtId) { + this.virtId = virtId; + return this; + } + + public void unsetVirtId() { + this.virtId = null; + } + + /** Returns true if field virtId is set (has been assigned a value) and false otherwise */ + public boolean isSetVirtId() { + return this.virtId != null; + } + + public void setVirtIdIsSet(boolean value) { + if (!value) { + this.virtId = null; + } } public boolean isIsTemplate() { @@ -547,11 +618,11 @@ public class ImagePublishData implements org.apache.thrift.TBase)value); } break; - case UPLOADER_ID: + case TAGS: if (value == null) { - unsetUploaderId(); + unsetTags(); } else { - setUploaderId((String)value); + setTags((List)value); } break; - case FILE_SIZE: + case OS_ID: if (value == null) { - unsetFileSize(); + unsetOsId(); } else { - setFileSize((Long)value); + setOsId((Integer)value); + } + break; + + case VIRT_ID: + if (value == null) { + unsetVirtId(); + } else { + setVirtId((String)value); } break; @@ -635,32 +714,35 @@ public class ImagePublishData implements org.apache.thrift.TBase(_list74.size); + for (int _i75 = 0; _i75 < _list74.size; ++_i75) + { + String _elem76; + _elem76 = iprot.readString(); + struct.software.add(_elem76); + } + iprot.readListEnd(); + } + struct.setSoftwareIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 8: // OWNER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.ownerId = iprot.readString(); - struct.setOwnerIdIsSet(true); + case 9: // TAGS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list77 = iprot.readListBegin(); + struct.tags = new ArrayList(_list77.size); + for (int _i78 = 0; _i78 < _list77.size; ++_i78) + { + String _elem79; + _elem79 = iprot.readString(); + struct.tags.add(_elem79); + } + iprot.readListEnd(); + } + struct.setTagsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 9: // UPLOADER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.uploaderId = iprot.readString(); - struct.setUploaderIdIsSet(true); + case 10: // OS_ID + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.osId = iprot.readI32(); + struct.setOsIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 11: // FILE_SIZE - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.fileSize = iprot.readI64(); - struct.setFileSizeIsSet(true); + case 11: // VIRT_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.virtId = iprot.readString(); + struct.setVirtIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 16: // IS_TEMPLATE + case 12: // IS_TEMPLATE if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { struct.isTemplate = iprot.readBool(); struct.setIsTemplateIsSet(true); @@ -1180,9 +1323,9 @@ public class ImagePublishData implements org.apache.thrift.TBase(_list84.size); + for (int _i85 = 0; _i85 < _list84.size; ++_i85) + { + String _elem86; + _elem86 = iprot.readString(); + struct.software.add(_elem86); + } + } + struct.setSoftwareIsSet(true); } if (incoming.get(8)) { - struct.uploaderId = iprot.readString(); - struct.setUploaderIdIsSet(true); + { + org.apache.thrift.protocol.TList _list87 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tags = new ArrayList(_list87.size); + for (int _i88 = 0; _i88 < _list87.size; ++_i88) + { + String _elem89; + _elem89 = iprot.readString(); + struct.tags.add(_elem89); + } + } + struct.setTagsIsSet(true); } if (incoming.get(9)) { - struct.fileSize = iprot.readI64(); - struct.setFileSizeIsSet(true); + struct.osId = iprot.readI32(); + struct.setOsIdIsSet(true); } if (incoming.get(10)) { + struct.virtId = iprot.readString(); + struct.setVirtIdIsSet(true); + } + if (incoming.get(11)) { struct.isTemplate = iprot.readBool(); struct.setIsTemplateIsSet(true); } diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java index fc213b5..0cd2051 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureRead.java @@ -2168,13 +2168,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list106.size); - for (int _i107 = 0; _i107 < _list106.size; ++_i107) + org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); + struct.nics = new ArrayList(_list122.size); + for (int _i123 = 0; _i123 < _list122.size; ++_i123) { - String _elem108; - _elem108 = iprot.readString(); - struct.nics.add(_elem108); + String _elem124; + _elem124 = iprot.readString(); + struct.nics.add(_elem124); } iprot.readListEnd(); } @@ -2186,13 +2186,13 @@ public class LectureRead implements org.apache.thrift.TBase(_list109.size); - for (int _i110 = 0; _i110 < _list109.size; ++_i110) + org.apache.thrift.protocol.TList _list125 = iprot.readListBegin(); + struct.allowedUsers = new ArrayList(_list125.size); + for (int _i126 = 0; _i126 < _list125.size; ++_i126) { - String _elem111; - _elem111 = iprot.readString(); - struct.allowedUsers.add(_elem111); + String _elem127; + _elem127 = iprot.readString(); + struct.allowedUsers.add(_elem127); } iprot.readListEnd(); } @@ -2204,14 +2204,14 @@ public class LectureRead implements org.apache.thrift.TBase(_list112.size); - for (int _i113 = 0; _i113 < _list112.size; ++_i113) + org.apache.thrift.protocol.TList _list128 = iprot.readListBegin(); + struct.networkExceptions = new ArrayList(_list128.size); + for (int _i129 = 0; _i129 < _list128.size; ++_i129) { - NetRule _elem114; - _elem114 = new NetRule(); - _elem114.read(iprot); - struct.networkExceptions.add(_elem114); + NetRule _elem130; + _elem130 = new NetRule(); + _elem130.read(iprot); + struct.networkExceptions.add(_elem130); } iprot.readListEnd(); } @@ -2321,9 +2321,9 @@ public class LectureRead implements org.apache.thrift.TBase(_list121.size); - for (int _i122 = 0; _i122 < _list121.size; ++_i122) + org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList(_list137.size); + for (int _i138 = 0; _i138 < _list137.size; ++_i138) { - String _elem123; - _elem123 = iprot.readString(); - struct.nics.add(_elem123); + String _elem139; + _elem139 = iprot.readString(); + struct.nics.add(_elem139); } } struct.setNicsIsSet(true); } if (incoming.get(17)) { { - org.apache.thrift.protocol.TList _list124 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.allowedUsers = new ArrayList(_list124.size); - for (int _i125 = 0; _i125 < _list124.size; ++_i125) + org.apache.thrift.protocol.TList _list140 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.allowedUsers = new ArrayList(_list140.size); + for (int _i141 = 0; _i141 < _list140.size; ++_i141) { - String _elem126; - _elem126 = iprot.readString(); - struct.allowedUsers.add(_elem126); + String _elem142; + _elem142 = iprot.readString(); + struct.allowedUsers.add(_elem142); } } struct.setAllowedUsersIsSet(true); } if (incoming.get(18)) { { - org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list127.size); - for (int _i128 = 0; _i128 < _list127.size; ++_i128) + org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList(_list143.size); + for (int _i144 = 0; _i144 < _list143.size; ++_i144) { - NetRule _elem129; - _elem129 = new NetRule(); - _elem129.read(iprot); - struct.networkExceptions.add(_elem129); + NetRule _elem145; + _elem145 = new NetRule(); + _elem145.read(iprot); + struct.networkExceptions.add(_elem145); } } struct.setNetworkExceptionsIsSet(true); diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java index 3b9c52f..5d74611 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/LectureWrite.java @@ -1518,13 +1518,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list74.size); - for (int _i75 = 0; _i75 < _list74.size; ++_i75) + org.apache.thrift.protocol.TList _list90 = iprot.readListBegin(); + struct.nics = new ArrayList(_list90.size); + for (int _i91 = 0; _i91 < _list90.size; ++_i91) { - String _elem76; - _elem76 = iprot.readString(); - struct.nics.add(_elem76); + String _elem92; + _elem92 = iprot.readString(); + struct.nics.add(_elem92); } iprot.readListEnd(); } @@ -1536,14 +1536,14 @@ public class LectureWrite implements org.apache.thrift.TBase(_list77.size); - for (int _i78 = 0; _i78 < _list77.size; ++_i78) + org.apache.thrift.protocol.TList _list93 = iprot.readListBegin(); + struct.networkExceptions = new ArrayList(_list93.size); + for (int _i94 = 0; _i94 < _list93.size; ++_i94) { - NetRule _elem79; - _elem79 = new NetRule(); - _elem79.read(iprot); - struct.networkExceptions.add(_elem79); + NetRule _elem95; + _elem95 = new NetRule(); + _elem95.read(iprot); + struct.networkExceptions.add(_elem95); } iprot.readListEnd(); } @@ -1580,13 +1580,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list80.size); - for (int _i81 = 0; _i81 < _list80.size; ++_i81) + org.apache.thrift.protocol.TList _list96 = iprot.readListBegin(); + struct.addAllowedUsers = new ArrayList(_list96.size); + for (int _i97 = 0; _i97 < _list96.size; ++_i97) { - String _elem82; - _elem82 = iprot.readString(); - struct.addAllowedUsers.add(_elem82); + String _elem98; + _elem98 = iprot.readString(); + struct.addAllowedUsers.add(_elem98); } iprot.readListEnd(); } @@ -1598,13 +1598,13 @@ public class LectureWrite implements org.apache.thrift.TBase(_list83.size); - for (int _i84 = 0; _i84 < _list83.size; ++_i84) + org.apache.thrift.protocol.TList _list99 = iprot.readListBegin(); + struct.remAllowedUsers = new ArrayList(_list99.size); + for (int _i100 = 0; _i100 < _list99.size; ++_i100) { - String _elem85; - _elem85 = iprot.readString(); - struct.remAllowedUsers.add(_elem85); + String _elem101; + _elem101 = iprot.readString(); + struct.remAllowedUsers.add(_elem101); } iprot.readListEnd(); } @@ -1664,9 +1664,9 @@ public class LectureWrite implements org.apache.thrift.TBase(_list94.size); - for (int _i95 = 0; _i95 < _list94.size; ++_i95) + org.apache.thrift.protocol.TList _list110 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.nics = new ArrayList(_list110.size); + for (int _i111 = 0; _i111 < _list110.size; ++_i111) { - String _elem96; - _elem96 = iprot.readString(); - struct.nics.add(_elem96); + String _elem112; + _elem112 = iprot.readString(); + struct.nics.add(_elem112); } } struct.setNicsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TList _list97 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.networkExceptions = new ArrayList(_list97.size); - for (int _i98 = 0; _i98 < _list97.size; ++_i98) + org.apache.thrift.protocol.TList _list113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.networkExceptions = new ArrayList(_list113.size); + for (int _i114 = 0; _i114 < _list113.size; ++_i114) { - NetRule _elem99; - _elem99 = new NetRule(); - _elem99.read(iprot); - struct.networkExceptions.add(_elem99); + NetRule _elem115; + _elem115 = new NetRule(); + _elem115.read(iprot); + struct.networkExceptions.add(_elem115); } } struct.setNetworkExceptionsIsSet(true); @@ -1938,26 +1938,26 @@ public class LectureWrite implements org.apache.thrift.TBase(_list100.size); - for (int _i101 = 0; _i101 < _list100.size; ++_i101) + org.apache.thrift.protocol.TList _list116 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.addAllowedUsers = new ArrayList(_list116.size); + for (int _i117 = 0; _i117 < _list116.size; ++_i117) { - String _elem102; - _elem102 = iprot.readString(); - struct.addAllowedUsers.add(_elem102); + String _elem118; + _elem118 = iprot.readString(); + struct.addAllowedUsers.add(_elem118); } } struct.setAddAllowedUsersIsSet(true); } if (incoming.get(14)) { { - org.apache.thrift.protocol.TList _list103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.remAllowedUsers = new ArrayList(_list103.size); - for (int _i104 = 0; _i104 < _list103.size; ++_i104) + org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.remAllowedUsers = new ArrayList(_list119.size); + for (int _i120 = 0; _i120 < _list119.size; ++_i120) { - String _elem105; - _elem105 = iprot.readString(); - struct.remAllowedUsers.add(_elem105); + String _elem121; + _elem121 = iprot.readString(); + struct.remAllowedUsers.add(_elem121); } } struct.setRemAllowedUsersIsSet(true); diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java index 88fa213..418f394 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/MasterServer.java @@ -56,14 +56,16 @@ public class MasterServer { public ServerSessionData serverAuthenticate(String organizationId, ByteBuffer challengeResponse) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; - public TransferInformation submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException; + public ImagePublishData getImageData(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; - public TransferInformation getImage(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public TransferInformation submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException; public boolean registerSatellite(String organizationId, String address, String modulus, String exponent) throws TInvocationException, org.apache.thrift.TException; public boolean updateSatelliteAddress(String serverSessionId, String address) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; + public TransferInformation downloadImage(String sessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; + public List getOrganizations() throws TInvocationException, org.apache.thrift.TException; public List getOperatingSystems() throws TInvocationException, org.apache.thrift.TException; @@ -98,14 +100,16 @@ public class MasterServer { public void serverAuthenticate(String organizationId, ByteBuffer challengeResponse, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getImageData(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getImage(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void registerSatellite(String organizationId, String address, String modulus, String exponent, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void updateSatelliteAddress(String serverSessionId, String address, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void downloadImage(String sessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getOperatingSystems(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -412,25 +416,24 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "serverAuthenticate failed: unknown result"); } - public TransferInformation submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException + public ImagePublishData getImageData(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { - send_submitImage(serverSessionId, imageDescription, blockHashes); - return recv_submitImage(); + send_getImageData(serverSessionId, imageVersionId); + return recv_getImageData(); } - public void send_submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes) throws org.apache.thrift.TException + public void send_getImageData(String serverSessionId, String imageVersionId) throws org.apache.thrift.TException { - submitImage_args args = new submitImage_args(); + getImageData_args args = new getImageData_args(); args.setServerSessionId(serverSessionId); - args.setImageDescription(imageDescription); - args.setBlockHashes(blockHashes); - sendBase("submitImage", args); + args.setImageVersionId(imageVersionId); + sendBase("getImageData", args); } - public TransferInformation recv_submitImage() throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException + public ImagePublishData recv_getImageData() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { - submitImage_result result = new submitImage_result(); - receiveBase(result, "submitImage"); + getImageData_result result = new getImageData_result(); + receiveBase(result, "getImageData"); if (result.isSetSuccess()) { return result.success; } @@ -440,30 +443,31 @@ public class MasterServer { if (result.failure2 != null) { throw result.failure2; } - if (result.failure3 != null) { - throw result.failure3; + if (result.f3 != null) { + throw result.f3; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "submitImage failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImageData failed: unknown result"); } - public TransferInformation getImage(String serverSessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public TransferInformation submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes) throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { - send_getImage(serverSessionId, imageVersionId); - return recv_getImage(); + send_submitImage(serverSessionId, imageDescription, blockHashes); + return recv_submitImage(); } - public void send_getImage(String serverSessionId, String imageVersionId) throws org.apache.thrift.TException + public void send_submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes) throws org.apache.thrift.TException { - getImage_args args = new getImage_args(); + submitImage_args args = new submitImage_args(); args.setServerSessionId(serverSessionId); - args.setImageVersionId(imageVersionId); - sendBase("getImage", args); + args.setImageDescription(imageDescription); + args.setBlockHashes(blockHashes); + sendBase("submitImage", args); } - public TransferInformation recv_getImage() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException + public TransferInformation recv_submitImage() throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { - getImage_result result = new getImage_result(); - receiveBase(result, "getImage"); + submitImage_result result = new submitImage_result(); + receiveBase(result, "submitImage"); if (result.isSetSuccess()) { return result.success; } @@ -473,7 +477,10 @@ public class MasterServer { if (result.failure2 != null) { throw result.failure2; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getImage failed: unknown result"); + if (result.failure3 != null) { + throw result.failure3; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "submitImage failed: unknown result"); } public boolean registerSatellite(String organizationId, String address, String modulus, String exponent) throws TInvocationException, org.apache.thrift.TException @@ -535,6 +542,39 @@ public class MasterServer { throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateSatelliteAddress failed: unknown result"); } + public TransferInformation downloadImage(String sessionId, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException + { + send_downloadImage(sessionId, imageVersionId); + return recv_downloadImage(); + } + + public void send_downloadImage(String sessionId, String imageVersionId) throws org.apache.thrift.TException + { + downloadImage_args args = new downloadImage_args(); + args.setSessionId(sessionId); + args.setImageVersionId(imageVersionId); + sendBase("downloadImage", args); + } + + public TransferInformation recv_downloadImage() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException + { + downloadImage_result result = new downloadImage_result(); + receiveBase(result, "downloadImage"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.failure != null) { + throw result.failure; + } + if (result.failure2 != null) { + throw result.failure2; + } + if (result.f3 != null) { + throw result.f3; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "downloadImage failed: unknown result"); + } + public List getOrganizations() throws TInvocationException, org.apache.thrift.TException { send_getOrganizations(); @@ -1015,76 +1055,76 @@ public class MasterServer { } } - public void submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getImageData(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - submitImage_call method_call = new submitImage_call(serverSessionId, imageDescription, blockHashes, resultHandler, this, ___protocolFactory, ___transport); + getImageData_call method_call = new getImageData_call(serverSessionId, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class submitImage_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getImageData_call extends org.apache.thrift.async.TAsyncMethodCall { private String serverSessionId; - private ImagePublishData imageDescription; - private List blockHashes; - public submitImage_call(String serverSessionId, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private String imageVersionId; + public getImageData_call(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.serverSessionId = serverSessionId; - this.imageDescription = imageDescription; - this.blockHashes = blockHashes; + this.imageVersionId = imageVersionId; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("submitImage", org.apache.thrift.protocol.TMessageType.CALL, 0)); - submitImage_args args = new submitImage_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImageData", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getImageData_args args = new getImageData_args(); args.setServerSessionId(serverSessionId); - args.setImageDescription(imageDescription); - args.setBlockHashes(blockHashes); + args.setImageVersionId(imageVersionId); args.write(prot); prot.writeMessageEnd(); } - public TransferInformation getResult() throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { + public ImagePublishData getResult() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_submitImage(); + return (new Client(prot)).recv_getImageData(); } } - public void getImage(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void submitImage(String serverSessionId, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getImage_call method_call = new getImage_call(serverSessionId, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); + submitImage_call method_call = new submitImage_call(serverSessionId, imageDescription, blockHashes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getImage_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class submitImage_call extends org.apache.thrift.async.TAsyncMethodCall { private String serverSessionId; - private String imageVersionId; - public getImage_call(String serverSessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + private ImagePublishData imageDescription; + private List blockHashes; + public submitImage_call(String serverSessionId, ImagePublishData imageDescription, List blockHashes, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.serverSessionId = serverSessionId; - this.imageVersionId = imageVersionId; + this.imageDescription = imageDescription; + this.blockHashes = blockHashes; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getImage", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getImage_args args = new getImage_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("submitImage", org.apache.thrift.protocol.TMessageType.CALL, 0)); + submitImage_args args = new submitImage_args(); args.setServerSessionId(serverSessionId); - args.setImageVersionId(imageVersionId); + args.setImageDescription(imageDescription); + args.setBlockHashes(blockHashes); args.write(prot); prot.writeMessageEnd(); } - public TransferInformation getResult() throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { + public TransferInformation getResult() throws TAuthorizationException, TInvocationException, TTransferRejectedException, org.apache.thrift.TException { if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { throw new IllegalStateException("Method call not finished!"); } org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_getImage(); + return (new Client(prot)).recv_submitImage(); } } @@ -1164,6 +1204,41 @@ public class MasterServer { } } + public void downloadImage(String sessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + downloadImage_call method_call = new downloadImage_call(sessionId, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class downloadImage_call extends org.apache.thrift.async.TAsyncMethodCall { + private String sessionId; + private String imageVersionId; + public downloadImage_call(String sessionId, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.sessionId = sessionId; + this.imageVersionId = imageVersionId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("downloadImage", org.apache.thrift.protocol.TMessageType.CALL, 0)); + downloadImage_args args = new downloadImage_args(); + args.setSessionId(sessionId); + args.setImageVersionId(imageVersionId); + args.write(prot); + prot.writeMessageEnd(); + } + + public TransferInformation getResult() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_downloadImage(); + } + } + public void getOrganizations(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getOrganizations_call method_call = new getOrganizations_call(resultHandler, this, ___protocolFactory, ___transport); @@ -1338,10 +1413,11 @@ public class MasterServer { processMap.put("isServerAuthenticated", new isServerAuthenticated()); processMap.put("startServerAuthentication", new startServerAuthentication()); processMap.put("serverAuthenticate", new serverAuthenticate()); + processMap.put("getImageData", new getImageData()); processMap.put("submitImage", new submitImage()); - processMap.put("getImage", new getImage()); processMap.put("registerSatellite", new registerSatellite()); processMap.put("updateSatelliteAddress", new updateSatelliteAddress()); + processMap.put("downloadImage", new downloadImage()); processMap.put("getOrganizations", new getOrganizations()); processMap.put("getOperatingSystems", new getOperatingSystems()); processMap.put("getVirtualizers", new getVirtualizers()); @@ -1596,55 +1672,57 @@ public class MasterServer { } } - public static class submitImage extends org.apache.thrift.ProcessFunction { - public submitImage() { - super("submitImage"); + public static class getImageData extends org.apache.thrift.ProcessFunction { + public getImageData() { + super("getImageData"); } - public submitImage_args getEmptyArgsInstance() { - return new submitImage_args(); + public getImageData_args getEmptyArgsInstance() { + return new getImageData_args(); } protected boolean isOneway() { return false; } - public submitImage_result getResult(I iface, submitImage_args args) throws org.apache.thrift.TException { - submitImage_result result = new submitImage_result(); + public getImageData_result getResult(I iface, getImageData_args args) throws org.apache.thrift.TException { + getImageData_result result = new getImageData_result(); try { - result.success = iface.submitImage(args.serverSessionId, args.imageDescription, args.blockHashes); + result.success = iface.getImageData(args.serverSessionId, args.imageVersionId); } catch (TAuthorizationException failure) { result.failure = failure; } catch (TInvocationException failure2) { result.failure2 = failure2; - } catch (TTransferRejectedException failure3) { - result.failure3 = failure3; + } catch (TNotFoundException f3) { + result.f3 = f3; } return result; } } - public static class getImage extends org.apache.thrift.ProcessFunction { - public getImage() { - super("getImage"); + public static class submitImage extends org.apache.thrift.ProcessFunction { + public submitImage() { + super("submitImage"); } - public getImage_args getEmptyArgsInstance() { - return new getImage_args(); + public submitImage_args getEmptyArgsInstance() { + return new submitImage_args(); } protected boolean isOneway() { return false; } - public getImage_result getResult(I iface, getImage_args args) throws org.apache.thrift.TException { - getImage_result result = new getImage_result(); + public submitImage_result getResult(I iface, submitImage_args args) throws org.apache.thrift.TException { + submitImage_result result = new submitImage_result(); try { - result.success = iface.getImage(args.serverSessionId, args.imageVersionId); + result.success = iface.submitImage(args.serverSessionId, args.imageDescription, args.blockHashes); } catch (TAuthorizationException failure) { result.failure = failure; } catch (TInvocationException failure2) { result.failure2 = failure2; + } catch (TTransferRejectedException failure3) { + result.failure3 = failure3; } return result; } @@ -1702,6 +1780,34 @@ public class MasterServer { } } + public static class downloadImage extends org.apache.thrift.ProcessFunction { + public downloadImage() { + super("downloadImage"); + } + + public downloadImage_args getEmptyArgsInstance() { + return new downloadImage_args(); + } + + protected boolean isOneway() { + return false; + } + + public downloadImage_result getResult(I iface, downloadImage_args args) throws org.apache.thrift.TException { + downloadImage_result result = new downloadImage_result(); + try { + result.success = iface.downloadImage(args.sessionId, args.imageVersionId); + } catch (TAuthorizationException failure) { + result.failure = failure; + } catch (TInvocationException failure2) { + result.failure2 = failure2; + } catch (TNotFoundException f3) { + result.f3 = f3; + } + return result; + } + } + public static class getOrganizations extends org.apache.thrift.ProcessFunction { public getOrganizations() { super("getOrganizations"); @@ -1845,10 +1951,11 @@ public class MasterServer { processMap.put("isServerAuthenticated", new isServerAuthenticated()); processMap.put("startServerAuthentication", new startServerAuthentication()); processMap.put("serverAuthenticate", new serverAuthenticate()); + processMap.put("getImageData", new getImageData()); processMap.put("submitImage", new submitImage()); - processMap.put("getImage", new getImage()); processMap.put("registerSatellite", new registerSatellite()); processMap.put("updateSatelliteAddress", new updateSatelliteAddress()); + processMap.put("downloadImage", new downloadImage()); processMap.put("getOrganizations", new getOrganizations()); processMap.put("getOperatingSystems", new getOperatingSystems()); processMap.put("getVirtualizers", new getVirtualizers()); @@ -2446,20 +2553,20 @@ public class MasterServer { } } - public static class submitImage extends org.apache.thrift.AsyncProcessFunction { - public submitImage() { - super("submitImage"); + public static class getImageData extends org.apache.thrift.AsyncProcessFunction { + public getImageData() { + super("getImageData"); } - public submitImage_args getEmptyArgsInstance() { - return new submitImage_args(); + public getImageData_args getEmptyArgsInstance() { + return new getImageData_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TransferInformation o) { - submitImage_result result = new submitImage_result(); + return new AsyncMethodCallback() { + public void onComplete(ImagePublishData o) { + getImageData_result result = new getImageData_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -2472,7 +2579,7 @@ public class MasterServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - submitImage_result result = new submitImage_result(); + getImageData_result result = new getImageData_result(); if (e instanceof TAuthorizationException) { result.failure = (TAuthorizationException) e; result.setFailureIsSet(true); @@ -2483,9 +2590,9 @@ public class MasterServer { result.setFailure2IsSet(true); msg = result; } - else if (e instanceof TTransferRejectedException) { - result.failure3 = (TTransferRejectedException) e; - result.setFailure3IsSet(true); + else if (e instanceof TNotFoundException) { + result.f3 = (TNotFoundException) e; + result.setF3IsSet(true); msg = result; } else @@ -2508,25 +2615,25 @@ public class MasterServer { return false; } - public void start(I iface, submitImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.submitImage(args.serverSessionId, args.imageDescription, args.blockHashes,resultHandler); + public void start(I iface, getImageData_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getImageData(args.serverSessionId, args.imageVersionId,resultHandler); } } - public static class getImage extends org.apache.thrift.AsyncProcessFunction { - public getImage() { - super("getImage"); + public static class submitImage extends org.apache.thrift.AsyncProcessFunction { + public submitImage() { + super("submitImage"); } - public getImage_args getEmptyArgsInstance() { - return new getImage_args(); + public submitImage_args getEmptyArgsInstance() { + return new submitImage_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(TransferInformation o) { - getImage_result result = new getImage_result(); + submitImage_result result = new submitImage_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -2539,7 +2646,7 @@ public class MasterServer { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getImage_result result = new getImage_result(); + submitImage_result result = new submitImage_result(); if (e instanceof TAuthorizationException) { result.failure = (TAuthorizationException) e; result.setFailureIsSet(true); @@ -2549,6 +2656,11 @@ public class MasterServer { result.failure2 = (TInvocationException) e; result.setFailure2IsSet(true); msg = result; + } + else if (e instanceof TTransferRejectedException) { + result.failure3 = (TTransferRejectedException) e; + result.setFailure3IsSet(true); + msg = result; } else { @@ -2570,8 +2682,8 @@ public class MasterServer { return false; } - public void start(I iface, getImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getImage(args.serverSessionId, args.imageVersionId,resultHandler); + public void start(I iface, submitImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.submitImage(args.serverSessionId, args.imageDescription, args.blockHashes,resultHandler); } } @@ -2696,6 +2808,73 @@ public class MasterServer { } } + public static class downloadImage extends org.apache.thrift.AsyncProcessFunction { + public downloadImage() { + super("downloadImage"); + } + + public downloadImage_args getEmptyArgsInstance() { + return new downloadImage_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(TransferInformation o) { + downloadImage_result result = new downloadImage_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + downloadImage_result result = new downloadImage_result(); + if (e instanceof TAuthorizationException) { + result.failure = (TAuthorizationException) e; + result.setFailureIsSet(true); + msg = result; + } + else if (e instanceof TInvocationException) { + result.failure2 = (TInvocationException) e; + result.setFailure2IsSet(true); + msg = result; + } + else if (e instanceof TNotFoundException) { + result.f3 = (TNotFoundException) e; + result.setF3IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, downloadImage_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.downloadImage(args.sessionId, args.imageVersionId,resultHandler); + } + } + public static class getOrganizations extends org.apache.thrift.AsyncProcessFunction> { public getOrganizations() { super("getOrganizations"); @@ -6634,14 +6813,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list250 = iprot.readListBegin(); - struct.success = new ArrayList(_list250.size); - for (int _i251 = 0; _i251 < _list250.size; ++_i251) + org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(); + struct.success = new ArrayList(_list266.size); + for (int _i267 = 0; _i267 < _list266.size; ++_i267) { - UserInfo _elem252; - _elem252 = new UserInfo(); - _elem252.read(iprot); - struct.success.add(_elem252); + UserInfo _elem268; + _elem268 = new UserInfo(); + _elem268.read(iprot); + struct.success.add(_elem268); } iprot.readListEnd(); } @@ -6687,9 +6866,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (UserInfo _iter253 : struct.success) + for (UserInfo _iter269 : struct.success) { - _iter253.write(oprot); + _iter269.write(oprot); } oprot.writeListEnd(); } @@ -6736,9 +6915,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (UserInfo _iter254 : struct.success) + for (UserInfo _iter270 : struct.success) { - _iter254.write(oprot); + _iter270.write(oprot); } } } @@ -6756,14 +6935,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list255.size); - for (int _i256 = 0; _i256 < _list255.size; ++_i256) + org.apache.thrift.protocol.TList _list271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list271.size); + for (int _i272 = 0; _i272 < _list271.size; ++_i272) { - UserInfo _elem257; - _elem257 = new UserInfo(); - _elem257.read(iprot); - struct.success.add(_elem257); + UserInfo _elem273; + _elem273 = new UserInfo(); + _elem273.read(iprot); + struct.success.add(_elem273); } } struct.setSuccessIsSet(true); @@ -7698,14 +7877,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list258 = iprot.readListBegin(); - struct.success = new ArrayList(_list258.size); - for (int _i259 = 0; _i259 < _list258.size; ++_i259) + org.apache.thrift.protocol.TList _list274 = iprot.readListBegin(); + struct.success = new ArrayList(_list274.size); + for (int _i275 = 0; _i275 < _list274.size; ++_i275) { - ImagePublishData _elem260; - _elem260 = new ImagePublishData(); - _elem260.read(iprot); - struct.success.add(_elem260); + ImagePublishData _elem276; + _elem276 = new ImagePublishData(); + _elem276.read(iprot); + struct.success.add(_elem276); } iprot.readListEnd(); } @@ -7751,9 +7930,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ImagePublishData _iter261 : struct.success) + for (ImagePublishData _iter277 : struct.success) { - _iter261.write(oprot); + _iter277.write(oprot); } oprot.writeListEnd(); } @@ -7800,9 +7979,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (ImagePublishData _iter262 : struct.success) + for (ImagePublishData _iter278 : struct.success) { - _iter262.write(oprot); + _iter278.write(oprot); } } } @@ -7820,14 +7999,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list263.size); - for (int _i264 = 0; _i264 < _list263.size; ++_i264) + org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list279.size); + for (int _i280 = 0; _i280 < _list279.size; ++_i280) { - ImagePublishData _elem265; - _elem265 = new ImagePublishData(); - _elem265.read(iprot); - struct.success.add(_elem265); + ImagePublishData _elem281; + _elem281 = new ImagePublishData(); + _elem281.read(iprot); + struct.success.add(_elem281); } } struct.setSuccessIsSet(true); @@ -12031,28 +12210,25 @@ public class MasterServer { } - public static class submitImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_args"); + public static class getImageData_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageData_args"); private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageDescription", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField BLOCK_HASHES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockHashes", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new submitImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new submitImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageData_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageData_argsTupleSchemeFactory()); } public String serverSessionId; // required - public ImagePublishData imageDescription; // required - public List blockHashes; // required + public String imageVersionId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SERVER_SESSION_ID((short)1, "serverSessionId"), - IMAGE_DESCRIPTION((short)2, "imageDescription"), - BLOCK_HASHES((short)3, "blockHashes"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -12069,10 +12245,8 @@ public class MasterServer { switch(fieldId) { case 1: // SERVER_SESSION_ID return SERVER_SESSION_ID; - case 2: // IMAGE_DESCRIPTION - return IMAGE_DESCRIPTION; - case 3: // BLOCK_HASHES - return BLOCK_HASHES; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -12118,61 +12292,51 @@ public class MasterServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("imageDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePublishData.class))); - tmpMap.put(_Fields.BLOCK_HASHES, new org.apache.thrift.meta_data.FieldMetaData("blockHashes", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_args.class, metaDataMap); } - public submitImage_args() { + public getImageData_args() { } - public submitImage_args( + public getImageData_args( String serverSessionId, - ImagePublishData imageDescription, - List blockHashes) + String imageVersionId) { this(); this.serverSessionId = serverSessionId; - this.imageDescription = imageDescription; - this.blockHashes = blockHashes; + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public submitImage_args(submitImage_args other) { + public getImageData_args(getImageData_args other) { if (other.isSetServerSessionId()) { this.serverSessionId = other.serverSessionId; } - if (other.isSetImageDescription()) { - this.imageDescription = new ImagePublishData(other.imageDescription); - } - if (other.isSetBlockHashes()) { - List __this__blockHashes = new ArrayList(other.blockHashes); - this.blockHashes = __this__blockHashes; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } } - public submitImage_args deepCopy() { - return new submitImage_args(this); + public getImageData_args deepCopy() { + return new getImageData_args(this); } @Override public void clear() { this.serverSessionId = null; - this.imageDescription = null; - this.blockHashes = null; + this.imageVersionId = null; } public String getServerSessionId() { return this.serverSessionId; } - public submitImage_args setServerSessionId(String serverSessionId) { + public getImageData_args setServerSessionId(String serverSessionId) { this.serverSessionId = serverSessionId; return this; } @@ -12192,66 +12356,27 @@ public class MasterServer { } } - public ImagePublishData getImageDescription() { - return this.imageDescription; - } - - public submitImage_args setImageDescription(ImagePublishData imageDescription) { - this.imageDescription = imageDescription; - return this; - } - - public void unsetImageDescription() { - this.imageDescription = null; - } - - /** Returns true if field imageDescription is set (has been assigned a value) and false otherwise */ - public boolean isSetImageDescription() { - return this.imageDescription != null; - } - - public void setImageDescriptionIsSet(boolean value) { - if (!value) { - this.imageDescription = null; - } - } - - public int getBlockHashesSize() { - return (this.blockHashes == null) ? 0 : this.blockHashes.size(); - } - - public java.util.Iterator getBlockHashesIterator() { - return (this.blockHashes == null) ? null : this.blockHashes.iterator(); - } - - public void addToBlockHashes(ByteBuffer elem) { - if (this.blockHashes == null) { - this.blockHashes = new ArrayList(); - } - this.blockHashes.add(elem); - } - - public List getBlockHashes() { - return this.blockHashes; + public String getImageVersionId() { + return this.imageVersionId; } - public submitImage_args setBlockHashes(List blockHashes) { - this.blockHashes = blockHashes; + public getImageData_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetBlockHashes() { - this.blockHashes = null; + public void unsetImageVersionId() { + this.imageVersionId = null; } - /** Returns true if field blockHashes is set (has been assigned a value) and false otherwise */ - public boolean isSetBlockHashes() { - return this.blockHashes != null; + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setBlockHashesIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.blockHashes = null; + this.imageVersionId = null; } } @@ -12265,19 +12390,11 @@ public class MasterServer { } break; - case IMAGE_DESCRIPTION: - if (value == null) { - unsetImageDescription(); - } else { - setImageDescription((ImagePublishData)value); - } - break; - - case BLOCK_HASHES: + case IMAGE_VERSION_ID: if (value == null) { - unsetBlockHashes(); + unsetImageVersionId(); } else { - setBlockHashes((List)value); + setImageVersionId((String)value); } break; @@ -12289,11 +12406,8 @@ public class MasterServer { case SERVER_SESSION_ID: return getServerSessionId(); - case IMAGE_DESCRIPTION: - return getImageDescription(); - - case BLOCK_HASHES: - return getBlockHashes(); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -12308,10 +12422,8 @@ public class MasterServer { switch (field) { case SERVER_SESSION_ID: return isSetServerSessionId(); - case IMAGE_DESCRIPTION: - return isSetImageDescription(); - case BLOCK_HASHES: - return isSetBlockHashes(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -12320,12 +12432,12 @@ public class MasterServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof submitImage_args) - return this.equals((submitImage_args)that); + if (that instanceof getImageData_args) + return this.equals((getImageData_args)that); return false; } - public boolean equals(submitImage_args that) { + public boolean equals(getImageData_args that) { if (that == null) return false; @@ -12338,21 +12450,12 @@ public class MasterServer { return false; } - boolean this_present_imageDescription = true && this.isSetImageDescription(); - boolean that_present_imageDescription = true && that.isSetImageDescription(); - if (this_present_imageDescription || that_present_imageDescription) { - if (!(this_present_imageDescription && that_present_imageDescription)) - return false; - if (!this.imageDescription.equals(that.imageDescription)) - return false; - } - - boolean this_present_blockHashes = true && this.isSetBlockHashes(); - boolean that_present_blockHashes = true && that.isSetBlockHashes(); - if (this_present_blockHashes || that_present_blockHashes) { - if (!(this_present_blockHashes && that_present_blockHashes)) + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) return false; - if (!this.blockHashes.equals(that.blockHashes)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -12365,7 +12468,7 @@ public class MasterServer { } @Override - public int compareTo(submitImage_args other) { + public int compareTo(getImageData_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -12382,22 +12485,12 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageDescription()).compareTo(other.isSetImageDescription()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageDescription, other.imageDescription); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetBlockHashes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockHashes, other.blockHashes); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -12419,7 +12512,7 @@ public class MasterServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("submitImage_args("); + StringBuilder sb = new StringBuilder("getImageData_args("); boolean first = true; sb.append("serverSessionId:"); @@ -12430,19 +12523,11 @@ public class MasterServer { } first = false; if (!first) sb.append(", "); - sb.append("imageDescription:"); - if (this.imageDescription == null) { - sb.append("null"); - } else { - sb.append(this.imageDescription); - } - first = false; - if (!first) sb.append(", "); - sb.append("blockHashes:"); - if (this.blockHashes == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.blockHashes); + sb.append(this.imageVersionId); } first = false; sb.append(")"); @@ -12452,9 +12537,6 @@ public class MasterServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (imageDescription != null) { - imageDescription.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -12473,15 +12555,15 @@ public class MasterServer { } } - private static class submitImage_argsStandardSchemeFactory implements SchemeFactory { - public submitImage_argsStandardScheme getScheme() { - return new submitImage_argsStandardScheme(); + private static class getImageData_argsStandardSchemeFactory implements SchemeFactory { + public getImageData_argsStandardScheme getScheme() { + return new getImageData_argsStandardScheme(); } } - private static class submitImage_argsStandardScheme extends StandardScheme { + private static class getImageData_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -12499,29 +12581,10 @@ public class MasterServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.imageDescription = new ImagePublishData(); - struct.imageDescription.read(iprot); - struct.setImageDescriptionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // BLOCK_HASHES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list266 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list266.size); - for (int _i267 = 0; _i267 < _list266.size; ++_i267) - { - ByteBuffer _elem268; - _elem268 = iprot.readBinary(); - struct.blockHashes.add(_elem268); - } - iprot.readListEnd(); - } - struct.setBlockHashesIsSet(true); + case 2: // IMAGE_VERSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -12537,7 +12600,7 @@ public class MasterServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -12546,21 +12609,9 @@ public class MasterServer { oprot.writeString(struct.serverSessionId); oprot.writeFieldEnd(); } - if (struct.imageDescription != null) { - oprot.writeFieldBegin(IMAGE_DESCRIPTION_FIELD_DESC); - struct.imageDescription.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.blockHashes != null) { - oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter269 : struct.blockHashes) - { - oprot.writeBinary(_iter269); - } - oprot.writeListEnd(); - } + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -12569,101 +12620,75 @@ public class MasterServer { } - private static class submitImage_argsTupleSchemeFactory implements SchemeFactory { - public submitImage_argsTupleScheme getScheme() { - return new submitImage_argsTupleScheme(); + private static class getImageData_argsTupleSchemeFactory implements SchemeFactory { + public getImageData_argsTupleScheme getScheme() { + return new getImageData_argsTupleScheme(); } } - private static class submitImage_argsTupleScheme extends TupleScheme { + private static class getImageData_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetServerSessionId()) { optionals.set(0); } - if (struct.isSetImageDescription()) { + if (struct.isSetImageVersionId()) { optionals.set(1); } - if (struct.isSetBlockHashes()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetServerSessionId()) { oprot.writeString(struct.serverSessionId); } - if (struct.isSetImageDescription()) { - struct.imageDescription.write(oprot); - } - if (struct.isSetBlockHashes()) { - { - oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter270 : struct.blockHashes) - { - oprot.writeBinary(_iter270); - } - } + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); } if (incoming.get(1)) { - struct.imageDescription = new ImagePublishData(); - struct.imageDescription.read(iprot); - struct.setImageDescriptionIsSet(true); - } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list271 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list271.size); - for (int _i272 = 0; _i272 < _list271.size; ++_i272) - { - ByteBuffer _elem273; - _elem273 = iprot.readBinary(); - struct.blockHashes.add(_elem273); - } - } - struct.setBlockHashesIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } } } } - public static class submitImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_result"); + public static class getImageData_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageData_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField FAILURE3_FIELD_DESC = new org.apache.thrift.protocol.TField("failure3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField F3_FIELD_DESC = new org.apache.thrift.protocol.TField("f3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new submitImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new submitImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageData_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageData_resultTupleSchemeFactory()); } - public TransferInformation success; // required + public ImagePublishData success; // required public TAuthorizationException failure; // required public TInvocationException failure2; // required - public TTransferRejectedException failure3; // required + public TNotFoundException f3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), FAILURE((short)1, "failure"), FAILURE2((short)2, "failure2"), - FAILURE3((short)3, "failure3"); + F3((short)3, "f3"); private static final Map byName = new HashMap(); @@ -12684,8 +12709,8 @@ public class MasterServer { return FAILURE; case 2: // FAILURE2 return FAILURE2; - case 3: // FAILURE3 - return FAILURE3; + case 3: // F3 + return F3; default: return null; } @@ -12730,39 +12755,39 @@ public class MasterServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferInformation.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePublishData.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.FAILURE3, new org.apache.thrift.meta_data.FieldMetaData("failure3", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.F3, new org.apache.thrift.meta_data.FieldMetaData("f3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageData_result.class, metaDataMap); } - public submitImage_result() { + public getImageData_result() { } - public submitImage_result( - TransferInformation success, + public getImageData_result( + ImagePublishData success, TAuthorizationException failure, TInvocationException failure2, - TTransferRejectedException failure3) + TNotFoundException f3) { this(); this.success = success; this.failure = failure; this.failure2 = failure2; - this.failure3 = failure3; + this.f3 = f3; } /** * Performs a deep copy on other. */ - public submitImage_result(submitImage_result other) { + public getImageData_result(getImageData_result other) { if (other.isSetSuccess()) { - this.success = new TransferInformation(other.success); + this.success = new ImagePublishData(other.success); } if (other.isSetFailure()) { this.failure = new TAuthorizationException(other.failure); @@ -12770,13 +12795,13 @@ public class MasterServer { if (other.isSetFailure2()) { this.failure2 = new TInvocationException(other.failure2); } - if (other.isSetFailure3()) { - this.failure3 = new TTransferRejectedException(other.failure3); + if (other.isSetF3()) { + this.f3 = new TNotFoundException(other.f3); } } - public submitImage_result deepCopy() { - return new submitImage_result(this); + public getImageData_result deepCopy() { + return new getImageData_result(this); } @Override @@ -12784,14 +12809,14 @@ public class MasterServer { this.success = null; this.failure = null; this.failure2 = null; - this.failure3 = null; + this.f3 = null; } - public TransferInformation getSuccess() { + public ImagePublishData getSuccess() { return this.success; } - public submitImage_result setSuccess(TransferInformation success) { + public getImageData_result setSuccess(ImagePublishData success) { this.success = success; return this; } @@ -12815,7 +12840,7 @@ public class MasterServer { return this.failure; } - public submitImage_result setFailure(TAuthorizationException failure) { + public getImageData_result setFailure(TAuthorizationException failure) { this.failure = failure; return this; } @@ -12839,7 +12864,7 @@ public class MasterServer { return this.failure2; } - public submitImage_result setFailure2(TInvocationException failure2) { + public getImageData_result setFailure2(TInvocationException failure2) { this.failure2 = failure2; return this; } @@ -12859,27 +12884,27 @@ public class MasterServer { } } - public TTransferRejectedException getFailure3() { - return this.failure3; + public TNotFoundException getF3() { + return this.f3; } - public submitImage_result setFailure3(TTransferRejectedException failure3) { - this.failure3 = failure3; + public getImageData_result setF3(TNotFoundException f3) { + this.f3 = f3; return this; } - public void unsetFailure3() { - this.failure3 = null; + public void unsetF3() { + this.f3 = null; } - /** Returns true if field failure3 is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure3() { - return this.failure3 != null; + /** Returns true if field f3 is set (has been assigned a value) and false otherwise */ + public boolean isSetF3() { + return this.f3 != null; } - public void setFailure3IsSet(boolean value) { + public void setF3IsSet(boolean value) { if (!value) { - this.failure3 = null; + this.f3 = null; } } @@ -12889,7 +12914,7 @@ public class MasterServer { if (value == null) { unsetSuccess(); } else { - setSuccess((TransferInformation)value); + setSuccess((ImagePublishData)value); } break; @@ -12909,11 +12934,11 @@ public class MasterServer { } break; - case FAILURE3: + case F3: if (value == null) { - unsetFailure3(); + unsetF3(); } else { - setFailure3((TTransferRejectedException)value); + setF3((TNotFoundException)value); } break; @@ -12931,8 +12956,8 @@ public class MasterServer { case FAILURE2: return getFailure2(); - case FAILURE3: - return getFailure3(); + case F3: + return getF3(); } throw new IllegalStateException(); @@ -12951,8 +12976,8 @@ public class MasterServer { return isSetFailure(); case FAILURE2: return isSetFailure2(); - case FAILURE3: - return isSetFailure3(); + case F3: + return isSetF3(); } throw new IllegalStateException(); } @@ -12961,12 +12986,12 @@ public class MasterServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof submitImage_result) - return this.equals((submitImage_result)that); + if (that instanceof getImageData_result) + return this.equals((getImageData_result)that); return false; } - public boolean equals(submitImage_result that) { + public boolean equals(getImageData_result that) { if (that == null) return false; @@ -12997,12 +13022,12 @@ public class MasterServer { return false; } - boolean this_present_failure3 = true && this.isSetFailure3(); - boolean that_present_failure3 = true && that.isSetFailure3(); - if (this_present_failure3 || that_present_failure3) { - if (!(this_present_failure3 && that_present_failure3)) + boolean this_present_f3 = true && this.isSetF3(); + boolean that_present_f3 = true && that.isSetF3(); + if (this_present_f3 || that_present_f3) { + if (!(this_present_f3 && that_present_f3)) return false; - if (!this.failure3.equals(that.failure3)) + if (!this.f3.equals(that.f3)) return false; } @@ -13015,7 +13040,7 @@ public class MasterServer { } @Override - public int compareTo(submitImage_result other) { + public int compareTo(getImageData_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13052,12 +13077,12 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFailure3()).compareTo(other.isSetFailure3()); + lastComparison = Boolean.valueOf(isSetF3()).compareTo(other.isSetF3()); if (lastComparison != 0) { return lastComparison; } - if (isSetFailure3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure3, other.failure3); + if (isSetF3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f3, other.f3); if (lastComparison != 0) { return lastComparison; } @@ -13079,7 +13104,7 @@ public class MasterServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("submitImage_result("); + StringBuilder sb = new StringBuilder("getImageData_result("); boolean first = true; sb.append("success:"); @@ -13106,11 +13131,11 @@ public class MasterServer { } first = false; if (!first) sb.append(", "); - sb.append("failure3:"); - if (this.failure3 == null) { + sb.append("f3:"); + if (this.f3 == null) { sb.append("null"); } else { - sb.append(this.failure3); + sb.append(this.f3); } first = false; sb.append(")"); @@ -13141,15 +13166,15 @@ public class MasterServer { } } - private static class submitImage_resultStandardSchemeFactory implements SchemeFactory { - public submitImage_resultStandardScheme getScheme() { - return new submitImage_resultStandardScheme(); + private static class getImageData_resultStandardSchemeFactory implements SchemeFactory { + public getImageData_resultStandardScheme getScheme() { + return new getImageData_resultStandardScheme(); } } - private static class submitImage_resultStandardScheme extends StandardScheme { + private static class getImageData_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageData_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13161,7 +13186,7 @@ public class MasterServer { switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TransferInformation(); + struct.success = new ImagePublishData(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -13186,11 +13211,11 @@ public class MasterServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // FAILURE3 + case 3: // F3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure3 = new TTransferRejectedException(); - struct.failure3.read(iprot); - struct.setFailure3IsSet(true); + struct.f3 = new TNotFoundException(); + struct.f3.read(iprot); + struct.setF3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13206,7 +13231,7 @@ public class MasterServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageData_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13225,9 +13250,9 @@ public class MasterServer { struct.failure2.write(oprot); oprot.writeFieldEnd(); } - if (struct.failure3 != null) { - oprot.writeFieldBegin(FAILURE3_FIELD_DESC); - struct.failure3.write(oprot); + if (struct.f3 != null) { + oprot.writeFieldBegin(F3_FIELD_DESC); + struct.f3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -13236,16 +13261,16 @@ public class MasterServer { } - private static class submitImage_resultTupleSchemeFactory implements SchemeFactory { - public submitImage_resultTupleScheme getScheme() { - return new submitImage_resultTupleScheme(); + private static class getImageData_resultTupleSchemeFactory implements SchemeFactory { + public getImageData_resultTupleScheme getScheme() { + return new getImageData_resultTupleScheme(); } } - private static class submitImage_resultTupleScheme extends TupleScheme { + private static class getImageData_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -13257,7 +13282,7 @@ public class MasterServer { if (struct.isSetFailure2()) { optionals.set(2); } - if (struct.isSetFailure3()) { + if (struct.isSetF3()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); @@ -13270,17 +13295,17 @@ public class MasterServer { if (struct.isSetFailure2()) { struct.failure2.write(oprot); } - if (struct.isSetFailure3()) { - struct.failure3.write(oprot); + if (struct.isSetF3()) { + struct.f3.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageData_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new TransferInformation(); + struct.success = new ImagePublishData(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -13295,34 +13320,37 @@ public class MasterServer { struct.setFailure2IsSet(true); } if (incoming.get(3)) { - struct.failure3 = new TTransferRejectedException(); - struct.failure3.read(iprot); - struct.setFailure3IsSet(true); + struct.f3 = new TNotFoundException(); + struct.f3.read(iprot); + struct.setF3IsSet(true); } } } } - public static class getImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImage_args"); + public static class submitImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_args"); - private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField IMAGE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("imageDescription", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField BLOCK_HASHES_FIELD_DESC = new org.apache.thrift.protocol.TField("blockHashes", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new submitImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new submitImage_argsTupleSchemeFactory()); } public String serverSessionId; // required - public String imageVersionId; // required + public ImagePublishData imageDescription; // required + public List blockHashes; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SERVER_SESSION_ID((short)2, "serverSessionId"), - IMAGE_VERSION_ID((short)1, "imageVersionId"); + SERVER_SESSION_ID((short)1, "serverSessionId"), + IMAGE_DESCRIPTION((short)2, "imageDescription"), + BLOCK_HASHES((short)3, "blockHashes"); private static final Map byName = new HashMap(); @@ -13337,10 +13365,12 @@ public class MasterServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 2: // SERVER_SESSION_ID + case 1: // SERVER_SESSION_ID return SERVER_SESSION_ID; - case 1: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; + case 2: // IMAGE_DESCRIPTION + return IMAGE_DESCRIPTION; + case 3: // BLOCK_HASHES + return BLOCK_HASHES; default: return null; } @@ -13386,51 +13416,61 @@ public class MasterServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.IMAGE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("imageDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePublishData.class))); + tmpMap.put(_Fields.BLOCK_HASHES, new org.apache.thrift.meta_data.FieldMetaData("blockHashes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_args.class, metaDataMap); } - public getImage_args() { + public submitImage_args() { } - public getImage_args( + public submitImage_args( String serverSessionId, - String imageVersionId) + ImagePublishData imageDescription, + List blockHashes) { this(); this.serverSessionId = serverSessionId; - this.imageVersionId = imageVersionId; + this.imageDescription = imageDescription; + this.blockHashes = blockHashes; } /** * Performs a deep copy on other. */ - public getImage_args(getImage_args other) { + public submitImage_args(submitImage_args other) { if (other.isSetServerSessionId()) { this.serverSessionId = other.serverSessionId; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; + if (other.isSetImageDescription()) { + this.imageDescription = new ImagePublishData(other.imageDescription); + } + if (other.isSetBlockHashes()) { + List __this__blockHashes = new ArrayList(other.blockHashes); + this.blockHashes = __this__blockHashes; } } - public getImage_args deepCopy() { - return new getImage_args(this); + public submitImage_args deepCopy() { + return new submitImage_args(this); } @Override public void clear() { this.serverSessionId = null; - this.imageVersionId = null; + this.imageDescription = null; + this.blockHashes = null; } public String getServerSessionId() { return this.serverSessionId; } - public getImage_args setServerSessionId(String serverSessionId) { + public submitImage_args setServerSessionId(String serverSessionId) { this.serverSessionId = serverSessionId; return this; } @@ -13450,27 +13490,66 @@ public class MasterServer { } } - public String getImageVersionId() { - return this.imageVersionId; + public ImagePublishData getImageDescription() { + return this.imageDescription; } - public getImage_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; + public submitImage_args setImageDescription(ImagePublishData imageDescription) { + this.imageDescription = imageDescription; return this; } - public void unsetImageVersionId() { - this.imageVersionId = null; + public void unsetImageDescription() { + this.imageDescription = null; } - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; + /** Returns true if field imageDescription is set (has been assigned a value) and false otherwise */ + public boolean isSetImageDescription() { + return this.imageDescription != null; } - public void setImageVersionIdIsSet(boolean value) { + public void setImageDescriptionIsSet(boolean value) { if (!value) { - this.imageVersionId = null; + this.imageDescription = null; + } + } + + public int getBlockHashesSize() { + return (this.blockHashes == null) ? 0 : this.blockHashes.size(); + } + + public java.util.Iterator getBlockHashesIterator() { + return (this.blockHashes == null) ? null : this.blockHashes.iterator(); + } + + public void addToBlockHashes(ByteBuffer elem) { + if (this.blockHashes == null) { + this.blockHashes = new ArrayList(); + } + this.blockHashes.add(elem); + } + + public List getBlockHashes() { + return this.blockHashes; + } + + public submitImage_args setBlockHashes(List blockHashes) { + this.blockHashes = blockHashes; + return this; + } + + public void unsetBlockHashes() { + this.blockHashes = null; + } + + /** Returns true if field blockHashes is set (has been assigned a value) and false otherwise */ + public boolean isSetBlockHashes() { + return this.blockHashes != null; + } + + public void setBlockHashesIsSet(boolean value) { + if (!value) { + this.blockHashes = null; } } @@ -13484,11 +13563,19 @@ public class MasterServer { } break; - case IMAGE_VERSION_ID: + case IMAGE_DESCRIPTION: if (value == null) { - unsetImageVersionId(); + unsetImageDescription(); } else { - setImageVersionId((String)value); + setImageDescription((ImagePublishData)value); + } + break; + + case BLOCK_HASHES: + if (value == null) { + unsetBlockHashes(); + } else { + setBlockHashes((List)value); } break; @@ -13500,8 +13587,11 @@ public class MasterServer { case SERVER_SESSION_ID: return getServerSessionId(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_DESCRIPTION: + return getImageDescription(); + + case BLOCK_HASHES: + return getBlockHashes(); } throw new IllegalStateException(); @@ -13516,8 +13606,10 @@ public class MasterServer { switch (field) { case SERVER_SESSION_ID: return isSetServerSessionId(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case IMAGE_DESCRIPTION: + return isSetImageDescription(); + case BLOCK_HASHES: + return isSetBlockHashes(); } throw new IllegalStateException(); } @@ -13526,12 +13618,12 @@ public class MasterServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImage_args) - return this.equals((getImage_args)that); + if (that instanceof submitImage_args) + return this.equals((submitImage_args)that); return false; } - public boolean equals(getImage_args that) { + public boolean equals(submitImage_args that) { if (that == null) return false; @@ -13544,12 +13636,21 @@ public class MasterServer { return false; } - boolean this_present_imageVersionId = true && this.isSetImageVersionId(); - boolean that_present_imageVersionId = true && that.isSetImageVersionId(); - if (this_present_imageVersionId || that_present_imageVersionId) { - if (!(this_present_imageVersionId && that_present_imageVersionId)) - return false; - if (!this.imageVersionId.equals(that.imageVersionId)) + boolean this_present_imageDescription = true && this.isSetImageDescription(); + boolean that_present_imageDescription = true && that.isSetImageDescription(); + if (this_present_imageDescription || that_present_imageDescription) { + if (!(this_present_imageDescription && that_present_imageDescription)) + return false; + if (!this.imageDescription.equals(that.imageDescription)) + return false; + } + + boolean this_present_blockHashes = true && this.isSetBlockHashes(); + boolean that_present_blockHashes = true && that.isSetBlockHashes(); + if (this_present_blockHashes || that_present_blockHashes) { + if (!(this_present_blockHashes && that_present_blockHashes)) + return false; + if (!this.blockHashes.equals(that.blockHashes)) return false; } @@ -13562,7 +13663,7 @@ public class MasterServer { } @Override - public int compareTo(getImage_args other) { + public int compareTo(submitImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13579,12 +13680,22 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = Boolean.valueOf(isSetImageDescription()).compareTo(other.isSetImageDescription()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (isSetImageDescription()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageDescription, other.imageDescription); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetBlockHashes()).compareTo(other.isSetBlockHashes()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetBlockHashes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockHashes, other.blockHashes); if (lastComparison != 0) { return lastComparison; } @@ -13606,7 +13717,7 @@ public class MasterServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImage_args("); + StringBuilder sb = new StringBuilder("submitImage_args("); boolean first = true; sb.append("serverSessionId:"); @@ -13617,11 +13728,19 @@ public class MasterServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { + sb.append("imageDescription:"); + if (this.imageDescription == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.imageDescription); + } + first = false; + if (!first) sb.append(", "); + sb.append("blockHashes:"); + if (this.blockHashes == null) { + sb.append("null"); + } else { + sb.append(this.blockHashes); } first = false; sb.append(")"); @@ -13631,6 +13750,9 @@ public class MasterServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (imageDescription != null) { + imageDescription.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -13649,15 +13771,15 @@ public class MasterServer { } } - private static class getImage_argsStandardSchemeFactory implements SchemeFactory { - public getImage_argsStandardScheme getScheme() { - return new getImage_argsStandardScheme(); + private static class submitImage_argsStandardSchemeFactory implements SchemeFactory { + public submitImage_argsStandardScheme getScheme() { + return new submitImage_argsStandardScheme(); } } - private static class getImage_argsStandardScheme extends StandardScheme { + private static class submitImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13667,7 +13789,7 @@ public class MasterServer { break; } switch (schemeField.id) { - case 2: // SERVER_SESSION_ID + case 1: // SERVER_SESSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); @@ -13675,10 +13797,29 @@ public class MasterServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // IMAGE_VERSION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + case 2: // IMAGE_DESCRIPTION + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imageDescription = new ImagePublishData(); + struct.imageDescription.read(iprot); + struct.setImageDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // BLOCK_HASHES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list282 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list282.size); + for (int _i283 = 0; _i283 < _list282.size; ++_i283) + { + ByteBuffer _elem284; + _elem284 = iprot.readBinary(); + struct.blockHashes.add(_elem284); + } + iprot.readListEnd(); + } + struct.setBlockHashesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13694,92 +13835,133 @@ public class MasterServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); - oprot.writeFieldEnd(); - } if (struct.serverSessionId != null) { oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); oprot.writeString(struct.serverSessionId); oprot.writeFieldEnd(); } + if (struct.imageDescription != null) { + oprot.writeFieldBegin(IMAGE_DESCRIPTION_FIELD_DESC); + struct.imageDescription.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.blockHashes != null) { + oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); + for (ByteBuffer _iter285 : struct.blockHashes) + { + oprot.writeBinary(_iter285); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImage_argsTupleSchemeFactory implements SchemeFactory { - public getImage_argsTupleScheme getScheme() { - return new getImage_argsTupleScheme(); + private static class submitImage_argsTupleSchemeFactory implements SchemeFactory { + public submitImage_argsTupleScheme getScheme() { + return new submitImage_argsTupleScheme(); } } - private static class getImage_argsTupleScheme extends TupleScheme { + private static class submitImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetServerSessionId()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { + if (struct.isSetImageDescription()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetBlockHashes()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetServerSessionId()) { oprot.writeString(struct.serverSessionId); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); + if (struct.isSetImageDescription()) { + struct.imageDescription.write(oprot); + } + if (struct.isSetBlockHashes()) { + { + oprot.writeI32(struct.blockHashes.size()); + for (ByteBuffer _iter286 : struct.blockHashes) + { + oprot.writeBinary(_iter286); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.serverSessionId = iprot.readString(); struct.setServerSessionIdIsSet(true); } if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageDescription = new ImagePublishData(); + struct.imageDescription.read(iprot); + struct.setImageDescriptionIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list287.size); + for (int _i288 = 0; _i288 < _list287.size; ++_i288) + { + ByteBuffer _elem289; + _elem289 = iprot.readBinary(); + struct.blockHashes.add(_elem289); + } + } + struct.setBlockHashesIsSet(true); } } } } - public static class getImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImage_result"); + public static class submitImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("submitImage_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField FAILURE3_FIELD_DESC = new org.apache.thrift.protocol.TField("failure3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new submitImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new submitImage_resultTupleSchemeFactory()); } public TransferInformation success; // required public TAuthorizationException failure; // required public TInvocationException failure2; // required + public TTransferRejectedException failure3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), FAILURE((short)1, "failure"), - FAILURE2((short)2, "failure2"); + FAILURE2((short)2, "failure2"), + FAILURE3((short)3, "failure3"); private static final Map byName = new HashMap(); @@ -13800,6 +13982,8 @@ public class MasterServer { return FAILURE; case 2: // FAILURE2 return FAILURE2; + case 3: // FAILURE3 + return FAILURE3; default: return null; } @@ -13849,28 +14033,32 @@ public class MasterServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.FAILURE3, new org.apache.thrift.meta_data.FieldMetaData("failure3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(submitImage_result.class, metaDataMap); } - public getImage_result() { + public submitImage_result() { } - public getImage_result( + public submitImage_result( TransferInformation success, TAuthorizationException failure, - TInvocationException failure2) + TInvocationException failure2, + TTransferRejectedException failure3) { this(); this.success = success; this.failure = failure; this.failure2 = failure2; + this.failure3 = failure3; } /** * Performs a deep copy on other. */ - public getImage_result(getImage_result other) { + public submitImage_result(submitImage_result other) { if (other.isSetSuccess()) { this.success = new TransferInformation(other.success); } @@ -13880,10 +14068,13 @@ public class MasterServer { if (other.isSetFailure2()) { this.failure2 = new TInvocationException(other.failure2); } + if (other.isSetFailure3()) { + this.failure3 = new TTransferRejectedException(other.failure3); + } } - public getImage_result deepCopy() { - return new getImage_result(this); + public submitImage_result deepCopy() { + return new submitImage_result(this); } @Override @@ -13891,13 +14082,14 @@ public class MasterServer { this.success = null; this.failure = null; this.failure2 = null; + this.failure3 = null; } public TransferInformation getSuccess() { return this.success; } - public getImage_result setSuccess(TransferInformation success) { + public submitImage_result setSuccess(TransferInformation success) { this.success = success; return this; } @@ -13921,7 +14113,7 @@ public class MasterServer { return this.failure; } - public getImage_result setFailure(TAuthorizationException failure) { + public submitImage_result setFailure(TAuthorizationException failure) { this.failure = failure; return this; } @@ -13945,7 +14137,7 @@ public class MasterServer { return this.failure2; } - public getImage_result setFailure2(TInvocationException failure2) { + public submitImage_result setFailure2(TInvocationException failure2) { this.failure2 = failure2; return this; } @@ -13965,6 +14157,30 @@ public class MasterServer { } } + public TTransferRejectedException getFailure3() { + return this.failure3; + } + + public submitImage_result setFailure3(TTransferRejectedException failure3) { + this.failure3 = failure3; + return this; + } + + public void unsetFailure3() { + this.failure3 = null; + } + + /** Returns true if field failure3 is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure3() { + return this.failure3 != null; + } + + public void setFailure3IsSet(boolean value) { + if (!value) { + this.failure3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -13991,6 +14207,14 @@ public class MasterServer { } break; + case FAILURE3: + if (value == null) { + unsetFailure3(); + } else { + setFailure3((TTransferRejectedException)value); + } + break; + } } @@ -14005,6 +14229,9 @@ public class MasterServer { case FAILURE2: return getFailure2(); + case FAILURE3: + return getFailure3(); + } throw new IllegalStateException(); } @@ -14022,6 +14249,8 @@ public class MasterServer { return isSetFailure(); case FAILURE2: return isSetFailure2(); + case FAILURE3: + return isSetFailure3(); } throw new IllegalStateException(); } @@ -14030,12 +14259,12 @@ public class MasterServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImage_result) - return this.equals((getImage_result)that); + if (that instanceof submitImage_result) + return this.equals((submitImage_result)that); return false; } - public boolean equals(getImage_result that) { + public boolean equals(submitImage_result that) { if (that == null) return false; @@ -14066,6 +14295,15 @@ public class MasterServer { return false; } + boolean this_present_failure3 = true && this.isSetFailure3(); + boolean that_present_failure3 = true && that.isSetFailure3(); + if (this_present_failure3 || that_present_failure3) { + if (!(this_present_failure3 && that_present_failure3)) + return false; + if (!this.failure3.equals(that.failure3)) + return false; + } + return true; } @@ -14075,7 +14313,7 @@ public class MasterServer { } @Override - public int compareTo(getImage_result other) { + public int compareTo(submitImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -14112,6 +14350,16 @@ public class MasterServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetFailure3()).compareTo(other.isSetFailure3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure3, other.failure3); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -14129,7 +14377,7 @@ public class MasterServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImage_result("); + StringBuilder sb = new StringBuilder("submitImage_result("); boolean first = true; sb.append("success:"); @@ -14155,6 +14403,14 @@ public class MasterServer { sb.append(this.failure2); } first = false; + if (!first) sb.append(", "); + sb.append("failure3:"); + if (this.failure3 == null) { + sb.append("null"); + } else { + sb.append(this.failure3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -14183,15 +14439,15 @@ public class MasterServer { } } - private static class getImage_resultStandardSchemeFactory implements SchemeFactory { - public getImage_resultStandardScheme getScheme() { - return new getImage_resultStandardScheme(); + private static class submitImage_resultStandardSchemeFactory implements SchemeFactory { + public submitImage_resultStandardScheme getScheme() { + return new submitImage_resultStandardScheme(); } } - private static class getImage_resultStandardScheme extends StandardScheme { + private static class submitImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, submitImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14228,6 +14484,15 @@ public class MasterServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // FAILURE3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure3 = new TTransferRejectedException(); + struct.failure3.read(iprot); + struct.setFailure3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14239,7 +14504,7 @@ public class MasterServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, submitImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14258,22 +14523,27 @@ public class MasterServer { struct.failure2.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - + if (struct.failure3 != null) { + oprot.writeFieldBegin(FAILURE3_FIELD_DESC); + struct.failure3.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + } - private static class getImage_resultTupleSchemeFactory implements SchemeFactory { - public getImage_resultTupleScheme getScheme() { - return new getImage_resultTupleScheme(); + private static class submitImage_resultTupleSchemeFactory implements SchemeFactory { + public submitImage_resultTupleScheme getScheme() { + return new submitImage_resultTupleScheme(); } } - private static class getImage_resultTupleScheme extends TupleScheme { + private static class submitImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -14285,7 +14555,10 @@ public class MasterServer { if (struct.isSetFailure2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetFailure3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -14295,12 +14568,15 @@ public class MasterServer { if (struct.isSetFailure2()) { struct.failure2.write(oprot); } + if (struct.isSetFailure3()) { + struct.failure3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, submitImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.success = new TransferInformation(); struct.success.read(iprot); @@ -14316,6 +14592,11 @@ public class MasterServer { struct.failure2.read(iprot); struct.setFailure2IsSet(true); } + if (incoming.get(3)) { + struct.failure3 = new TTransferRejectedException(); + struct.failure3.read(iprot); + struct.setFailure3IsSet(true); + } } } @@ -14942,58 +15223,971 @@ public class MasterServer { if (struct.isSetAddress()) { oprot.writeString(struct.address); } - if (struct.isSetModulus()) { - oprot.writeString(struct.modulus); - } - if (struct.isSetExponent()) { - oprot.writeString(struct.exponent); - } + if (struct.isSetModulus()) { + oprot.writeString(struct.modulus); + } + if (struct.isSetExponent()) { + oprot.writeString(struct.exponent); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.organizationId = iprot.readString(); + struct.setOrganizationIdIsSet(true); + } + if (incoming.get(1)) { + struct.address = iprot.readString(); + struct.setAddressIsSet(true); + } + if (incoming.get(2)) { + struct.modulus = iprot.readString(); + struct.setModulusIsSet(true); + } + if (incoming.get(3)) { + struct.exponent = iprot.readString(); + struct.setExponentIsSet(true); + } + } + } + + } + + public static class registerSatellite_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerSatellite_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new registerSatellite_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new registerSatellite_resultTupleSchemeFactory()); + } + + public boolean success; // required + public TInvocationException error; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + ERROR((short)1, "error"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // ERROR + return ERROR; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new 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) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_result.class, metaDataMap); + } + + public registerSatellite_result() { + } + + public registerSatellite_result( + boolean success, + TInvocationException error) + { + this(); + this.success = success; + setSuccessIsSet(true); + this.error = error; + } + + /** + * Performs a deep copy on other. + */ + public registerSatellite_result(registerSatellite_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + if (other.isSetError()) { + this.error = new TInvocationException(other.error); + } + } + + public registerSatellite_result deepCopy() { + return new registerSatellite_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + this.error = null; + } + + public boolean isSuccess() { + return this.success; + } + + public registerSatellite_result setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + return this; + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public TInvocationException getError() { + return this.error; + } + + public registerSatellite_result setError(TInvocationException error) { + this.error = error; + return this; + } + + public void unsetError() { + this.error = null; + } + + /** Returns true if field error is set (has been assigned a value) and false otherwise */ + public boolean isSetError() { + return this.error != null; + } + + public void setErrorIsSet(boolean value) { + if (!value) { + this.error = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + case ERROR: + if (value == null) { + unsetError(); + } else { + setError((TInvocationException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + case ERROR: + return getError(); + + } + throw new 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(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case ERROR: + return isSetError(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof registerSatellite_result) + return this.equals((registerSatellite_result)that); + return false; + } + + public boolean equals(registerSatellite_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_error = true && this.isSetError(); + boolean that_present_error = true && that.isSetError(); + if (this_present_error || that_present_error) { + if (!(this_present_error && that_present_error)) + return false; + if (!this.error.equals(that.error)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(registerSatellite_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + 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); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("registerSatellite_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); + sb.append("error:"); + if (this.error == null) { + sb.append("null"); + } else { + sb.append(this.error); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class registerSatellite_resultStandardSchemeFactory implements SchemeFactory { + public registerSatellite_resultStandardScheme getScheme() { + return new registerSatellite_resultStandardScheme(); + } + } + + private static class registerSatellite_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.error = new TInvocationException(); + struct.error.read(iprot); + struct.setErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, registerSatellite_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + if (struct.error != null) { + oprot.writeFieldBegin(ERROR_FIELD_DESC); + struct.error.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class registerSatellite_resultTupleSchemeFactory implements SchemeFactory { + public registerSatellite_resultTupleScheme getScheme() { + return new registerSatellite_resultTupleScheme(); + } + } + + private static class registerSatellite_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetError()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + if (struct.isSetError()) { + struct.error.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.error = new TInvocationException(); + struct.error.read(iprot); + struct.setErrorIsSet(true); + } + } + } + + } + + public static class updateSatelliteAddress_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSatelliteAddress_args"); + + private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.STRING, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new updateSatelliteAddress_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateSatelliteAddress_argsTupleSchemeFactory()); + } + + public String serverSessionId; // required + public String address; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SERVER_SESSION_ID((short)1, "serverSessionId"), + ADDRESS((short)2, "address"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // SERVER_SESSION_ID + return SERVER_SESSION_ID; + case 2: // ADDRESS + return ADDRESS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new 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) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatelliteAddress_args.class, metaDataMap); + } + + public updateSatelliteAddress_args() { + } + + public updateSatelliteAddress_args( + String serverSessionId, + String address) + { + this(); + this.serverSessionId = serverSessionId; + this.address = address; + } + + /** + * Performs a deep copy on other. + */ + public updateSatelliteAddress_args(updateSatelliteAddress_args other) { + if (other.isSetServerSessionId()) { + this.serverSessionId = other.serverSessionId; + } + if (other.isSetAddress()) { + this.address = other.address; + } + } + + public updateSatelliteAddress_args deepCopy() { + return new updateSatelliteAddress_args(this); + } + + @Override + public void clear() { + this.serverSessionId = null; + this.address = null; + } + + public String getServerSessionId() { + return this.serverSessionId; + } + + public updateSatelliteAddress_args setServerSessionId(String serverSessionId) { + this.serverSessionId = serverSessionId; + return this; + } + + public void unsetServerSessionId() { + this.serverSessionId = null; + } + + /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ + public boolean isSetServerSessionId() { + return this.serverSessionId != null; + } + + public void setServerSessionIdIsSet(boolean value) { + if (!value) { + this.serverSessionId = null; + } + } + + public String getAddress() { + return this.address; + } + + public updateSatelliteAddress_args setAddress(String address) { + this.address = address; + return this; + } + + public void unsetAddress() { + this.address = null; + } + + /** Returns true if field address is set (has been assigned a value) and false otherwise */ + public boolean isSetAddress() { + return this.address != null; + } + + public void setAddressIsSet(boolean value) { + if (!value) { + this.address = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SERVER_SESSION_ID: + if (value == null) { + unsetServerSessionId(); + } else { + setServerSessionId((String)value); + } + break; + + case ADDRESS: + if (value == null) { + unsetAddress(); + } else { + setAddress((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SERVER_SESSION_ID: + return getServerSessionId(); + + case ADDRESS: + return getAddress(); + + } + throw new 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(); + } + + switch (field) { + case SERVER_SESSION_ID: + return isSetServerSessionId(); + case ADDRESS: + return isSetAddress(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof updateSatelliteAddress_args) + return this.equals((updateSatelliteAddress_args)that); + return false; + } + + public boolean equals(updateSatelliteAddress_args that) { + if (that == null) + return false; + + boolean this_present_serverSessionId = true && this.isSetServerSessionId(); + boolean that_present_serverSessionId = true && that.isSetServerSessionId(); + if (this_present_serverSessionId || that_present_serverSessionId) { + if (!(this_present_serverSessionId && that_present_serverSessionId)) + return false; + if (!this.serverSessionId.equals(that.serverSessionId)) + return false; + } + + boolean this_present_address = true && this.isSetAddress(); + boolean that_present_address = true && that.isSetAddress(); + if (this_present_address || that_present_address) { + if (!(this_present_address && that_present_address)) + return false; + if (!this.address.equals(that.address)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + return 0; + } + + @Override + public int compareTo(updateSatelliteAddress_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerSessionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, other.serverSessionId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAddress()).compareTo(other.isSetAddress()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAddress()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address, other.address); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + 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); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("updateSatelliteAddress_args("); + boolean first = true; + + sb.append("serverSessionId:"); + if (this.serverSessionId == null) { + sb.append("null"); + } else { + sb.append(this.serverSessionId); + } + first = false; + if (!first) sb.append(", "); + sb.append("address:"); + if (this.address == null) { + sb.append("null"); + } else { + sb.append(this.address); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class updateSatelliteAddress_argsStandardSchemeFactory implements SchemeFactory { + public updateSatelliteAddress_argsStandardScheme getScheme() { + return new updateSatelliteAddress_argsStandardScheme(); + } + } + + private static class updateSatelliteAddress_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // SERVER_SESSION_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.serverSessionId = iprot.readString(); + struct.setServerSessionIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ADDRESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.address = iprot.readString(); + struct.setAddressIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + + // check for required fields of primitive type, which can't be checked in the validate method + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.serverSessionId != null) { + oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); + oprot.writeString(struct.serverSessionId); + oprot.writeFieldEnd(); + } + if (struct.address != null) { + oprot.writeFieldBegin(ADDRESS_FIELD_DESC); + oprot.writeString(struct.address); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class updateSatelliteAddress_argsTupleSchemeFactory implements SchemeFactory { + public updateSatelliteAddress_argsTupleScheme getScheme() { + return new updateSatelliteAddress_argsTupleScheme(); + } + } + + private static class updateSatelliteAddress_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetServerSessionId()) { + optionals.set(0); + } + if (struct.isSetAddress()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetServerSessionId()) { + oprot.writeString(struct.serverSessionId); + } + if (struct.isSetAddress()) { + oprot.writeString(struct.address); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.organizationId = iprot.readString(); - struct.setOrganizationIdIsSet(true); + struct.serverSessionId = iprot.readString(); + struct.setServerSessionIdIsSet(true); } if (incoming.get(1)) { struct.address = iprot.readString(); struct.setAddressIsSet(true); } - if (incoming.get(2)) { - struct.modulus = iprot.readString(); - struct.setModulusIsSet(true); - } - if (incoming.get(3)) { - struct.exponent = iprot.readString(); - struct.setExponentIsSet(true); - } } } } - public static class registerSatellite_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerSatellite_result"); + public static class updateSatelliteAddress_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSatelliteAddress_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); - private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new registerSatellite_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new registerSatellite_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateSatelliteAddress_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateSatelliteAddress_resultTupleSchemeFactory()); } public boolean success; // required + public TAuthorizationException failure; // required public TInvocationException error; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - ERROR((short)1, "error"); + FAILURE((short)1, "failure"), + ERROR((short)2, "error"); private static final Map byName = new HashMap(); @@ -15010,7 +16204,9 @@ public class MasterServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // ERROR + case 1: // FAILURE + return FAILURE; + case 2: // ERROR return ERROR; default: return null; @@ -15059,44 +16255,52 @@ public class MasterServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerSatellite_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatelliteAddress_result.class, metaDataMap); } - public registerSatellite_result() { + public updateSatelliteAddress_result() { } - public registerSatellite_result( + public updateSatelliteAddress_result( boolean success, + TAuthorizationException failure, TInvocationException error) { this(); this.success = success; setSuccessIsSet(true); + this.failure = failure; this.error = error; } /** * Performs a deep copy on other. */ - public registerSatellite_result(registerSatellite_result other) { + public updateSatelliteAddress_result(updateSatelliteAddress_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; + if (other.isSetFailure()) { + this.failure = new TAuthorizationException(other.failure); + } if (other.isSetError()) { this.error = new TInvocationException(other.error); } } - public registerSatellite_result deepCopy() { - return new registerSatellite_result(this); + public updateSatelliteAddress_result deepCopy() { + return new updateSatelliteAddress_result(this); } @Override public void clear() { setSuccessIsSet(false); this.success = false; + this.failure = null; this.error = null; } @@ -15104,7 +16308,7 @@ public class MasterServer { return this.success; } - public registerSatellite_result setSuccess(boolean success) { + public updateSatelliteAddress_result setSuccess(boolean success) { this.success = success; setSuccessIsSet(true); return this; @@ -15123,11 +16327,35 @@ public class MasterServer { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } + public TAuthorizationException getFailure() { + return this.failure; + } + + public updateSatelliteAddress_result setFailure(TAuthorizationException failure) { + this.failure = failure; + return this; + } + + public void unsetFailure() { + this.failure = null; + } + + /** Returns true if field failure is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure() { + return this.failure != null; + } + + public void setFailureIsSet(boolean value) { + if (!value) { + this.failure = null; + } + } + public TInvocationException getError() { return this.error; } - public registerSatellite_result setError(TInvocationException error) { + public updateSatelliteAddress_result setError(TInvocationException error) { this.error = error; return this; } @@ -15157,6 +16385,14 @@ public class MasterServer { } break; + case FAILURE: + if (value == null) { + unsetFailure(); + } else { + setFailure((TAuthorizationException)value); + } + break; + case ERROR: if (value == null) { unsetError(); @@ -15173,6 +16409,9 @@ public class MasterServer { case SUCCESS: return Boolean.valueOf(isSuccess()); + case FAILURE: + return getFailure(); + case ERROR: return getError(); @@ -15189,6 +16428,8 @@ public class MasterServer { switch (field) { case SUCCESS: return isSetSuccess(); + case FAILURE: + return isSetFailure(); case ERROR: return isSetError(); } @@ -15199,12 +16440,12 @@ public class MasterServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof registerSatellite_result) - return this.equals((registerSatellite_result)that); + if (that instanceof updateSatelliteAddress_result) + return this.equals((updateSatelliteAddress_result)that); return false; } - public boolean equals(registerSatellite_result that) { + public boolean equals(updateSatelliteAddress_result that) { if (that == null) return false; @@ -15217,6 +16458,15 @@ public class MasterServer { return false; } + boolean this_present_failure = true && this.isSetFailure(); + boolean that_present_failure = true && that.isSetFailure(); + if (this_present_failure || that_present_failure) { + if (!(this_present_failure && that_present_failure)) + return false; + if (!this.failure.equals(that.failure)) + return false; + } + boolean this_present_error = true && this.isSetError(); boolean that_present_error = true && that.isSetError(); if (this_present_error || that_present_error) { @@ -15235,7 +16485,7 @@ public class MasterServer { } @Override - public int compareTo(registerSatellite_result other) { + public int compareTo(updateSatelliteAddress_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15252,6 +16502,16 @@ public class MasterServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); if (lastComparison != 0) { return lastComparison; @@ -15279,13 +16539,21 @@ public class MasterServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("registerSatellite_result("); + StringBuilder sb = new StringBuilder("updateSatelliteAddress_result("); boolean first = true; sb.append("success:"); sb.append(this.success); first = false; if (!first) sb.append(", "); + sb.append("failure:"); + if (this.failure == null) { + sb.append("null"); + } else { + sb.append(this.failure); + } + first = false; + if (!first) sb.append(", "); sb.append("error:"); if (this.error == null) { sb.append("null"); @@ -15320,15 +16588,15 @@ public class MasterServer { } } - private static class registerSatellite_resultStandardSchemeFactory implements SchemeFactory { - public registerSatellite_resultStandardScheme getScheme() { - return new registerSatellite_resultStandardScheme(); + private static class updateSatelliteAddress_resultStandardSchemeFactory implements SchemeFactory { + public updateSatelliteAddress_resultStandardScheme getScheme() { + return new updateSatelliteAddress_resultStandardScheme(); } } - private static class registerSatellite_resultStandardScheme extends StandardScheme { + private static class updateSatelliteAddress_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, registerSatellite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15346,7 +16614,16 @@ public class MasterServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // ERROR + case 1: // FAILURE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.failure = new TAuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.error = new TInvocationException(); struct.error.read(iprot); @@ -15366,7 +16643,7 @@ public class MasterServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, registerSatellite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -15375,6 +16652,11 @@ public class MasterServer { oprot.writeBool(struct.success); oprot.writeFieldEnd(); } + if (struct.failure != null) { + oprot.writeFieldBegin(FAILURE_FIELD_DESC); + struct.failure.write(oprot); + oprot.writeFieldEnd(); + } if (struct.error != null) { oprot.writeFieldBegin(ERROR_FIELD_DESC); struct.error.write(oprot); @@ -15386,42 +16668,53 @@ public class MasterServer { } - private static class registerSatellite_resultTupleSchemeFactory implements SchemeFactory { - public registerSatellite_resultTupleScheme getScheme() { - return new registerSatellite_resultTupleScheme(); + private static class updateSatelliteAddress_resultTupleSchemeFactory implements SchemeFactory { + public updateSatelliteAddress_resultTupleScheme getScheme() { + return new updateSatelliteAddress_resultTupleScheme(); } } - private static class registerSatellite_resultTupleScheme extends TupleScheme { + private static class updateSatelliteAddress_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetError()) { + if (struct.isSetFailure()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } + if (struct.isSetFailure()) { + struct.failure.write(oprot); + } if (struct.isSetError()) { struct.error.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, registerSatellite_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { + struct.failure = new TAuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } + if (incoming.get(2)) { struct.error = new TInvocationException(); struct.error.read(iprot); struct.setErrorIsSet(true); @@ -15431,25 +16724,25 @@ public class MasterServer { } - public static class updateSatelliteAddress_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSatelliteAddress_args"); + public static class downloadImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("downloadImage_args"); - private static final org.apache.thrift.protocol.TField SERVER_SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("serverSessionId", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateSatelliteAddress_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateSatelliteAddress_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new downloadImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new downloadImage_argsTupleSchemeFactory()); } - public String serverSessionId; // required - public String address; // required + public String sessionId; // required + public String imageVersionId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SERVER_SESSION_ID((short)1, "serverSessionId"), - ADDRESS((short)2, "address"); + SESSION_ID((short)2, "sessionId"), + IMAGE_VERSION_ID((short)1, "imageVersionId"); private static final Map byName = new HashMap(); @@ -15464,10 +16757,10 @@ public class MasterServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // SERVER_SESSION_ID - return SERVER_SESSION_ID; - case 2: // ADDRESS - return ADDRESS; + case 2: // SESSION_ID + return SESSION_ID; + case 1: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -15511,111 +16804,111 @@ public class MasterServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SERVER_SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("serverSessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatelliteAddress_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(downloadImage_args.class, metaDataMap); } - public updateSatelliteAddress_args() { + public downloadImage_args() { } - public updateSatelliteAddress_args( - String serverSessionId, - String address) + public downloadImage_args( + String sessionId, + String imageVersionId) { this(); - this.serverSessionId = serverSessionId; - this.address = address; + this.sessionId = sessionId; + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public updateSatelliteAddress_args(updateSatelliteAddress_args other) { - if (other.isSetServerSessionId()) { - this.serverSessionId = other.serverSessionId; + public downloadImage_args(downloadImage_args other) { + if (other.isSetSessionId()) { + this.sessionId = other.sessionId; } - if (other.isSetAddress()) { - this.address = other.address; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } } - public updateSatelliteAddress_args deepCopy() { - return new updateSatelliteAddress_args(this); + public downloadImage_args deepCopy() { + return new downloadImage_args(this); } @Override public void clear() { - this.serverSessionId = null; - this.address = null; + this.sessionId = null; + this.imageVersionId = null; } - public String getServerSessionId() { - return this.serverSessionId; + public String getSessionId() { + return this.sessionId; } - public updateSatelliteAddress_args setServerSessionId(String serverSessionId) { - this.serverSessionId = serverSessionId; + public downloadImage_args setSessionId(String sessionId) { + this.sessionId = sessionId; return this; } - public void unsetServerSessionId() { - this.serverSessionId = null; + public void unsetSessionId() { + this.sessionId = null; } - /** Returns true if field serverSessionId is set (has been assigned a value) and false otherwise */ - public boolean isSetServerSessionId() { - return this.serverSessionId != null; + /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */ + public boolean isSetSessionId() { + return this.sessionId != null; } - public void setServerSessionIdIsSet(boolean value) { + public void setSessionIdIsSet(boolean value) { if (!value) { - this.serverSessionId = null; + this.sessionId = null; } } - public String getAddress() { - return this.address; + public String getImageVersionId() { + return this.imageVersionId; } - public updateSatelliteAddress_args setAddress(String address) { - this.address = address; + public downloadImage_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetAddress() { - this.address = null; + public void unsetImageVersionId() { + this.imageVersionId = null; } - /** Returns true if field address is set (has been assigned a value) and false otherwise */ - public boolean isSetAddress() { - return this.address != null; + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setAddressIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.address = null; + this.imageVersionId = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SERVER_SESSION_ID: + case SESSION_ID: if (value == null) { - unsetServerSessionId(); + unsetSessionId(); } else { - setServerSessionId((String)value); + setSessionId((String)value); } break; - case ADDRESS: + case IMAGE_VERSION_ID: if (value == null) { - unsetAddress(); + unsetImageVersionId(); } else { - setAddress((String)value); + setImageVersionId((String)value); } break; @@ -15624,11 +16917,11 @@ public class MasterServer { public Object getFieldValue(_Fields field) { switch (field) { - case SERVER_SESSION_ID: - return getServerSessionId(); + case SESSION_ID: + return getSessionId(); - case ADDRESS: - return getAddress(); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -15641,10 +16934,10 @@ public class MasterServer { } switch (field) { - case SERVER_SESSION_ID: - return isSetServerSessionId(); - case ADDRESS: - return isSetAddress(); + case SESSION_ID: + return isSetSessionId(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -15653,30 +16946,30 @@ public class MasterServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateSatelliteAddress_args) - return this.equals((updateSatelliteAddress_args)that); + if (that instanceof downloadImage_args) + return this.equals((downloadImage_args)that); return false; } - public boolean equals(updateSatelliteAddress_args that) { + public boolean equals(downloadImage_args that) { if (that == null) return false; - boolean this_present_serverSessionId = true && this.isSetServerSessionId(); - boolean that_present_serverSessionId = true && that.isSetServerSessionId(); - if (this_present_serverSessionId || that_present_serverSessionId) { - if (!(this_present_serverSessionId && that_present_serverSessionId)) + boolean this_present_sessionId = true && this.isSetSessionId(); + boolean that_present_sessionId = true && that.isSetSessionId(); + if (this_present_sessionId || that_present_sessionId) { + if (!(this_present_sessionId && that_present_sessionId)) return false; - if (!this.serverSessionId.equals(that.serverSessionId)) + if (!this.sessionId.equals(that.sessionId)) return false; } - boolean this_present_address = true && this.isSetAddress(); - boolean that_present_address = true && that.isSetAddress(); - if (this_present_address || that_present_address) { - if (!(this_present_address && that_present_address)) + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) return false; - if (!this.address.equals(that.address)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -15689,29 +16982,29 @@ public class MasterServer { } @Override - public int compareTo(updateSatelliteAddress_args other) { + public int compareTo(downloadImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetServerSessionId()).compareTo(other.isSetServerSessionId()); + lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverSessionId, other.serverSessionId); + if (isSetSessionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAddress()).compareTo(other.isSetAddress()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetAddress()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address, other.address); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -15733,22 +17026,22 @@ public class MasterServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateSatelliteAddress_args("); + StringBuilder sb = new StringBuilder("downloadImage_args("); boolean first = true; - sb.append("serverSessionId:"); - if (this.serverSessionId == null) { + sb.append("sessionId:"); + if (this.sessionId == null) { sb.append("null"); } else { - sb.append(this.serverSessionId); + sb.append(this.sessionId); } first = false; if (!first) sb.append(", "); - sb.append("address:"); - if (this.address == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.address); + sb.append(this.imageVersionId); } first = false; sb.append(")"); @@ -15776,15 +17069,15 @@ public class MasterServer { } } - private static class updateSatelliteAddress_argsStandardSchemeFactory implements SchemeFactory { - public updateSatelliteAddress_argsStandardScheme getScheme() { - return new updateSatelliteAddress_argsStandardScheme(); + private static class downloadImage_argsStandardSchemeFactory implements SchemeFactory { + public downloadImage_argsStandardScheme getScheme() { + return new downloadImage_argsStandardScheme(); } } - private static class updateSatelliteAddress_argsStandardScheme extends StandardScheme { + private static class downloadImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, downloadImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15794,18 +17087,18 @@ public class MasterServer { break; } switch (schemeField.id) { - case 1: // SERVER_SESSION_ID + case 2: // SESSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.serverSessionId = iprot.readString(); - struct.setServerSessionIdIsSet(true); + struct.sessionId = iprot.readString(); + struct.setSessionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ADDRESS + case 1: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.address = iprot.readString(); - struct.setAddressIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15821,18 +17114,18 @@ public class MasterServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, downloadImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.serverSessionId != null) { - oprot.writeFieldBegin(SERVER_SESSION_ID_FIELD_DESC); - oprot.writeString(struct.serverSessionId); + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } - if (struct.address != null) { - oprot.writeFieldBegin(ADDRESS_FIELD_DESC); - oprot.writeString(struct.address); + if (struct.sessionId != null) { + oprot.writeFieldBegin(SESSION_ID_FIELD_DESC); + oprot.writeString(struct.sessionId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -15841,72 +17134,75 @@ public class MasterServer { } - private static class updateSatelliteAddress_argsTupleSchemeFactory implements SchemeFactory { - public updateSatelliteAddress_argsTupleScheme getScheme() { - return new updateSatelliteAddress_argsTupleScheme(); + private static class downloadImage_argsTupleSchemeFactory implements SchemeFactory { + public downloadImage_argsTupleScheme getScheme() { + return new downloadImage_argsTupleScheme(); } } - private static class updateSatelliteAddress_argsTupleScheme extends TupleScheme { + private static class downloadImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, downloadImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetServerSessionId()) { + if (struct.isSetSessionId()) { optionals.set(0); } - if (struct.isSetAddress()) { + if (struct.isSetImageVersionId()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); - if (struct.isSetServerSessionId()) { - oprot.writeString(struct.serverSessionId); + if (struct.isSetSessionId()) { + oprot.writeString(struct.sessionId); } - if (struct.isSetAddress()) { - oprot.writeString(struct.address); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, downloadImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.serverSessionId = iprot.readString(); - struct.setServerSessionIdIsSet(true); + struct.sessionId = iprot.readString(); + struct.setSessionIdIsSet(true); } if (incoming.get(1)) { - struct.address = iprot.readString(); - struct.setAddressIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } } } } - public static class updateSatelliteAddress_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSatelliteAddress_result"); + public static class downloadImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("downloadImage_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField FAILURE2_FIELD_DESC = new org.apache.thrift.protocol.TField("failure2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField F3_FIELD_DESC = new org.apache.thrift.protocol.TField("f3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateSatelliteAddress_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateSatelliteAddress_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new downloadImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new downloadImage_resultTupleSchemeFactory()); } - public boolean success; // required + public TransferInformation success; // required public TAuthorizationException failure; // required - public TInvocationException error; // required + public TInvocationException failure2; // required + public TNotFoundException f3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), FAILURE((short)1, "failure"), - ERROR((short)2, "error"); + FAILURE2((short)2, "failure2"), + F3((short)3, "f3"); private static final Map byName = new HashMap(); @@ -15925,8 +17221,10 @@ public class MasterServer { return SUCCESS; case 1: // FAILURE return FAILURE; - case 2: // ERROR - return ERROR; + case 2: // FAILURE2 + return FAILURE2; + case 3: // F3 + return F3; default: return null; } @@ -15967,130 +17265,160 @@ public class MasterServer { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferInformation.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.FAILURE2, new org.apache.thrift.meta_data.FieldMetaData("failure2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.F3, new org.apache.thrift.meta_data.FieldMetaData("f3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSatelliteAddress_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(downloadImage_result.class, metaDataMap); } - public updateSatelliteAddress_result() { + public downloadImage_result() { } - public updateSatelliteAddress_result( - boolean success, + public downloadImage_result( + TransferInformation success, TAuthorizationException failure, - TInvocationException error) + TInvocationException failure2, + TNotFoundException f3) { this(); this.success = success; - setSuccessIsSet(true); this.failure = failure; - this.error = error; + this.failure2 = failure2; + this.f3 = f3; } /** * Performs a deep copy on other. */ - public updateSatelliteAddress_result(updateSatelliteAddress_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public downloadImage_result(downloadImage_result other) { + if (other.isSetSuccess()) { + this.success = new TransferInformation(other.success); + } if (other.isSetFailure()) { this.failure = new TAuthorizationException(other.failure); } - if (other.isSetError()) { - this.error = new TInvocationException(other.error); + if (other.isSetFailure2()) { + this.failure2 = new TInvocationException(other.failure2); + } + if (other.isSetF3()) { + this.f3 = new TNotFoundException(other.f3); } } - public updateSatelliteAddress_result deepCopy() { - return new updateSatelliteAddress_result(this); + public downloadImage_result deepCopy() { + return new downloadImage_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.failure = null; - this.error = null; + this.failure2 = null; + this.f3 = null; } - public boolean isSuccess() { + public TransferInformation getSuccess() { return this.success; } - public updateSatelliteAddress_result setSuccess(boolean success) { + public downloadImage_result setSuccess(TransferInformation success) { this.success = success; - setSuccessIsSet(true); return this; } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public TAuthorizationException getFailure() { return this.failure; } - public updateSatelliteAddress_result setFailure(TAuthorizationException failure) { - this.failure = failure; + public downloadImage_result setFailure(TAuthorizationException failure) { + this.failure = failure; + return this; + } + + public void unsetFailure() { + this.failure = null; + } + + /** Returns true if field failure is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure() { + return this.failure != null; + } + + public void setFailureIsSet(boolean value) { + if (!value) { + this.failure = null; + } + } + + public TInvocationException getFailure2() { + return this.failure2; + } + + public downloadImage_result setFailure2(TInvocationException failure2) { + this.failure2 = failure2; return this; } - public void unsetFailure() { - this.failure = null; + public void unsetFailure2() { + this.failure2 = null; } - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; + /** Returns true if field failure2 is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure2() { + return this.failure2 != null; } - public void setFailureIsSet(boolean value) { + public void setFailure2IsSet(boolean value) { if (!value) { - this.failure = null; + this.failure2 = null; } } - public TInvocationException getError() { - return this.error; + public TNotFoundException getF3() { + return this.f3; } - public updateSatelliteAddress_result setError(TInvocationException error) { - this.error = error; + public downloadImage_result setF3(TNotFoundException f3) { + this.f3 = f3; return this; } - public void unsetError() { - this.error = null; + public void unsetF3() { + this.f3 = null; } - /** Returns true if field error is set (has been assigned a value) and false otherwise */ - public boolean isSetError() { - return this.error != null; + /** Returns true if field f3 is set (has been assigned a value) and false otherwise */ + public boolean isSetF3() { + return this.f3 != null; } - public void setErrorIsSet(boolean value) { + public void setF3IsSet(boolean value) { if (!value) { - this.error = null; + this.f3 = null; } } @@ -16100,7 +17428,7 @@ public class MasterServer { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((TransferInformation)value); } break; @@ -16112,11 +17440,19 @@ public class MasterServer { } break; - case ERROR: + case FAILURE2: if (value == null) { - unsetError(); + unsetFailure2(); } else { - setError((TInvocationException)value); + setFailure2((TInvocationException)value); + } + break; + + case F3: + if (value == null) { + unsetF3(); + } else { + setF3((TNotFoundException)value); } break; @@ -16126,13 +17462,16 @@ public class MasterServer { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case FAILURE: return getFailure(); - case ERROR: - return getError(); + case FAILURE2: + return getFailure2(); + + case F3: + return getF3(); } throw new IllegalStateException(); @@ -16149,8 +17488,10 @@ public class MasterServer { return isSetSuccess(); case FAILURE: return isSetFailure(); - case ERROR: - return isSetError(); + case FAILURE2: + return isSetFailure2(); + case F3: + return isSetF3(); } throw new IllegalStateException(); } @@ -16159,21 +17500,21 @@ public class MasterServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateSatelliteAddress_result) - return this.equals((updateSatelliteAddress_result)that); + if (that instanceof downloadImage_result) + return this.equals((downloadImage_result)that); return false; } - public boolean equals(updateSatelliteAddress_result that) { + public boolean equals(downloadImage_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -16186,12 +17527,21 @@ public class MasterServer { return false; } - boolean this_present_error = true && this.isSetError(); - boolean that_present_error = true && that.isSetError(); - if (this_present_error || that_present_error) { - if (!(this_present_error && that_present_error)) + boolean this_present_failure2 = true && this.isSetFailure2(); + boolean that_present_failure2 = true && that.isSetFailure2(); + if (this_present_failure2 || that_present_failure2) { + if (!(this_present_failure2 && that_present_failure2)) return false; - if (!this.error.equals(that.error)) + if (!this.failure2.equals(that.failure2)) + return false; + } + + boolean this_present_f3 = true && this.isSetF3(); + boolean that_present_f3 = true && that.isSetF3(); + if (this_present_f3 || that_present_f3) { + if (!(this_present_f3 && that_present_f3)) + return false; + if (!this.f3.equals(that.f3)) return false; } @@ -16204,7 +17554,7 @@ public class MasterServer { } @Override - public int compareTo(updateSatelliteAddress_result other) { + public int compareTo(downloadImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16231,12 +17581,22 @@ public class MasterServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = Boolean.valueOf(isSetFailure2()).compareTo(other.isSetFailure2()); if (lastComparison != 0) { return lastComparison; } - if (isSetError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error); + if (isSetFailure2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure2, other.failure2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetF3()).compareTo(other.isSetF3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetF3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.f3, other.f3); if (lastComparison != 0) { return lastComparison; } @@ -16258,11 +17618,15 @@ public class MasterServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateSatelliteAddress_result("); + StringBuilder sb = new StringBuilder("downloadImage_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("failure:"); @@ -16273,11 +17637,19 @@ public class MasterServer { } first = false; if (!first) sb.append(", "); - sb.append("error:"); - if (this.error == null) { + sb.append("failure2:"); + if (this.failure2 == null) { sb.append("null"); } else { - sb.append(this.error); + sb.append(this.failure2); + } + first = false; + if (!first) sb.append(", "); + sb.append("f3:"); + if (this.f3 == null) { + sb.append("null"); + } else { + sb.append(this.f3); } first = false; sb.append(")"); @@ -16287,6 +17659,9 @@ public class MasterServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -16299,23 +17674,21 @@ public class MasterServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class updateSatelliteAddress_resultStandardSchemeFactory implements SchemeFactory { - public updateSatelliteAddress_resultStandardScheme getScheme() { - return new updateSatelliteAddress_resultStandardScheme(); + private static class downloadImage_resultStandardSchemeFactory implements SchemeFactory { + public downloadImage_resultStandardScheme getScheme() { + return new downloadImage_resultStandardScheme(); } } - private static class updateSatelliteAddress_resultStandardScheme extends StandardScheme { + private static class downloadImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, downloadImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16326,8 +17699,9 @@ public class MasterServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new TransferInformation(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -16342,11 +17716,20 @@ public class MasterServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ERROR + case 2: // FAILURE2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.error = new TInvocationException(); - struct.error.read(iprot); - struct.setErrorIsSet(true); + struct.failure2 = new TInvocationException(); + struct.failure2.read(iprot); + struct.setFailure2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // F3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.f3 = new TNotFoundException(); + struct.f3.read(iprot); + struct.setF3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16362,13 +17745,13 @@ public class MasterServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, downloadImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.failure != null) { @@ -16376,9 +17759,14 @@ public class MasterServer { struct.failure.write(oprot); oprot.writeFieldEnd(); } - if (struct.error != null) { - oprot.writeFieldBegin(ERROR_FIELD_DESC); - struct.error.write(oprot); + if (struct.failure2 != null) { + oprot.writeFieldBegin(FAILURE2_FIELD_DESC); + struct.failure2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.f3 != null) { + oprot.writeFieldBegin(F3_FIELD_DESC); + struct.f3.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -16387,16 +17775,16 @@ public class MasterServer { } - private static class updateSatelliteAddress_resultTupleSchemeFactory implements SchemeFactory { - public updateSatelliteAddress_resultTupleScheme getScheme() { - return new updateSatelliteAddress_resultTupleScheme(); + private static class downloadImage_resultTupleSchemeFactory implements SchemeFactory { + public downloadImage_resultTupleScheme getScheme() { + return new downloadImage_resultTupleScheme(); } } - private static class updateSatelliteAddress_resultTupleScheme extends TupleScheme { + private static class downloadImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, downloadImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -16405,27 +17793,34 @@ public class MasterServer { if (struct.isSetFailure()) { optionals.set(1); } - if (struct.isSetError()) { + if (struct.isSetFailure2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetF3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetFailure()) { struct.failure.write(oprot); } - if (struct.isSetError()) { - struct.error.write(oprot); + if (struct.isSetFailure2()) { + struct.failure2.write(oprot); + } + if (struct.isSetF3()) { + struct.f3.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateSatelliteAddress_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, downloadImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readBool(); + struct.success = new TransferInformation(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -16434,9 +17829,14 @@ public class MasterServer { struct.setFailureIsSet(true); } if (incoming.get(2)) { - struct.error = new TInvocationException(); - struct.error.read(iprot); - struct.setErrorIsSet(true); + struct.failure2 = new TInvocationException(); + struct.failure2.read(iprot); + struct.setFailure2IsSet(true); + } + if (incoming.get(3)) { + struct.f3 = new TNotFoundException(); + struct.f3.read(iprot); + struct.setF3IsSet(true); } } } @@ -17075,14 +18475,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list274 = iprot.readListBegin(); - struct.success = new ArrayList(_list274.size); - for (int _i275 = 0; _i275 < _list274.size; ++_i275) + org.apache.thrift.protocol.TList _list290 = iprot.readListBegin(); + struct.success = new ArrayList(_list290.size); + for (int _i291 = 0; _i291 < _list290.size; ++_i291) { - Organization _elem276; - _elem276 = new Organization(); - _elem276.read(iprot); - struct.success.add(_elem276); + Organization _elem292; + _elem292 = new Organization(); + _elem292.read(iprot); + struct.success.add(_elem292); } iprot.readListEnd(); } @@ -17119,9 +18519,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Organization _iter277 : struct.success) + for (Organization _iter293 : struct.success) { - _iter277.write(oprot); + _iter293.write(oprot); } oprot.writeListEnd(); } @@ -17160,9 +18560,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Organization _iter278 : struct.success) + for (Organization _iter294 : struct.success) { - _iter278.write(oprot); + _iter294.write(oprot); } } } @@ -17177,14 +18577,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list279.size); - for (int _i280 = 0; _i280 < _list279.size; ++_i280) + org.apache.thrift.protocol.TList _list295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list295.size); + for (int _i296 = 0; _i296 < _list295.size; ++_i296) { - Organization _elem281; - _elem281 = new Organization(); - _elem281.read(iprot); - struct.success.add(_elem281); + Organization _elem297; + _elem297 = new Organization(); + _elem297.read(iprot); + struct.success.add(_elem297); } } struct.setSuccessIsSet(true); @@ -17831,14 +19231,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list282 = iprot.readListBegin(); - struct.success = new ArrayList(_list282.size); - for (int _i283 = 0; _i283 < _list282.size; ++_i283) + org.apache.thrift.protocol.TList _list298 = iprot.readListBegin(); + struct.success = new ArrayList(_list298.size); + for (int _i299 = 0; _i299 < _list298.size; ++_i299) { - OperatingSystem _elem284; - _elem284 = new OperatingSystem(); - _elem284.read(iprot); - struct.success.add(_elem284); + OperatingSystem _elem300; + _elem300 = new OperatingSystem(); + _elem300.read(iprot); + struct.success.add(_elem300); } iprot.readListEnd(); } @@ -17875,9 +19275,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (OperatingSystem _iter285 : struct.success) + for (OperatingSystem _iter301 : struct.success) { - _iter285.write(oprot); + _iter301.write(oprot); } oprot.writeListEnd(); } @@ -17916,9 +19316,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter286 : struct.success) + for (OperatingSystem _iter302 : struct.success) { - _iter286.write(oprot); + _iter302.write(oprot); } } } @@ -17933,14 +19333,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list287.size); - for (int _i288 = 0; _i288 < _list287.size; ++_i288) + org.apache.thrift.protocol.TList _list303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list303.size); + for (int _i304 = 0; _i304 < _list303.size; ++_i304) { - OperatingSystem _elem289; - _elem289 = new OperatingSystem(); - _elem289.read(iprot); - struct.success.add(_elem289); + OperatingSystem _elem305; + _elem305 = new OperatingSystem(); + _elem305.read(iprot); + struct.success.add(_elem305); } } struct.setSuccessIsSet(true); @@ -18587,14 +19987,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list290 = iprot.readListBegin(); - struct.success = new ArrayList(_list290.size); - for (int _i291 = 0; _i291 < _list290.size; ++_i291) + org.apache.thrift.protocol.TList _list306 = iprot.readListBegin(); + struct.success = new ArrayList(_list306.size); + for (int _i307 = 0; _i307 < _list306.size; ++_i307) { - Virtualizer _elem292; - _elem292 = new Virtualizer(); - _elem292.read(iprot); - struct.success.add(_elem292); + Virtualizer _elem308; + _elem308 = new Virtualizer(); + _elem308.read(iprot); + struct.success.add(_elem308); } iprot.readListEnd(); } @@ -18631,9 +20031,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Virtualizer _iter293 : struct.success) + for (Virtualizer _iter309 : struct.success) { - _iter293.write(oprot); + _iter309.write(oprot); } oprot.writeListEnd(); } @@ -18672,9 +20072,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter294 : struct.success) + for (Virtualizer _iter310 : struct.success) { - _iter294.write(oprot); + _iter310.write(oprot); } } } @@ -18689,14 +20089,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list295.size); - for (int _i296 = 0; _i296 < _list295.size; ++_i296) + org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list311.size); + for (int _i312 = 0; _i312 < _list311.size; ++_i312) { - Virtualizer _elem297; - _elem297 = new Virtualizer(); - _elem297.read(iprot); - struct.success.add(_elem297); + Virtualizer _elem313; + _elem313 = new Virtualizer(); + _elem313.read(iprot); + struct.success.add(_elem313); } } struct.setSuccessIsSet(true); @@ -19449,14 +20849,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list298 = iprot.readListBegin(); - struct.success = new ArrayList(_list298.size); - for (int _i299 = 0; _i299 < _list298.size; ++_i299) + org.apache.thrift.protocol.TList _list314 = iprot.readListBegin(); + struct.success = new ArrayList(_list314.size); + for (int _i315 = 0; _i315 < _list314.size; ++_i315) { - MasterTag _elem300; - _elem300 = new MasterTag(); - _elem300.read(iprot); - struct.success.add(_elem300); + MasterTag _elem316; + _elem316 = new MasterTag(); + _elem316.read(iprot); + struct.success.add(_elem316); } iprot.readListEnd(); } @@ -19493,9 +20893,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (MasterTag _iter301 : struct.success) + for (MasterTag _iter317 : struct.success) { - _iter301.write(oprot); + _iter317.write(oprot); } oprot.writeListEnd(); } @@ -19534,9 +20934,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (MasterTag _iter302 : struct.success) + for (MasterTag _iter318 : struct.success) { - _iter302.write(oprot); + _iter318.write(oprot); } } } @@ -19551,14 +20951,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list303.size); - for (int _i304 = 0; _i304 < _list303.size; ++_i304) + org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list319.size); + for (int _i320 = 0; _i320 < _list319.size; ++_i320) { - MasterTag _elem305; - _elem305 = new MasterTag(); - _elem305.read(iprot); - struct.success.add(_elem305); + MasterTag _elem321; + _elem321 = new MasterTag(); + _elem321.read(iprot); + struct.success.add(_elem321); } } struct.setSuccessIsSet(true); @@ -20311,14 +21711,14 @@ public class MasterServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list306 = iprot.readListBegin(); - struct.success = new ArrayList(_list306.size); - for (int _i307 = 0; _i307 < _list306.size; ++_i307) + org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); + struct.success = new ArrayList(_list322.size); + for (int _i323 = 0; _i323 < _list322.size; ++_i323) { - MasterSoftware _elem308; - _elem308 = new MasterSoftware(); - _elem308.read(iprot); - struct.success.add(_elem308); + MasterSoftware _elem324; + _elem324 = new MasterSoftware(); + _elem324.read(iprot); + struct.success.add(_elem324); } iprot.readListEnd(); } @@ -20355,9 +21755,9 @@ public class MasterServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (MasterSoftware _iter309 : struct.success) + for (MasterSoftware _iter325 : struct.success) { - _iter309.write(oprot); + _iter325.write(oprot); } oprot.writeListEnd(); } @@ -20396,9 +21796,9 @@ public class MasterServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (MasterSoftware _iter310 : struct.success) + for (MasterSoftware _iter326 : struct.success) { - _iter310.write(oprot); + _iter326.write(oprot); } } } @@ -20413,14 +21813,14 @@ public class MasterServer { BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list311.size); - for (int _i312 = 0; _i312 < _list311.size; ++_i312) + org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list327.size); + for (int _i328 = 0; _i328 < _list327.size; ++_i328) { - MasterSoftware _elem313; - _elem313 = new MasterSoftware(); - _elem313.read(iprot); - struct.success.add(_elem313); + MasterSoftware _elem329; + _elem329 = new MasterSoftware(); + _elem329.read(iprot); + struct.success.add(_elem329); } } struct.setSuccessIsSet(true); diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java index c02eb36..c09d4f7 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/SatelliteServer.java @@ -52,8 +52,6 @@ public class SatelliteServer { public void cancelDownload(String downloadToken) throws TInvalidTokenException, org.apache.thrift.TException; - public ByteBuffer getMachineDescription(String userToken, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException; - public void isAuthenticated(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; public WhoamiInfo whoami(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException; @@ -96,6 +94,8 @@ public class SatelliteServer { public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; + public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException; + public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; public void updateLecture(String userToken, String lectureId, LectureWrite lecture) throws TAuthorizationException, TNotFoundException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException; @@ -132,8 +132,6 @@ public class SatelliteServer { public void cancelDownload(String downloadToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getMachineDescription(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isAuthenticated(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void whoami(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -176,6 +174,8 @@ public class SatelliteServer { public void setImageVersionExpiry(String userToken, String imageBaseId, long expireTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void requestImageReplication(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void updateLecture(String userToken, String lectureId, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -429,39 +429,6 @@ public class SatelliteServer { return; } - public ByteBuffer getMachineDescription(String userToken, String imageVersionId) throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException - { - send_getMachineDescription(userToken, imageVersionId); - return recv_getMachineDescription(); - } - - public void send_getMachineDescription(String userToken, String imageVersionId) throws org.apache.thrift.TException - { - getMachineDescription_args args = new getMachineDescription_args(); - args.setUserToken(userToken); - args.setImageVersionId(imageVersionId); - sendBase("getMachineDescription", args); - } - - public ByteBuffer recv_getMachineDescription() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException - { - getMachineDescription_result result = new getMachineDescription_result(); - receiveBase(result, "getMachineDescription"); - if (result.isSetSuccess()) { - return result.success; - } - if (result.authError != null) { - throw result.authError; - } - if (result.ffff != null) { - throw result.ffff; - } - if (result.sdf != null) { - throw result.sdf; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMachineDescription failed: unknown result"); - } - public void isAuthenticated(String userToken) throws TAuthorizationException, TInvocationException, org.apache.thrift.TException { send_isAuthenticated(userToken); @@ -1059,6 +1026,39 @@ public class SatelliteServer { return; } + public String requestImageReplication(String userToken, String imageVersionId) throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + send_requestImageReplication(userToken, imageVersionId); + return recv_requestImageReplication(); + } + + public void send_requestImageReplication(String userToken, String imageVersionId) throws org.apache.thrift.TException + { + requestImageReplication_args args = new requestImageReplication_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + sendBase("requestImageReplication", args); + } + + public String recv_requestImageReplication() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException + { + requestImageReplication_result result = new requestImageReplication_result(); + receiveBase(result, "requestImageReplication"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.authError != null) { + throw result.authError; + } + if (result.notFound != null) { + throw result.notFound; + } + if (result.serverError != null) { + throw result.serverError; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestImageReplication failed: unknown result"); + } + public String createLecture(String userToken, LectureWrite lecture) throws TAuthorizationException, TInvocationException, TInvalidDateParam, org.apache.thrift.TException { send_createLecture(userToken, lecture); @@ -1600,41 +1600,6 @@ public class SatelliteServer { } } - public void getMachineDescription(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getMachineDescription_call method_call = new getMachineDescription_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getMachineDescription_call extends org.apache.thrift.async.TAsyncMethodCall { - private String userToken; - private String imageVersionId; - public getMachineDescription_call(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { - super(client, protocolFactory, transport, resultHandler, false); - this.userToken = userToken; - this.imageVersionId = imageVersionId; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMachineDescription", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getMachineDescription_args args = new getMachineDescription_args(); - args.setUserToken(userToken); - args.setImageVersionId(imageVersionId); - args.write(prot); - prot.writeMessageEnd(); - } - - public ByteBuffer getResult() throws TAuthorizationException, TInvocationException, TNotFoundException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new IllegalStateException("Method call not finished!"); - } - org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); - org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); - return (new Client(prot)).recv_getMachineDescription(); - } - } - public void isAuthenticated(String userToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isAuthenticated_call method_call = new isAuthenticated_call(userToken, resultHandler, this, ___protocolFactory, ___transport); @@ -2352,6 +2317,41 @@ public class SatelliteServer { } } + public void requestImageReplication(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + requestImageReplication_call method_call = new requestImageReplication_call(userToken, imageVersionId, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class requestImageReplication_call extends org.apache.thrift.async.TAsyncMethodCall { + private String userToken; + private String imageVersionId; + public requestImageReplication_call(String userToken, String imageVersionId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.userToken = userToken; + this.imageVersionId = imageVersionId; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestImageReplication", org.apache.thrift.protocol.TMessageType.CALL, 0)); + requestImageReplication_args args = new requestImageReplication_args(); + args.setUserToken(userToken); + args.setImageVersionId(imageVersionId); + args.write(prot); + prot.writeMessageEnd(); + } + + public String getResult() throws TAuthorizationException, TNotFoundException, TInvocationException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_requestImageReplication(); + } + } + public void createLecture(String userToken, LectureWrite lecture, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); createLecture_call method_call = new createLecture_call(userToken, lecture, resultHandler, this, ___protocolFactory, ___transport); @@ -2662,7 +2662,6 @@ public class SatelliteServer { processMap.put("queryUploadStatus", new queryUploadStatus()); processMap.put("requestDownload", new requestDownload()); processMap.put("cancelDownload", new cancelDownload()); - processMap.put("getMachineDescription", new getMachineDescription()); processMap.put("isAuthenticated", new isAuthenticated()); processMap.put("whoami", new whoami()); processMap.put("invalidateSession", new invalidateSession()); @@ -2684,6 +2683,7 @@ public class SatelliteServer { processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); processMap.put("setImageVersionExpiry", new setImageVersionExpiry()); + processMap.put("requestImageReplication", new requestImageReplication()); processMap.put("createLecture", new createLecture()); processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); @@ -2892,34 +2892,6 @@ public class SatelliteServer { } } - public static class getMachineDescription extends org.apache.thrift.ProcessFunction { - public getMachineDescription() { - super("getMachineDescription"); - } - - public getMachineDescription_args getEmptyArgsInstance() { - return new getMachineDescription_args(); - } - - protected boolean isOneway() { - return false; - } - - public getMachineDescription_result getResult(I iface, getMachineDescription_args args) throws org.apache.thrift.TException { - getMachineDescription_result result = new getMachineDescription_result(); - try { - result.success = iface.getMachineDescription(args.userToken, args.imageVersionId); - } catch (TAuthorizationException authError) { - result.authError = authError; - } catch (TInvocationException ffff) { - result.ffff = ffff; - } catch (TNotFoundException sdf) { - result.sdf = sdf; - } - return result; - } - } - public static class isAuthenticated extends org.apache.thrift.ProcessFunction { public isAuthenticated() { super("isAuthenticated"); @@ -3460,6 +3432,34 @@ public class SatelliteServer { } } + public static class requestImageReplication extends org.apache.thrift.ProcessFunction { + public requestImageReplication() { + super("requestImageReplication"); + } + + public requestImageReplication_args getEmptyArgsInstance() { + return new requestImageReplication_args(); + } + + protected boolean isOneway() { + return false; + } + + public requestImageReplication_result getResult(I iface, requestImageReplication_args args) throws org.apache.thrift.TException { + requestImageReplication_result result = new requestImageReplication_result(); + try { + result.success = iface.requestImageReplication(args.userToken, args.imageVersionId); + } catch (TAuthorizationException authError) { + result.authError = authError; + } catch (TNotFoundException notFound) { + result.notFound = notFound; + } catch (TInvocationException serverError) { + result.serverError = serverError; + } + return result; + } + } + public static class createLecture extends org.apache.thrift.ProcessFunction { public createLecture() { super("createLecture"); @@ -3705,7 +3705,6 @@ public class SatelliteServer { processMap.put("queryUploadStatus", new queryUploadStatus()); processMap.put("requestDownload", new requestDownload()); processMap.put("cancelDownload", new cancelDownload()); - processMap.put("getMachineDescription", new getMachineDescription()); processMap.put("isAuthenticated", new isAuthenticated()); processMap.put("whoami", new whoami()); processMap.put("invalidateSession", new invalidateSession()); @@ -3727,6 +3726,7 @@ public class SatelliteServer { processMap.put("getImagePermissions", new getImagePermissions()); processMap.put("setImageOwner", new setImageOwner()); processMap.put("setImageVersionExpiry", new setImageVersionExpiry()); + processMap.put("requestImageReplication", new requestImageReplication()); processMap.put("createLecture", new createLecture()); processMap.put("updateLecture", new updateLecture()); processMap.put("getLectureList", new getLectureList()); @@ -4210,73 +4210,6 @@ public class SatelliteServer { } } - public static class getMachineDescription extends org.apache.thrift.AsyncProcessFunction { - public getMachineDescription() { - super("getMachineDescription"); - } - - public getMachineDescription_args getEmptyArgsInstance() { - return new getMachineDescription_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ByteBuffer o) { - getMachineDescription_result result = new getMachineDescription_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getMachineDescription_result result = new getMachineDescription_result(); - if (e instanceof TAuthorizationException) { - result.authError = (TAuthorizationException) e; - result.setAuthErrorIsSet(true); - msg = result; - } - else if (e instanceof TInvocationException) { - result.ffff = (TInvocationException) e; - result.setFfffIsSet(true); - msg = result; - } - else if (e instanceof TNotFoundException) { - result.sdf = (TNotFoundException) e; - result.setSdfIsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getMachineDescription_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getMachineDescription(args.userToken, args.imageVersionId,resultHandler); - } - } - public static class isAuthenticated extends org.apache.thrift.AsyncProcessFunction { public isAuthenticated() { super("isAuthenticated"); @@ -5570,6 +5503,73 @@ public class SatelliteServer { } } + public static class requestImageReplication extends org.apache.thrift.AsyncProcessFunction { + public requestImageReplication() { + super("requestImageReplication"); + } + + public requestImageReplication_args getEmptyArgsInstance() { + return new requestImageReplication_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(String o) { + requestImageReplication_result result = new requestImageReplication_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + requestImageReplication_result result = new requestImageReplication_result(); + if (e instanceof TAuthorizationException) { + result.authError = (TAuthorizationException) e; + result.setAuthErrorIsSet(true); + msg = result; + } + else if (e instanceof TNotFoundException) { + result.notFound = (TNotFoundException) e; + result.setNotFoundIsSet(true); + msg = result; + } + else if (e instanceof TInvocationException) { + result.serverError = (TInvocationException) e; + result.setServerErrorIsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, requestImageReplication_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.requestImageReplication(args.userToken, args.imageVersionId,resultHandler); + } + } + public static class createLecture extends org.apache.thrift.AsyncProcessFunction { public createLecture() { super("createLecture"); @@ -7958,13 +7958,13 @@ public class SatelliteServer { case 4: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list138.size); - for (int _i139 = 0; _i139 < _list138.size; ++_i139) + org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list154.size); + for (int _i155 = 0; _i155 < _list154.size; ++_i155) { - ByteBuffer _elem140; - _elem140 = iprot.readBinary(); - struct.blockHashes.add(_elem140); + ByteBuffer _elem156; + _elem156 = iprot.readBinary(); + struct.blockHashes.add(_elem156); } iprot.readListEnd(); } @@ -8013,9 +8013,9 @@ public class SatelliteServer { oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter141 : struct.blockHashes) + for (ByteBuffer _iter157 : struct.blockHashes) { - oprot.writeBinary(_iter141); + oprot.writeBinary(_iter157); } oprot.writeListEnd(); } @@ -8072,9 +8072,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter142 : struct.blockHashes) + for (ByteBuffer _iter158 : struct.blockHashes) { - oprot.writeBinary(_iter142); + oprot.writeBinary(_iter158); } } } @@ -8101,13 +8101,13 @@ public class SatelliteServer { } if (incoming.get(3)) { { - org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list143.size); - for (int _i144 = 0; _i144 < _list143.size; ++_i144) + org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list159.size); + for (int _i160 = 0; _i160 < _list159.size; ++_i160) { - ByteBuffer _elem145; - _elem145 = iprot.readBinary(); - struct.blockHashes.add(_elem145); + ByteBuffer _elem161; + _elem161 = iprot.readBinary(); + struct.blockHashes.add(_elem161); } } struct.setBlockHashesIsSet(true); @@ -9279,13 +9279,13 @@ public class SatelliteServer { case 2: // BLOCK_HASHES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); - struct.blockHashes = new ArrayList(_list146.size); - for (int _i147 = 0; _i147 < _list146.size; ++_i147) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list162.size); + for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - ByteBuffer _elem148; - _elem148 = iprot.readBinary(); - struct.blockHashes.add(_elem148); + ByteBuffer _elem164; + _elem164 = iprot.readBinary(); + struct.blockHashes.add(_elem164); } iprot.readListEnd(); } @@ -9318,9 +9318,9 @@ public class SatelliteServer { oprot.writeFieldBegin(BLOCK_HASHES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.blockHashes.size())); - for (ByteBuffer _iter149 : struct.blockHashes) + for (ByteBuffer _iter165 : struct.blockHashes) { - oprot.writeBinary(_iter149); + oprot.writeBinary(_iter165); } oprot.writeListEnd(); } @@ -9357,9 +9357,9 @@ public class SatelliteServer { if (struct.isSetBlockHashes()) { { oprot.writeI32(struct.blockHashes.size()); - for (ByteBuffer _iter150 : struct.blockHashes) + for (ByteBuffer _iter166 : struct.blockHashes) { - oprot.writeBinary(_iter150); + oprot.writeBinary(_iter166); } } } @@ -9375,13 +9375,13 @@ public class SatelliteServer { } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.blockHashes = new ArrayList(_list151.size); - for (int _i152 = 0; _i152 < _list151.size; ++_i152) + org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list167.size); + for (int _i168 = 0; _i168 < _list167.size; ++_i168) { - ByteBuffer _elem153; - _elem153 = iprot.readBinary(); - struct.blockHashes.add(_elem153); + ByteBuffer _elem169; + _elem169 = iprot.readBinary(); + struct.blockHashes.add(_elem169); } } struct.setBlockHashesIsSet(true); @@ -13203,25 +13203,22 @@ public class SatelliteServer { } - public static class getMachineDescription_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMachineDescription_args"); + public static class isAuthenticated_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAuthenticated_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getMachineDescription_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMachineDescription_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isAuthenticated_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isAuthenticated_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"); + USER_TOKEN((short)1, "userToken"); private static final Map byName = new HashMap(); @@ -13238,8 +13235,6 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; default: return null; } @@ -13285,51 +13280,43 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMachineDescription_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_args.class, metaDataMap); } - public getMachineDescription_args() { + public isAuthenticated_args() { } - public getMachineDescription_args( - String userToken, - String imageVersionId) + public isAuthenticated_args( + String userToken) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public getMachineDescription_args(getMachineDescription_args other) { + public isAuthenticated_args(isAuthenticated_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; - } } - public getMachineDescription_args deepCopy() { - return new getMachineDescription_args(this); + public isAuthenticated_args deepCopy() { + return new isAuthenticated_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public getMachineDescription_args setUserToken(String userToken) { + public isAuthenticated_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -13349,30 +13336,6 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; - } - - public getMachineDescription_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; - return this; - } - - public void unsetImageVersionId() { - this.imageVersionId = null; - } - - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; - } - - public void setImageVersionIdIsSet(boolean value) { - if (!value) { - this.imageVersionId = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -13383,14 +13346,6 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: - if (value == null) { - unsetImageVersionId(); - } else { - setImageVersionId((String)value); - } - break; - } } @@ -13399,9 +13354,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); - } throw new IllegalStateException(); } @@ -13415,8 +13367,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -13425,12 +13375,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getMachineDescription_args) - return this.equals((getMachineDescription_args)that); + if (that instanceof isAuthenticated_args) + return this.equals((isAuthenticated_args)that); return false; } - public boolean equals(getMachineDescription_args that) { + public boolean equals(isAuthenticated_args that) { if (that == null) return false; @@ -13443,15 +13393,6 @@ public class SatelliteServer { return false; } - boolean this_present_imageVersionId = true && this.isSetImageVersionId(); - boolean that_present_imageVersionId = true && that.isSetImageVersionId(); - if (this_present_imageVersionId || that_present_imageVersionId) { - if (!(this_present_imageVersionId && that_present_imageVersionId)) - return false; - if (!this.imageVersionId.equals(that.imageVersionId)) - return false; - } - return true; } @@ -13461,7 +13402,7 @@ public class SatelliteServer { } @Override - public int compareTo(getMachineDescription_args other) { + public int compareTo(isAuthenticated_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -13478,16 +13419,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -13505,7 +13436,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getMachineDescription_args("); + StringBuilder sb = new StringBuilder("isAuthenticated_args("); boolean first = true; sb.append("userToken:"); @@ -13515,14 +13446,6 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; - if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { - sb.append("null"); - } else { - sb.append(this.imageVersionId); - } - first = false; sb.append(")"); return sb.toString(); } @@ -13548,15 +13471,15 @@ public class SatelliteServer { } } - private static class getMachineDescription_argsStandardSchemeFactory implements SchemeFactory { - public getMachineDescription_argsStandardScheme getScheme() { - return new getMachineDescription_argsStandardScheme(); + private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory { + public isAuthenticated_argsStandardScheme getScheme() { + return new isAuthenticated_argsStandardScheme(); } } - private static class getMachineDescription_argsStandardScheme extends StandardScheme { + private static class isAuthenticated_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getMachineDescription_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -13574,14 +13497,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -13593,7 +13508,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getMachineDescription_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -13602,86 +13517,65 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getMachineDescription_argsTupleSchemeFactory implements SchemeFactory { - public getMachineDescription_argsTupleScheme getScheme() { - return new getMachineDescription_argsTupleScheme(); + private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory { + public isAuthenticated_argsTupleScheme getScheme() { + return new isAuthenticated_argsTupleScheme(); } } - private static class getMachineDescription_argsTupleScheme extends TupleScheme { + private static class isAuthenticated_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } - if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); - } } } } - public static class getMachineDescription_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMachineDescription_result"); + public static class isAuthenticated_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAuthenticated_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField FFFF_FIELD_DESC = new org.apache.thrift.protocol.TField("ffff", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField SDF_FIELD_DESC = new org.apache.thrift.protocol.TField("sdf", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getMachineDescription_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMachineDescription_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new isAuthenticated_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new isAuthenticated_resultTupleSchemeFactory()); } - public ByteBuffer success; // required public TAuthorizationException authError; // required - public TInvocationException ffff; // required - public TNotFoundException sdf; // required + public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), - FFFF((short)2, "ffff"), - SDF((short)3, "sdf"); + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -13696,14 +13590,10 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // FFFF - return FFFF; - case 3: // SDF - return SDF; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -13747,104 +13637,53 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.FFFF, new org.apache.thrift.meta_data.FieldMetaData("ffff", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.SDF, new org.apache.thrift.meta_data.FieldMetaData("sdf", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMachineDescription_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_result.class, metaDataMap); } - public getMachineDescription_result() { + public isAuthenticated_result() { } - public getMachineDescription_result( - ByteBuffer success, + public isAuthenticated_result( TAuthorizationException authError, - TInvocationException ffff, - TNotFoundException sdf) + TInvocationException serverError) { this(); - this.success = success; this.authError = authError; - this.ffff = ffff; - this.sdf = sdf; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getMachineDescription_result(getMachineDescription_result other) { - if (other.isSetSuccess()) { - this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success); -; - } + public isAuthenticated_result(isAuthenticated_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetFfff()) { - this.ffff = new TInvocationException(other.ffff); - } - if (other.isSetSdf()) { - this.sdf = new TNotFoundException(other.sdf); + if (other.isSetServerError()) { + this.serverError = new TInvocationException(other.serverError); } } - public getMachineDescription_result deepCopy() { - return new getMachineDescription_result(this); + public isAuthenticated_result deepCopy() { + return new isAuthenticated_result(this); } @Override public void clear() { - this.success = null; this.authError = null; - this.ffff = null; - this.sdf = null; - } - - public byte[] getSuccess() { - setSuccess(org.apache.thrift.TBaseHelper.rightSize(success)); - return success == null ? null : success.array(); - } - - public ByteBuffer bufferForSuccess() { - return success; - } - - public getMachineDescription_result setSuccess(byte[] success) { - setSuccess(success == null ? (ByteBuffer)null : ByteBuffer.wrap(success)); - return this; - } - - public getMachineDescription_result setSuccess(ByteBuffer success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + this.serverError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public getMachineDescription_result setAuthError(TAuthorizationException authError) { + public isAuthenticated_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -13864,64 +13703,32 @@ public class SatelliteServer { } } - public TInvocationException getFfff() { - return this.ffff; - } - - public getMachineDescription_result setFfff(TInvocationException ffff) { - this.ffff = ffff; - return this; - } - - public void unsetFfff() { - this.ffff = null; - } - - /** Returns true if field ffff is set (has been assigned a value) and false otherwise */ - public boolean isSetFfff() { - return this.ffff != null; - } - - public void setFfffIsSet(boolean value) { - if (!value) { - this.ffff = null; - } - } - - public TNotFoundException getSdf() { - return this.sdf; + public TInvocationException getServerError() { + return this.serverError; } - public getMachineDescription_result setSdf(TNotFoundException sdf) { - this.sdf = sdf; + public isAuthenticated_result setServerError(TInvocationException serverError) { + this.serverError = serverError; return this; } - public void unsetSdf() { - this.sdf = null; + public void unsetServerError() { + this.serverError = null; } - /** Returns true if field sdf is set (has been assigned a value) and false otherwise */ - public boolean isSetSdf() { - return this.sdf != null; + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; } - public void setSdfIsSet(boolean value) { + public void setServerErrorIsSet(boolean value) { if (!value) { - this.sdf = null; + this.serverError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((ByteBuffer)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -13930,19 +13737,11 @@ public class SatelliteServer { } break; - case FFFF: - if (value == null) { - unsetFfff(); - } else { - setFfff((TInvocationException)value); - } - break; - - case SDF: + case SERVER_ERROR: if (value == null) { - unsetSdf(); + unsetServerError(); } else { - setSdf((TNotFoundException)value); + setServerError((TInvocationException)value); } break; @@ -13951,17 +13750,11 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); - case FFFF: - return getFfff(); - - case SDF: - return getSdf(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -13974,14 +13767,10 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case FFFF: - return isSetFfff(); - case SDF: - return isSetSdf(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -13990,24 +13779,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getMachineDescription_result) - return this.equals((getMachineDescription_result)that); + if (that instanceof isAuthenticated_result) + return this.equals((isAuthenticated_result)that); return false; } - public boolean equals(getMachineDescription_result that) { + public boolean equals(isAuthenticated_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -14017,21 +13797,12 @@ public class SatelliteServer { return false; } - boolean this_present_ffff = true && this.isSetFfff(); - boolean that_present_ffff = true && that.isSetFfff(); - if (this_present_ffff || that_present_ffff) { - if (!(this_present_ffff && that_present_ffff)) - return false; - if (!this.ffff.equals(that.ffff)) - return false; - } - - boolean this_present_sdf = true && this.isSetSdf(); - boolean that_present_sdf = true && that.isSetSdf(); - if (this_present_sdf || that_present_sdf) { - if (!(this_present_sdf && that_present_sdf)) + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) return false; - if (!this.sdf.equals(that.sdf)) + if (!this.serverError.equals(that.serverError)) return false; } @@ -14044,23 +13815,13 @@ public class SatelliteServer { } @Override - public int compareTo(getMachineDescription_result other) { + public int compareTo(isAuthenticated_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -14071,22 +13832,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFfff()).compareTo(other.isSetFfff()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFfff()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ffff, other.ffff); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetSdf()).compareTo(other.isSetSdf()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSdf()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sdf, other.sdf); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -14108,17 +13859,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getMachineDescription_result("); + StringBuilder sb = new StringBuilder("isAuthenticated_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - org.apache.thrift.TBaseHelper.toString(this.success, sb); - } - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -14127,19 +13870,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("ffff:"); - if (this.ffff == null) { - sb.append("null"); - } else { - sb.append(this.ffff); - } - first = false; - if (!first) sb.append(", "); - sb.append("sdf:"); - if (this.sdf == null) { + sb.append("serverError:"); + if (this.serverError == null) { sb.append("null"); } else { - sb.append(this.sdf); + sb.append(this.serverError); } first = false; sb.append(")"); @@ -14167,15 +13902,15 @@ public class SatelliteServer { } } - private static class getMachineDescription_resultStandardSchemeFactory implements SchemeFactory { - public getMachineDescription_resultStandardScheme getScheme() { - return new getMachineDescription_resultStandardScheme(); + private static class isAuthenticated_resultStandardSchemeFactory implements SchemeFactory { + public isAuthenticated_resultStandardScheme getScheme() { + return new isAuthenticated_resultStandardScheme(); } } - private static class getMachineDescription_resultStandardScheme extends StandardScheme { + private static class isAuthenticated_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getMachineDescription_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14185,14 +13920,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readBinary(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -14202,20 +13929,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // FFFF - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ffff = new TInvocationException(); - struct.ffff.read(iprot); - struct.setFfffIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SDF + case 2: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.sdf = new TNotFoundException(); - struct.sdf.read(iprot); - struct.setSdfIsSet(true); + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -14231,28 +13949,18 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getMachineDescription_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBinary(struct.success); - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.ffff != null) { - oprot.writeFieldBegin(FFFF_FIELD_DESC); - struct.ffff.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.sdf != null) { - oprot.writeFieldBegin(SDF_FIELD_DESC); - struct.sdf.write(oprot); + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -14261,82 +13969,61 @@ public class SatelliteServer { } - private static class getMachineDescription_resultTupleSchemeFactory implements SchemeFactory { - public getMachineDescription_resultTupleScheme getScheme() { - return new getMachineDescription_resultTupleScheme(); + private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory { + public isAuthenticated_resultTupleScheme getScheme() { + return new isAuthenticated_resultTupleScheme(); } } - private static class getMachineDescription_resultTupleScheme extends TupleScheme { + private static class isAuthenticated_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetServerError()) { optionals.set(1); } - if (struct.isSetFfff()) { - optionals.set(2); - } - if (struct.isSetSdf()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - oprot.writeBinary(struct.success); - } + oprot.writeBitSet(optionals, 2); if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetFfff()) { - struct.ffff.write(oprot); - } - if (struct.isSetSdf()) { - struct.sdf.write(oprot); + if (struct.isSetServerError()) { + struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getMachineDescription_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBinary(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { - struct.ffff = new TInvocationException(); - struct.ffff.read(iprot); - struct.setFfffIsSet(true); - } - if (incoming.get(3)) { - struct.sdf = new TNotFoundException(); - struct.sdf.read(iprot); - struct.setSdfIsSet(true); + if (incoming.get(1)) { + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } } } } - public static class isAuthenticated_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAuthenticated_args"); + public static class whoami_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("whoami_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isAuthenticated_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isAuthenticated_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new whoami_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new whoami_argsTupleSchemeFactory()); } public String userToken; // required @@ -14406,13 +14093,13 @@ public class SatelliteServer { tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_args.class, metaDataMap); } - public isAuthenticated_args() { + public whoami_args() { } - public isAuthenticated_args( + public whoami_args( String userToken) { this(); @@ -14422,14 +14109,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public isAuthenticated_args(isAuthenticated_args other) { + public whoami_args(whoami_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } } - public isAuthenticated_args deepCopy() { - return new isAuthenticated_args(this); + public whoami_args deepCopy() { + return new whoami_args(this); } @Override @@ -14441,7 +14128,7 @@ public class SatelliteServer { return this.userToken; } - public isAuthenticated_args setUserToken(String userToken) { + public whoami_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -14500,12 +14187,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isAuthenticated_args) - return this.equals((isAuthenticated_args)that); + if (that instanceof whoami_args) + return this.equals((whoami_args)that); return false; } - public boolean equals(isAuthenticated_args that) { + public boolean equals(whoami_args that) { if (that == null) return false; @@ -14527,7 +14214,7 @@ public class SatelliteServer { } @Override - public int compareTo(isAuthenticated_args other) { + public int compareTo(whoami_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -14561,7 +14248,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_args("); + StringBuilder sb = new StringBuilder("whoami_args("); boolean first = true; sb.append("userToken:"); @@ -14596,15 +14283,15 @@ public class SatelliteServer { } } - private static class isAuthenticated_argsStandardSchemeFactory implements SchemeFactory { - public isAuthenticated_argsStandardScheme getScheme() { - return new isAuthenticated_argsStandardScheme(); + private static class whoami_argsStandardSchemeFactory implements SchemeFactory { + public whoami_argsStandardScheme getScheme() { + return new whoami_argsStandardScheme(); } } - private static class isAuthenticated_argsStandardScheme extends StandardScheme { + private static class whoami_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -14633,7 +14320,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -14648,16 +14335,16 @@ public class SatelliteServer { } - private static class isAuthenticated_argsTupleSchemeFactory implements SchemeFactory { - public isAuthenticated_argsTupleScheme getScheme() { - return new isAuthenticated_argsTupleScheme(); + private static class whoami_argsTupleSchemeFactory implements SchemeFactory { + public whoami_argsTupleScheme getScheme() { + return new whoami_argsTupleScheme(); } } - private static class isAuthenticated_argsTupleScheme extends TupleScheme { + private static class whoami_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, whoami_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -14670,7 +14357,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, whoami_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -14682,23 +14369,26 @@ public class SatelliteServer { } - public static class isAuthenticated_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isAuthenticated_result"); + public static class whoami_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("whoami_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new isAuthenticated_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new isAuthenticated_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new whoami_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new whoami_resultTupleSchemeFactory()); } + public WhoamiInfo success; // required public TAuthorizationException authError; // required public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), SERVER_ERROR((short)2, "serverError"); @@ -14715,6 +14405,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // SERVER_ERROR @@ -14762,22 +14454,26 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WhoamiInfo.class))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isAuthenticated_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_result.class, metaDataMap); } - public isAuthenticated_result() { + public whoami_result() { } - public isAuthenticated_result( + public whoami_result( + WhoamiInfo success, TAuthorizationException authError, TInvocationException serverError) { this(); + this.success = success; this.authError = authError; this.serverError = serverError; } @@ -14785,7 +14481,10 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public isAuthenticated_result(isAuthenticated_result other) { + public whoami_result(whoami_result other) { + if (other.isSetSuccess()) { + this.success = new WhoamiInfo(other.success); + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -14794,21 +14493,46 @@ public class SatelliteServer { } } - public isAuthenticated_result deepCopy() { - return new isAuthenticated_result(this); + public whoami_result deepCopy() { + return new whoami_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.serverError = null; } + public WhoamiInfo getSuccess() { + return this.success; + } + + public whoami_result setSuccess(WhoamiInfo success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public TAuthorizationException getAuthError() { return this.authError; } - public isAuthenticated_result setAuthError(TAuthorizationException authError) { + public whoami_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -14832,7 +14556,7 @@ public class SatelliteServer { return this.serverError; } - public isAuthenticated_result setServerError(TInvocationException serverError) { + public whoami_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -14854,6 +14578,14 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((WhoamiInfo)value); + } + break; + case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -14875,6 +14607,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -14892,6 +14627,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case SERVER_ERROR: @@ -14904,15 +14641,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof isAuthenticated_result) - return this.equals((isAuthenticated_result)that); + if (that instanceof whoami_result) + return this.equals((whoami_result)that); return false; } - public boolean equals(isAuthenticated_result that) { + public boolean equals(whoami_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -14940,13 +14686,23 @@ public class SatelliteServer { } @Override - public int compareTo(isAuthenticated_result other) { + public int compareTo(whoami_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -14984,9 +14740,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("isAuthenticated_result("); + StringBuilder sb = new StringBuilder("whoami_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -15009,6 +14773,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -15027,15 +14794,15 @@ public class SatelliteServer { } } - private static class isAuthenticated_resultStandardSchemeFactory implements SchemeFactory { - public isAuthenticated_resultStandardScheme getScheme() { - return new isAuthenticated_resultStandardScheme(); + private static class whoami_resultStandardSchemeFactory implements SchemeFactory { + public whoami_resultStandardScheme getScheme() { + return new whoami_resultStandardScheme(); } } - private static class isAuthenticated_resultStandardScheme extends StandardScheme { + private static class whoami_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15045,6 +14812,15 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new WhoamiInfo(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -15074,10 +14850,15 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -15094,25 +14875,31 @@ public class SatelliteServer { } - private static class isAuthenticated_resultTupleSchemeFactory implements SchemeFactory { - public isAuthenticated_resultTupleScheme getScheme() { - return new isAuthenticated_resultTupleScheme(); + private static class whoami_resultTupleSchemeFactory implements SchemeFactory { + public whoami_resultTupleScheme getScheme() { + return new whoami_resultTupleScheme(); } } - private static class isAuthenticated_resultTupleScheme extends TupleScheme { + private static class whoami_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, whoami_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetServerError()) { + if (struct.isSetAuthError()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -15122,15 +14909,20 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, isAuthenticated_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, whoami_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { + struct.success = new WhoamiInfo(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -15140,15 +14932,15 @@ public class SatelliteServer { } - public static class whoami_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("whoami_args"); + public static class invalidateSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new whoami_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new whoami_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new invalidateSession_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory()); } public String userToken; // required @@ -15218,13 +15010,13 @@ public class SatelliteServer { tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap); } - public whoami_args() { + public invalidateSession_args() { } - public whoami_args( + public invalidateSession_args( String userToken) { this(); @@ -15234,14 +15026,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public whoami_args(whoami_args other) { + public invalidateSession_args(invalidateSession_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } } - public whoami_args deepCopy() { - return new whoami_args(this); + public invalidateSession_args deepCopy() { + return new invalidateSession_args(this); } @Override @@ -15253,7 +15045,7 @@ public class SatelliteServer { return this.userToken; } - public whoami_args setUserToken(String userToken) { + public invalidateSession_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -15312,12 +15104,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof whoami_args) - return this.equals((whoami_args)that); + if (that instanceof invalidateSession_args) + return this.equals((invalidateSession_args)that); return false; } - public boolean equals(whoami_args that) { + public boolean equals(invalidateSession_args that) { if (that == null) return false; @@ -15339,7 +15131,7 @@ public class SatelliteServer { } @Override - public int compareTo(whoami_args other) { + public int compareTo(invalidateSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -15373,7 +15165,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("whoami_args("); + StringBuilder sb = new StringBuilder("invalidateSession_args("); boolean first = true; sb.append("userToken:"); @@ -15408,15 +15200,15 @@ public class SatelliteServer { } } - private static class whoami_argsStandardSchemeFactory implements SchemeFactory { - public whoami_argsStandardScheme getScheme() { - return new whoami_argsStandardScheme(); + private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory { + public invalidateSession_argsStandardScheme getScheme() { + return new invalidateSession_argsStandardScheme(); } } - private static class whoami_argsStandardScheme extends StandardScheme { + private static class invalidateSession_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15445,7 +15237,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -15460,16 +15252,16 @@ public class SatelliteServer { } - private static class whoami_argsTupleSchemeFactory implements SchemeFactory { - public whoami_argsTupleScheme getScheme() { - return new whoami_argsTupleScheme(); + private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory { + public invalidateSession_argsTupleScheme getScheme() { + return new invalidateSession_argsTupleScheme(); } } - private static class whoami_argsTupleScheme extends TupleScheme { + private static class invalidateSession_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, whoami_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -15482,7 +15274,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, whoami_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -15494,28 +15286,22 @@ public class SatelliteServer { } - public static class whoami_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("whoami_result"); + public static class invalidateSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new whoami_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new whoami_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new invalidateSession_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); } - public WhoamiInfo success; // required - public TAuthorizationException authError; // required - public TInvocationException serverError; // required + public TInvalidTokenException ex; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - AUTH_ERROR((short)1, "authError"), - SERVER_ERROR((short)2, "serverError"); + EX((short)1, "ex"); private static final Map byName = new HashMap(); @@ -15530,12 +15316,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // AUTH_ERROR - return AUTH_ERROR; - case 2: // SERVER_ERROR - return SERVER_ERROR; + case 1: // EX + return EX; default: return null; } @@ -15579,151 +15361,71 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WhoamiInfo.class))); - tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(whoami_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); } - public whoami_result() { + public invalidateSession_result() { } - public whoami_result( - WhoamiInfo success, - TAuthorizationException authError, - TInvocationException serverError) + public invalidateSession_result( + TInvalidTokenException ex) { this(); - this.success = success; - this.authError = authError; - this.serverError = serverError; + this.ex = ex; } /** * Performs a deep copy on other. */ - public whoami_result(whoami_result other) { - if (other.isSetSuccess()) { - this.success = new WhoamiInfo(other.success); - } - if (other.isSetAuthError()) { - this.authError = new TAuthorizationException(other.authError); - } - if (other.isSetServerError()) { - this.serverError = new TInvocationException(other.serverError); + public invalidateSession_result(invalidateSession_result other) { + if (other.isSetEx()) { + this.ex = new TInvalidTokenException(other.ex); } } - public whoami_result deepCopy() { - return new whoami_result(this); + public invalidateSession_result deepCopy() { + return new invalidateSession_result(this); } @Override public void clear() { - this.success = null; - this.authError = null; - this.serverError = null; - } - - public WhoamiInfo getSuccess() { - return this.success; - } - - public whoami_result setSuccess(WhoamiInfo success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - - public TAuthorizationException getAuthError() { - return this.authError; - } - - public whoami_result setAuthError(TAuthorizationException authError) { - this.authError = authError; - return this; - } - - public void unsetAuthError() { - this.authError = null; - } - - /** Returns true if field authError is set (has been assigned a value) and false otherwise */ - public boolean isSetAuthError() { - return this.authError != null; - } - - public void setAuthErrorIsSet(boolean value) { - if (!value) { - this.authError = null; - } + this.ex = null; } - public TInvocationException getServerError() { - return this.serverError; + public TInvalidTokenException getEx() { + return this.ex; } - public whoami_result setServerError(TInvocationException serverError) { - this.serverError = serverError; + public invalidateSession_result setEx(TInvalidTokenException ex) { + this.ex = ex; return this; } - public void unsetServerError() { - this.serverError = null; + public void unsetEx() { + this.ex = null; } - /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ - public boolean isSetServerError() { - return this.serverError != null; + /** Returns true if field ex is set (has been assigned a value) and false otherwise */ + public boolean isSetEx() { + return this.ex != null; } - public void setServerErrorIsSet(boolean value) { + public void setExIsSet(boolean value) { if (!value) { - this.serverError = null; + this.ex = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((WhoamiInfo)value); - } - break; - - case AUTH_ERROR: - if (value == null) { - unsetAuthError(); - } else { - setAuthError((TAuthorizationException)value); - } - break; - - case SERVER_ERROR: + case EX: if (value == null) { - unsetServerError(); + unsetEx(); } else { - setServerError((TInvocationException)value); + setEx((TInvalidTokenException)value); } break; @@ -15732,14 +15434,8 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - - case AUTH_ERROR: - return getAuthError(); - - case SERVER_ERROR: - return getServerError(); + case EX: + return getEx(); } throw new IllegalStateException(); @@ -15752,12 +15448,8 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case AUTH_ERROR: - return isSetAuthError(); - case SERVER_ERROR: - return isSetServerError(); + case EX: + return isSetEx(); } throw new IllegalStateException(); } @@ -15766,39 +15458,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof whoami_result) - return this.equals((whoami_result)that); + if (that instanceof invalidateSession_result) + return this.equals((invalidateSession_result)that); return false; } - public boolean equals(whoami_result that) { + public boolean equals(invalidateSession_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - - boolean this_present_authError = true && this.isSetAuthError(); - boolean that_present_authError = true && that.isSetAuthError(); - if (this_present_authError || that_present_authError) { - if (!(this_present_authError && that_present_authError)) - return false; - if (!this.authError.equals(that.authError)) - return false; - } - - boolean this_present_serverError = true && this.isSetServerError(); - boolean that_present_serverError = true && that.isSetServerError(); - if (this_present_serverError || that_present_serverError) { - if (!(this_present_serverError && that_present_serverError)) + boolean this_present_ex = true && this.isSetEx(); + boolean that_present_ex = true && that.isSetEx(); + if (this_present_ex || that_present_ex) { + if (!(this_present_ex && that_present_ex)) return false; - if (!this.serverError.equals(that.serverError)) + if (!this.ex.equals(that.ex)) return false; } @@ -15811,39 +15485,19 @@ public class SatelliteServer { } @Override - public int compareTo(whoami_result other) { + public int compareTo(invalidateSession_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (isSetEx()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); if (lastComparison != 0) { return lastComparison; } @@ -15865,30 +15519,14 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("whoami_result("); + StringBuilder sb = new StringBuilder("invalidateSession_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); - sb.append("authError:"); - if (this.authError == null) { - sb.append("null"); - } else { - sb.append(this.authError); - } - first = false; - if (!first) sb.append(", "); - sb.append("serverError:"); - if (this.serverError == null) { + sb.append("ex:"); + if (this.ex == null) { sb.append("null"); } else { - sb.append(this.serverError); + sb.append(this.ex); } first = false; sb.append(")"); @@ -15898,9 +15536,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -15919,15 +15554,15 @@ public class SatelliteServer { } } - private static class whoami_resultStandardSchemeFactory implements SchemeFactory { - public whoami_resultStandardScheme getScheme() { - return new whoami_resultStandardScheme(); + private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory { + public invalidateSession_resultStandardScheme getScheme() { + return new invalidateSession_resultStandardScheme(); } } - private static class whoami_resultStandardScheme extends StandardScheme { + private static class invalidateSession_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, whoami_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -15937,29 +15572,11 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new WhoamiInfo(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 1: // AUTH_ERROR - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.authError = new TAuthorizationException(); - struct.authError.read(iprot); - struct.setAuthErrorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SERVER_ERROR + case 1: // EX if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.ex = new TInvalidTokenException(); + struct.ex.read(iprot); + struct.setExIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -15975,23 +15592,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, whoami_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.authError != null) { - oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); - struct.authError.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.serverError != null) { - oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); - struct.serverError.write(oprot); + if (struct.ex != null) { + oprot.writeFieldBegin(EX_FIELD_DESC); + struct.ex.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -16000,79 +15607,60 @@ public class SatelliteServer { } - private static class whoami_resultTupleSchemeFactory implements SchemeFactory { - public whoami_resultTupleScheme getScheme() { - return new whoami_resultTupleScheme(); + private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory { + public invalidateSession_resultTupleScheme getScheme() { + return new invalidateSession_resultTupleScheme(); } } - private static class whoami_resultTupleScheme extends TupleScheme { + private static class invalidateSession_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, whoami_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetEx()) { optionals.set(0); } - if (struct.isSetAuthError()) { - optionals.set(1); - } - if (struct.isSetServerError()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetAuthError()) { - struct.authError.write(oprot); - } - if (struct.isSetServerError()) { - struct.serverError.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetEx()) { + struct.ex.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, whoami_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.success = new WhoamiInfo(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.authError = new TAuthorizationException(); - struct.authError.read(iprot); - struct.setAuthErrorIsSet(true); - } - if (incoming.get(2)) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.ex = new TInvalidTokenException(); + struct.ex.read(iprot); + struct.setExIsSet(true); } } } } - public static class invalidateSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_args"); + public static class getUserList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserList_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new invalidateSession_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserList_argsTupleSchemeFactory()); } public String userToken; // required + public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_TOKEN((short)1, "userToken"); + USER_TOKEN((short)1, "userToken"), + PAGE((short)2, "page"); private static final Map byName = new HashMap(); @@ -16089,6 +15677,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; + case 2: // PAGE + return PAGE; default: return null; } @@ -16129,48 +15719,59 @@ public class SatelliteServer { } // isset id assignments + private static final int __PAGE_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_args.class, metaDataMap); } - public invalidateSession_args() { + public getUserList_args() { } - public invalidateSession_args( - String userToken) + public getUserList_args( + String userToken, + int page) { this(); this.userToken = userToken; + this.page = page; + setPageIsSet(true); } /** * Performs a deep copy on other. */ - public invalidateSession_args(invalidateSession_args other) { + public getUserList_args(getUserList_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetUserToken()) { this.userToken = other.userToken; } + this.page = other.page; } - public invalidateSession_args deepCopy() { - return new invalidateSession_args(this); + public getUserList_args deepCopy() { + return new getUserList_args(this); } @Override public void clear() { this.userToken = null; + setPageIsSet(false); + this.page = 0; } public String getUserToken() { return this.userToken; } - public invalidateSession_args setUserToken(String userToken) { + public getUserList_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -16190,9 +15791,32 @@ public class SatelliteServer { } } - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case USER_TOKEN: + public int getPage() { + return this.page; + } + + public getUserList_args setPage(int page) { + this.page = page; + setPageIsSet(true); + return this; + } + + public void unsetPage() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + } + + /** Returns true if field page is set (has been assigned a value) and false otherwise */ + public boolean isSetPage() { + return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); + } + + public void setPageIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case USER_TOKEN: if (value == null) { unsetUserToken(); } else { @@ -16200,6 +15824,14 @@ public class SatelliteServer { } break; + case PAGE: + if (value == null) { + unsetPage(); + } else { + setPage((Integer)value); + } + break; + } } @@ -16208,6 +15840,9 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case PAGE: + return Integer.valueOf(getPage()); + } throw new IllegalStateException(); } @@ -16221,6 +15856,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -16229,12 +15866,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof invalidateSession_args) - return this.equals((invalidateSession_args)that); + if (that instanceof getUserList_args) + return this.equals((getUserList_args)that); return false; } - public boolean equals(invalidateSession_args that) { + public boolean equals(getUserList_args that) { if (that == null) return false; @@ -16247,6 +15884,15 @@ public class SatelliteServer { return false; } + boolean this_present_page = true; + boolean that_present_page = true; + if (this_present_page || that_present_page) { + if (!(this_present_page && that_present_page)) + return false; + if (this.page != that.page) + return false; + } + return true; } @@ -16256,7 +15902,7 @@ public class SatelliteServer { } @Override - public int compareTo(invalidateSession_args other) { + public int compareTo(getUserList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -16273,6 +15919,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -16290,7 +15946,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_args("); + StringBuilder sb = new StringBuilder("getUserList_args("); boolean first = true; sb.append("userToken:"); @@ -16300,6 +15956,10 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; + if (!first) sb.append(", "); + sb.append("page:"); + sb.append(this.page); + first = false; sb.append(")"); return sb.toString(); } @@ -16319,21 +15979,23 @@ public class SatelliteServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class invalidateSession_argsStandardSchemeFactory implements SchemeFactory { - public invalidateSession_argsStandardScheme getScheme() { - return new invalidateSession_argsStandardScheme(); + private static class getUserList_argsStandardSchemeFactory implements SchemeFactory { + public getUserList_argsStandardScheme getScheme() { + return new getUserList_argsStandardScheme(); } } - private static class invalidateSession_argsStandardScheme extends StandardScheme { + private static class getUserList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16351,6 +16013,14 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // PAGE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16362,7 +16032,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -16371,62 +16041,81 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class invalidateSession_argsTupleSchemeFactory implements SchemeFactory { - public invalidateSession_argsTupleScheme getScheme() { - return new invalidateSession_argsTupleScheme(); + private static class getUserList_argsTupleSchemeFactory implements SchemeFactory { + public getUserList_argsTupleScheme getScheme() { + return new getUserList_argsTupleScheme(); } } - private static class invalidateSession_argsTupleScheme extends TupleScheme { + private static class getUserList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetPage()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } + if (struct.isSetPage()) { + oprot.writeI32(struct.page); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } + if (incoming.get(1)) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); + } } } } - public static class invalidateSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("invalidateSession_result"); + public static class getUserList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserList_result"); - private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new invalidateSession_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new invalidateSession_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserList_resultTupleSchemeFactory()); } - public TInvalidTokenException ex; // required + public List success; // required + public TAuthorizationException failure; // required + public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - EX((short)1, "ex"); + SUCCESS((short)0, "success"), + FAILURE((short)1, "failure"), + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -16441,8 +16130,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // EX - return EX; + case 0: // SUCCESS + return SUCCESS; + case 1: // FAILURE + return FAILURE; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -16486,71 +16179,171 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class)))); + tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(invalidateSession_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_result.class, metaDataMap); } - public invalidateSession_result() { + public getUserList_result() { } - public invalidateSession_result( - TInvalidTokenException ex) + public getUserList_result( + List success, + TAuthorizationException failure, + TInvocationException serverError) { this(); - this.ex = ex; + this.success = success; + this.failure = failure; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public invalidateSession_result(invalidateSession_result other) { - if (other.isSetEx()) { - this.ex = new TInvalidTokenException(other.ex); + public getUserList_result(getUserList_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (UserInfo other_element : other.success) { + __this__success.add(new UserInfo(other_element)); + } + this.success = __this__success; + } + if (other.isSetFailure()) { + this.failure = new TAuthorizationException(other.failure); + } + if (other.isSetServerError()) { + this.serverError = new TInvocationException(other.serverError); } } - public invalidateSession_result deepCopy() { - return new invalidateSession_result(this); + public getUserList_result deepCopy() { + return new getUserList_result(this); } @Override public void clear() { - this.ex = null; + this.success = null; + this.failure = null; + this.serverError = null; } - public TInvalidTokenException getEx() { - return this.ex; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public invalidateSession_result setEx(TInvalidTokenException ex) { - this.ex = ex; + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(UserInfo elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { + return this.success; + } + + public getUserList_result setSuccess(List success) { + this.success = success; return this; } - public void unsetEx() { - this.ex = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field ex is set (has been assigned a value) and false otherwise */ - public boolean isSetEx() { - return this.ex != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setExIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.ex = null; + this.success = null; + } + } + + public TAuthorizationException getFailure() { + return this.failure; + } + + public getUserList_result setFailure(TAuthorizationException failure) { + this.failure = failure; + return this; + } + + public void unsetFailure() { + this.failure = null; + } + + /** Returns true if field failure is set (has been assigned a value) and false otherwise */ + public boolean isSetFailure() { + return this.failure != null; + } + + public void setFailureIsSet(boolean value) { + if (!value) { + this.failure = null; + } + } + + public TInvocationException getServerError() { + return this.serverError; + } + + public getUserList_result setServerError(TInvocationException serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case EX: + case SUCCESS: if (value == null) { - unsetEx(); + unsetSuccess(); } else { - setEx((TInvalidTokenException)value); + setSuccess((List)value); + } + break; + + case FAILURE: + if (value == null) { + unsetFailure(); + } else { + setFailure((TAuthorizationException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInvocationException)value); } break; @@ -16559,8 +16352,14 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case EX: - return getEx(); + case SUCCESS: + return getSuccess(); + + case FAILURE: + return getFailure(); + + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -16573,8 +16372,12 @@ public class SatelliteServer { } switch (field) { - case EX: - return isSetEx(); + case SUCCESS: + return isSetSuccess(); + case FAILURE: + return isSetFailure(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -16583,21 +16386,39 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof invalidateSession_result) - return this.equals((invalidateSession_result)that); + if (that instanceof getUserList_result) + return this.equals((getUserList_result)that); return false; } - public boolean equals(invalidateSession_result that) { + public boolean equals(getUserList_result that) { if (that == null) return false; - boolean this_present_ex = true && this.isSetEx(); - boolean that_present_ex = true && that.isSetEx(); - if (this_present_ex || that_present_ex) { - if (!(this_present_ex && that_present_ex)) + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) return false; - if (!this.ex.equals(that.ex)) + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_failure = true && this.isSetFailure(); + boolean that_present_failure = true && that.isSetFailure(); + if (this_present_failure || that_present_failure) { + if (!(this_present_failure && that_present_failure)) + return false; + if (!this.failure.equals(that.failure)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) return false; } @@ -16610,19 +16431,39 @@ public class SatelliteServer { } @Override - public int compareTo(invalidateSession_result other) { + public int compareTo(getUserList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFailure()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -16644,14 +16485,30 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("invalidateSession_result("); + StringBuilder sb = new StringBuilder("getUserList_result("); boolean first = true; - sb.append("ex:"); - if (this.ex == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.ex); + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("failure:"); + if (this.failure == null) { + sb.append("null"); + } else { + sb.append(this.failure); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); } first = false; sb.append(")"); @@ -16679,15 +16536,15 @@ public class SatelliteServer { } } - private static class invalidateSession_resultStandardSchemeFactory implements SchemeFactory { - public invalidateSession_resultStandardScheme getScheme() { - return new invalidateSession_resultStandardScheme(); + private static class getUserList_resultStandardSchemeFactory implements SchemeFactory { + public getUserList_resultStandardScheme getScheme() { + return new getUserList_resultStandardScheme(); } } - private static class invalidateSession_resultStandardScheme extends StandardScheme { + private static class getUserList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -16697,11 +16554,39 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // EX + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list170 = iprot.readListBegin(); + struct.success = new ArrayList(_list170.size); + for (int _i171 = 0; _i171 < _list170.size; ++_i171) + { + UserInfo _elem172; + _elem172 = new UserInfo(); + _elem172.read(iprot); + struct.success.add(_elem172); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // FAILURE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.ex = new TInvalidTokenException(); - struct.ex.read(iprot); - struct.setExIsSet(true); + struct.failure = new TAuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -16717,13 +16602,30 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.ex != null) { - oprot.writeFieldBegin(EX_FIELD_DESC); - struct.ex.write(oprot); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (UserInfo _iter173 : struct.success) + { + _iter173.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.failure != null) { + oprot.writeFieldBegin(FAILURE_FIELD_DESC); + struct.failure.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -16732,60 +16634,94 @@ public class SatelliteServer { } - private static class invalidateSession_resultTupleSchemeFactory implements SchemeFactory { - public invalidateSession_resultTupleScheme getScheme() { - return new invalidateSession_resultTupleScheme(); + private static class getUserList_resultTupleSchemeFactory implements SchemeFactory { + public getUserList_resultTupleScheme getScheme() { + return new getUserList_resultTupleScheme(); } } - private static class invalidateSession_resultTupleScheme extends TupleScheme { + private static class getUserList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetEx()) { + if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetEx()) { - struct.ex.write(oprot); + if (struct.isSetFailure()) { + optionals.set(1); + } + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (UserInfo _iter174 : struct.success) + { + _iter174.write(oprot); + } + } + } + if (struct.isSetFailure()) { + struct.failure.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, invalidateSession_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.ex = new TInvalidTokenException(); - struct.ex.read(iprot); - struct.setExIsSet(true); + { + org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list175.size); + for (int _i176 = 0; _i176 < _list175.size; ++_i176) + { + UserInfo _elem177; + _elem177 = new UserInfo(); + _elem177.read(iprot); + struct.success.add(_elem177); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.failure = new TAuthorizationException(); + struct.failure.read(iprot); + struct.setFailureIsSet(true); + } + if (incoming.get(2)) { + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } } } } - public static class getUserList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserList_args"); + public static class getUserConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserConfig_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserConfig_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserConfig_argsTupleSchemeFactory()); } public String userToken; // required - public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_TOKEN((short)1, "userToken"), - PAGE((short)2, "page"); + USER_TOKEN((short)1, "userToken"); private static final Map byName = new HashMap(); @@ -16802,8 +16738,6 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // PAGE - return PAGE; default: return null; } @@ -16844,59 +16778,48 @@ public class SatelliteServer { } // isset id assignments - private static final int __PAGE_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_args.class, metaDataMap); } - public getUserList_args() { + public getUserConfig_args() { } - public getUserList_args( - String userToken, - int page) + public getUserConfig_args( + String userToken) { this(); this.userToken = userToken; - this.page = page; - setPageIsSet(true); } /** * Performs a deep copy on other. */ - public getUserList_args(getUserList_args other) { - __isset_bitfield = other.__isset_bitfield; + public getUserConfig_args(getUserConfig_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - this.page = other.page; } - public getUserList_args deepCopy() { - return new getUserList_args(this); + public getUserConfig_args deepCopy() { + return new getUserConfig_args(this); } @Override public void clear() { this.userToken = null; - setPageIsSet(false); - this.page = 0; } public String getUserToken() { return this.userToken; } - public getUserList_args setUserToken(String userToken) { + public getUserConfig_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -16916,29 +16839,6 @@ public class SatelliteServer { } } - public int getPage() { - return this.page; - } - - public getUserList_args setPage(int page) { - this.page = page; - setPageIsSet(true); - return this; - } - - public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); - } - - /** Returns true if field page is set (has been assigned a value) and false otherwise */ - public boolean isSetPage() { - return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); - } - - public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -16949,14 +16849,6 @@ public class SatelliteServer { } break; - case PAGE: - if (value == null) { - unsetPage(); - } else { - setPage((Integer)value); - } - break; - } } @@ -16965,9 +16857,6 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case PAGE: - return Integer.valueOf(getPage()); - } throw new IllegalStateException(); } @@ -16981,8 +16870,6 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case PAGE: - return isSetPage(); } throw new IllegalStateException(); } @@ -16991,12 +16878,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserList_args) - return this.equals((getUserList_args)that); + if (that instanceof getUserConfig_args) + return this.equals((getUserConfig_args)that); return false; } - public boolean equals(getUserList_args that) { + public boolean equals(getUserConfig_args that) { if (that == null) return false; @@ -17009,15 +16896,6 @@ public class SatelliteServer { return false; } - boolean this_present_page = true; - boolean that_present_page = true; - if (this_present_page || that_present_page) { - if (!(this_present_page && that_present_page)) - return false; - if (this.page != that.page) - return false; - } - return true; } @@ -17027,7 +16905,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_args other) { + public int compareTo(getUserConfig_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17044,16 +16922,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -17071,7 +16939,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_args("); + StringBuilder sb = new StringBuilder("getUserConfig_args("); boolean first = true; sb.append("userToken:"); @@ -17081,10 +16949,6 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; - if (!first) sb.append(", "); - sb.append("page:"); - sb.append(this.page); - first = false; sb.append(")"); return sb.toString(); } @@ -17104,23 +16968,21 @@ public class SatelliteServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getUserList_argsStandardSchemeFactory implements SchemeFactory { - public getUserList_argsStandardScheme getScheme() { - return new getUserList_argsStandardScheme(); + private static class getUserConfig_argsStandardSchemeFactory implements SchemeFactory { + public getUserConfig_argsStandardScheme getScheme() { + return new getUserConfig_argsStandardScheme(); } } - private static class getUserList_argsStandardScheme extends StandardScheme { + private static class getUserConfig_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17138,14 +17000,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PAGE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -17157,7 +17011,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -17166,73 +17020,60 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(PAGE_FIELD_DESC); - oprot.writeI32(struct.page); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getUserList_argsTupleSchemeFactory implements SchemeFactory { - public getUserList_argsTupleScheme getScheme() { - return new getUserList_argsTupleScheme(); + private static class getUserConfig_argsTupleSchemeFactory implements SchemeFactory { + public getUserConfig_argsTupleScheme getScheme() { + return new getUserConfig_argsTupleScheme(); } } - private static class getUserList_argsTupleScheme extends TupleScheme { + private static class getUserConfig_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserConfig_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetPage()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetPage()) { - oprot.writeI32(struct.page); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserConfig_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } - if (incoming.get(1)) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); - } } } } - public static class getUserList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserList_result"); + public static class getUserConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserConfig_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserConfig_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserConfig_resultTupleSchemeFactory()); } - public List success; // required + public SatelliteUserConfig success; // required public TAuthorizationException failure; // required public TInvocationException serverError; // required @@ -17305,21 +17146,20 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserInfo.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteUserConfig.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_result.class, metaDataMap); } - public getUserList_result() { + public getUserConfig_result() { } - public getUserList_result( - List success, + public getUserConfig_result( + SatelliteUserConfig success, TAuthorizationException failure, TInvocationException serverError) { @@ -17332,13 +17172,9 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getUserList_result(getUserList_result other) { + public getUserConfig_result(getUserConfig_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (UserInfo other_element : other.success) { - __this__success.add(new UserInfo(other_element)); - } - this.success = __this__success; + this.success = new SatelliteUserConfig(other.success); } if (other.isSetFailure()) { this.failure = new TAuthorizationException(other.failure); @@ -17348,8 +17184,8 @@ public class SatelliteServer { } } - public getUserList_result deepCopy() { - return new getUserList_result(this); + public getUserConfig_result deepCopy() { + return new getUserConfig_result(this); } @Override @@ -17359,26 +17195,11 @@ public class SatelliteServer { this.serverError = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(UserInfo elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public SatelliteUserConfig getSuccess() { return this.success; } - public getUserList_result setSuccess(List success) { + public getUserConfig_result setSuccess(SatelliteUserConfig success) { this.success = success; return this; } @@ -17402,7 +17223,7 @@ public class SatelliteServer { return this.failure; } - public getUserList_result setFailure(TAuthorizationException failure) { + public getUserConfig_result setFailure(TAuthorizationException failure) { this.failure = failure; return this; } @@ -17426,7 +17247,7 @@ public class SatelliteServer { return this.serverError; } - public getUserList_result setServerError(TInvocationException serverError) { + public getUserConfig_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -17452,7 +17273,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((SatelliteUserConfig)value); } break; @@ -17511,12 +17332,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserList_result) - return this.equals((getUserList_result)that); + if (that instanceof getUserConfig_result) + return this.equals((getUserConfig_result)that); return false; } - public boolean equals(getUserList_result that) { + public boolean equals(getUserConfig_result that) { if (that == null) return false; @@ -17556,7 +17377,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserList_result other) { + public int compareTo(getUserConfig_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -17610,7 +17431,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserList_result("); + StringBuilder sb = new StringBuilder("getUserConfig_result("); boolean first = true; sb.append("success:"); @@ -17643,6 +17464,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -17661,15 +17485,15 @@ public class SatelliteServer { } } - private static class getUserList_resultStandardSchemeFactory implements SchemeFactory { - public getUserList_resultStandardScheme getScheme() { - return new getUserList_resultStandardScheme(); + private static class getUserConfig_resultStandardSchemeFactory implements SchemeFactory { + public getUserConfig_resultStandardScheme getScheme() { + return new getUserConfig_resultStandardScheme(); } } - private static class getUserList_resultStandardScheme extends StandardScheme { + private static class getUserConfig_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -17680,19 +17504,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); - struct.success = new ArrayList(_list154.size); - for (int _i155 = 0; _i155 < _list154.size; ++_i155) - { - UserInfo _elem156; - _elem156 = new UserInfo(); - _elem156.read(iprot); - struct.success.add(_elem156); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new SatelliteUserConfig(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -17727,20 +17541,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (UserInfo _iter157 : struct.success) - { - _iter157.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.failure != null) { @@ -17759,16 +17566,16 @@ public class SatelliteServer { } - private static class getUserList_resultTupleSchemeFactory implements SchemeFactory { - public getUserList_resultTupleScheme getScheme() { - return new getUserList_resultTupleScheme(); + private static class getUserConfig_resultTupleSchemeFactory implements SchemeFactory { + public getUserConfig_resultTupleScheme getScheme() { + return new getUserConfig_resultTupleScheme(); } } - private static class getUserList_resultTupleScheme extends TupleScheme { + private static class getUserConfig_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserConfig_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -17782,13 +17589,7 @@ public class SatelliteServer { } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (UserInfo _iter158 : struct.success) - { - _iter158.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetFailure()) { struct.failure.write(oprot); @@ -17799,21 +17600,12 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserConfig_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list159 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list159.size); - for (int _i160 = 0; _i160 < _list159.size; ++_i160) - { - UserInfo _elem161; - _elem161 = new UserInfo(); - _elem161.read(iprot); - struct.success.add(_elem161); - } - } + struct.success = new SatelliteUserConfig(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -17831,22 +17623,25 @@ public class SatelliteServer { } - public static class getUserConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserConfig_args"); + public static class setUserConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserConfig_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField CONFIG_FIELD_DESC = new org.apache.thrift.protocol.TField("config", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserConfig_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserConfig_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setUserConfig_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setUserConfig_argsTupleSchemeFactory()); } public String userToken; // required + public SatelliteUserConfig config; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_TOKEN((short)1, "userToken"); + USER_TOKEN((short)1, "userToken"), + CONFIG((short)2, "config"); private static final Map byName = new HashMap(); @@ -17863,6 +17658,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; + case 2: // CONFIG + return CONFIG; default: return null; } @@ -17908,43 +17705,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.CONFIG, new org.apache.thrift.meta_data.FieldMetaData("config", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteUserConfig.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_args.class, metaDataMap); } - public getUserConfig_args() { + public setUserConfig_args() { } - public getUserConfig_args( - String userToken) + public setUserConfig_args( + String userToken, + SatelliteUserConfig config) { this(); this.userToken = userToken; + this.config = config; } /** * Performs a deep copy on other. */ - public getUserConfig_args(getUserConfig_args other) { + public setUserConfig_args(setUserConfig_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } + if (other.isSetConfig()) { + this.config = new SatelliteUserConfig(other.config); + } } - public getUserConfig_args deepCopy() { - return new getUserConfig_args(this); + public setUserConfig_args deepCopy() { + return new setUserConfig_args(this); } @Override public void clear() { this.userToken = null; + this.config = null; } public String getUserToken() { return this.userToken; } - public getUserConfig_args setUserToken(String userToken) { + public setUserConfig_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -17964,6 +17769,30 @@ public class SatelliteServer { } } + public SatelliteUserConfig getConfig() { + return this.config; + } + + public setUserConfig_args setConfig(SatelliteUserConfig config) { + this.config = config; + return this; + } + + public void unsetConfig() { + this.config = null; + } + + /** Returns true if field config is set (has been assigned a value) and false otherwise */ + public boolean isSetConfig() { + return this.config != null; + } + + public void setConfigIsSet(boolean value) { + if (!value) { + this.config = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -17974,6 +17803,14 @@ public class SatelliteServer { } break; + case CONFIG: + if (value == null) { + unsetConfig(); + } else { + setConfig((SatelliteUserConfig)value); + } + break; + } } @@ -17982,6 +17819,9 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); + case CONFIG: + return getConfig(); + } throw new IllegalStateException(); } @@ -17995,6 +17835,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); + case CONFIG: + return isSetConfig(); } throw new IllegalStateException(); } @@ -18003,12 +17845,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserConfig_args) - return this.equals((getUserConfig_args)that); + if (that instanceof setUserConfig_args) + return this.equals((setUserConfig_args)that); return false; } - public boolean equals(getUserConfig_args that) { + public boolean equals(setUserConfig_args that) { if (that == null) return false; @@ -18021,6 +17863,15 @@ public class SatelliteServer { return false; } + boolean this_present_config = true && this.isSetConfig(); + boolean that_present_config = true && that.isSetConfig(); + if (this_present_config || that_present_config) { + if (!(this_present_config && that_present_config)) + return false; + if (!this.config.equals(that.config)) + return false; + } + return true; } @@ -18030,7 +17881,7 @@ public class SatelliteServer { } @Override - public int compareTo(getUserConfig_args other) { + public int compareTo(setUserConfig_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -18047,6 +17898,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetConfig()).compareTo(other.isSetConfig()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetConfig()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.config, other.config); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -18064,7 +17925,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserConfig_args("); + StringBuilder sb = new StringBuilder("setUserConfig_args("); boolean first = true; sb.append("userToken:"); @@ -18074,6 +17935,14 @@ public class SatelliteServer { sb.append(this.userToken); } first = false; + if (!first) sb.append(", "); + sb.append("config:"); + if (this.config == null) { + sb.append("null"); + } else { + sb.append(this.config); + } + first = false; sb.append(")"); return sb.toString(); } @@ -18081,6 +17950,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (config != null) { + config.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -18099,15 +17971,15 @@ public class SatelliteServer { } } - private static class getUserConfig_argsStandardSchemeFactory implements SchemeFactory { - public getUserConfig_argsStandardScheme getScheme() { - return new getUserConfig_argsStandardScheme(); + private static class setUserConfig_argsStandardSchemeFactory implements SchemeFactory { + public setUserConfig_argsStandardScheme getScheme() { + return new setUserConfig_argsStandardScheme(); } } - private static class getUserConfig_argsStandardScheme extends StandardScheme { + private static class setUserConfig_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18125,6 +17997,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // CONFIG + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.config = new SatelliteUserConfig(); + struct.config.read(iprot); + struct.setConfigIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -18136,7 +18017,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -18145,66 +18026,79 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } + if (struct.config != null) { + oprot.writeFieldBegin(CONFIG_FIELD_DESC); + struct.config.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getUserConfig_argsTupleSchemeFactory implements SchemeFactory { - public getUserConfig_argsTupleScheme getScheme() { - return new getUserConfig_argsTupleScheme(); + private static class setUserConfig_argsTupleSchemeFactory implements SchemeFactory { + public setUserConfig_argsTupleScheme getScheme() { + return new setUserConfig_argsTupleScheme(); } } - private static class getUserConfig_argsTupleScheme extends TupleScheme { + private static class setUserConfig_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetConfig()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } + if (struct.isSetConfig()) { + struct.config.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserConfig_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } + if (incoming.get(1)) { + struct.config = new SatelliteUserConfig(); + struct.config.read(iprot); + struct.setConfigIsSet(true); + } } } } - public static class getUserConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserConfig_result"); + public static class setUserConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserConfig_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getUserConfig_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getUserConfig_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setUserConfig_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setUserConfig_resultTupleSchemeFactory()); } - public SatelliteUserConfig success; // required public TAuthorizationException failure; // required public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), FAILURE((short)1, "failure"), SERVER_ERROR((short)2, "serverError"); @@ -18221,8 +18115,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // FAILURE return FAILURE; case 2: // SERVER_ERROR @@ -18270,26 +18162,22 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteUserConfig.class))); tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserConfig_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_result.class, metaDataMap); } - public getUserConfig_result() { + public setUserConfig_result() { } - public getUserConfig_result( - SatelliteUserConfig success, + public setUserConfig_result( TAuthorizationException failure, TInvocationException serverError) { this(); - this.success = success; this.failure = failure; this.serverError = serverError; } @@ -18297,10 +18185,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getUserConfig_result(getUserConfig_result other) { - if (other.isSetSuccess()) { - this.success = new SatelliteUserConfig(other.success); - } + public setUserConfig_result(setUserConfig_result other) { if (other.isSetFailure()) { this.failure = new TAuthorizationException(other.failure); } @@ -18309,46 +18194,21 @@ public class SatelliteServer { } } - public getUserConfig_result deepCopy() { - return new getUserConfig_result(this); + public setUserConfig_result deepCopy() { + return new setUserConfig_result(this); } @Override public void clear() { - this.success = null; this.failure = null; this.serverError = null; } - public SatelliteUserConfig getSuccess() { - return this.success; - } - - public getUserConfig_result setSuccess(SatelliteUserConfig success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - public TAuthorizationException getFailure() { return this.failure; } - public getUserConfig_result setFailure(TAuthorizationException failure) { + public setUserConfig_result setFailure(TAuthorizationException failure) { this.failure = failure; return this; } @@ -18372,7 +18232,7 @@ public class SatelliteServer { return this.serverError; } - public getUserConfig_result setServerError(TInvocationException serverError) { + public setUserConfig_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -18394,14 +18254,6 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((SatelliteUserConfig)value); - } - break; - case FAILURE: if (value == null) { unsetFailure(); @@ -18423,9 +18275,6 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case FAILURE: return getFailure(); @@ -18443,8 +18292,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case FAILURE: return isSetFailure(); case SERVER_ERROR: @@ -18457,24 +18304,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getUserConfig_result) - return this.equals((getUserConfig_result)that); + if (that instanceof setUserConfig_result) + return this.equals((setUserConfig_result)that); return false; } - public boolean equals(getUserConfig_result that) { + public boolean equals(setUserConfig_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_failure = true && this.isSetFailure(); boolean that_present_failure = true && that.isSetFailure(); if (this_present_failure || that_present_failure) { @@ -18502,23 +18340,13 @@ public class SatelliteServer { } @Override - public int compareTo(getUserConfig_result other) { + public int compareTo(setUserConfig_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); if (lastComparison != 0) { return lastComparison; @@ -18556,17 +18384,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getUserConfig_result("); + StringBuilder sb = new StringBuilder("setUserConfig_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); sb.append("failure:"); if (this.failure == null) { sb.append("null"); @@ -18589,9 +18409,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -18610,15 +18427,15 @@ public class SatelliteServer { } } - private static class getUserConfig_resultStandardSchemeFactory implements SchemeFactory { - public getUserConfig_resultStandardScheme getScheme() { - return new getUserConfig_resultStandardScheme(); + private static class setUserConfig_resultStandardSchemeFactory implements SchemeFactory { + public setUserConfig_resultStandardScheme getScheme() { + return new setUserConfig_resultStandardScheme(); } } - private static class getUserConfig_resultStandardScheme extends StandardScheme { + private static class setUserConfig_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -18628,15 +18445,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new SatelliteUserConfig(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // FAILURE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.failure = new TAuthorizationException(); @@ -18666,15 +18474,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } if (struct.failure != null) { oprot.writeFieldBegin(FAILURE_FIELD_DESC); struct.failure.write(oprot); @@ -18691,31 +18494,25 @@ public class SatelliteServer { } - private static class getUserConfig_resultTupleSchemeFactory implements SchemeFactory { - public getUserConfig_resultTupleScheme getScheme() { - return new getUserConfig_resultTupleScheme(); + private static class setUserConfig_resultTupleSchemeFactory implements SchemeFactory { + public setUserConfig_resultTupleScheme getScheme() { + return new setUserConfig_resultTupleScheme(); } } - private static class getUserConfig_resultTupleScheme extends TupleScheme { + private static class setUserConfig_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetFailure()) { - optionals.set(1); + optionals.set(0); } if (struct.isSetServerError()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - struct.success.write(oprot); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetFailure()) { struct.failure.write(oprot); } @@ -18725,20 +18522,15 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getUserConfig_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new SatelliteUserConfig(); - struct.success.read(iprot); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.failure = new TAuthorizationException(); struct.failure.read(iprot); struct.setFailureIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -18748,25 +18540,20 @@ public class SatelliteServer { } - public static class setUserConfig_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserConfig_args"); + public static class getOperatingSystems_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_args"); - private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField CONFIG_FIELD_DESC = new org.apache.thrift.protocol.TField("config", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setUserConfig_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUserConfig_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); } - public String userToken; // required - public SatelliteUserConfig config; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - USER_TOKEN((short)1, "userToken"), - CONFIG((short)2, "config"); +; private static final Map byName = new HashMap(); @@ -18781,10 +18568,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_TOKEN - return USER_TOKEN; - case 2: // CONFIG - return CONFIG; default: return null; } @@ -18823,130 +18606,37 @@ public class SatelliteServer { return _fieldName; } } - - // isset id assignments public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.CONFIG, new org.apache.thrift.meta_data.FieldMetaData("config", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteUserConfig.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_args.class, metaDataMap); - } - - public setUserConfig_args() { + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); } - public setUserConfig_args( - String userToken, - SatelliteUserConfig config) - { - this(); - this.userToken = userToken; - this.config = config; + public getOperatingSystems_args() { } /** * Performs a deep copy on other. */ - public setUserConfig_args(setUserConfig_args other) { - if (other.isSetUserToken()) { - this.userToken = other.userToken; - } - if (other.isSetConfig()) { - this.config = new SatelliteUserConfig(other.config); - } + public getOperatingSystems_args(getOperatingSystems_args other) { } - public setUserConfig_args deepCopy() { - return new setUserConfig_args(this); + public getOperatingSystems_args deepCopy() { + return new getOperatingSystems_args(this); } @Override public void clear() { - this.userToken = null; - this.config = null; - } - - public String getUserToken() { - return this.userToken; - } - - public setUserConfig_args setUserToken(String userToken) { - this.userToken = userToken; - return this; - } - - public void unsetUserToken() { - this.userToken = null; - } - - /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ - public boolean isSetUserToken() { - return this.userToken != null; - } - - public void setUserTokenIsSet(boolean value) { - if (!value) { - this.userToken = null; - } - } - - public SatelliteUserConfig getConfig() { - return this.config; - } - - public setUserConfig_args setConfig(SatelliteUserConfig config) { - this.config = config; - return this; - } - - public void unsetConfig() { - this.config = null; - } - - /** Returns true if field config is set (has been assigned a value) and false otherwise */ - public boolean isSetConfig() { - return this.config != null; - } - - public void setConfigIsSet(boolean value) { - if (!value) { - this.config = null; - } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case USER_TOKEN: - if (value == null) { - unsetUserToken(); - } else { - setUserToken((String)value); - } - break; - - case CONFIG: - if (value == null) { - unsetConfig(); - } else { - setConfig((SatelliteUserConfig)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { - case USER_TOKEN: - return getUserToken(); - - case CONFIG: - return getConfig(); - } throw new IllegalStateException(); } @@ -18958,10 +18648,6 @@ public class SatelliteServer { } switch (field) { - case USER_TOKEN: - return isSetUserToken(); - case CONFIG: - return isSetConfig(); } throw new IllegalStateException(); } @@ -18970,33 +18656,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setUserConfig_args) - return this.equals((setUserConfig_args)that); + if (that instanceof getOperatingSystems_args) + return this.equals((getOperatingSystems_args)that); return false; } - public boolean equals(setUserConfig_args that) { + public boolean equals(getOperatingSystems_args that) { if (that == null) return false; - boolean this_present_userToken = true && this.isSetUserToken(); - boolean that_present_userToken = true && that.isSetUserToken(); - if (this_present_userToken || that_present_userToken) { - if (!(this_present_userToken && that_present_userToken)) - return false; - if (!this.userToken.equals(that.userToken)) - return false; - } - - boolean this_present_config = true && this.isSetConfig(); - boolean that_present_config = true && that.isSetConfig(); - if (this_present_config || that_present_config) { - if (!(this_present_config && that_present_config)) - return false; - if (!this.config.equals(that.config)) - return false; - } - return true; } @@ -19006,33 +18674,13 @@ public class SatelliteServer { } @Override - public int compareTo(setUserConfig_args other) { + public int compareTo(getOperatingSystems_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUserToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetConfig()).compareTo(other.isSetConfig()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetConfig()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.config, other.config); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -19050,24 +18698,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setUserConfig_args("); + StringBuilder sb = new StringBuilder("getOperatingSystems_args("); boolean first = true; - sb.append("userToken:"); - if (this.userToken == null) { - sb.append("null"); - } else { - sb.append(this.userToken); - } - first = false; - if (!first) sb.append(", "); - sb.append("config:"); - if (this.config == null) { - sb.append("null"); - } else { - sb.append(this.config); - } - first = false; sb.append(")"); return sb.toString(); } @@ -19075,9 +18708,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (config != null) { - config.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -19096,15 +18726,15 @@ public class SatelliteServer { } } - private static class setUserConfig_argsStandardSchemeFactory implements SchemeFactory { - public setUserConfig_argsStandardScheme getScheme() { - return new setUserConfig_argsStandardScheme(); + private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsStandardScheme getScheme() { + return new getOperatingSystems_argsStandardScheme(); } } - private static class setUserConfig_argsStandardScheme extends StandardScheme { + private static class getOperatingSystems_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19114,23 +18744,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // USER_TOKEN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userToken = iprot.readString(); - struct.setUserTokenIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // CONFIG - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.config = new SatelliteUserConfig(); - struct.config.read(iprot); - struct.setConfigIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19142,90 +18755,53 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.userToken != null) { - oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); - oprot.writeString(struct.userToken); - oprot.writeFieldEnd(); - } - if (struct.config != null) { - oprot.writeFieldBegin(CONFIG_FIELD_DESC); - struct.config.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setUserConfig_argsTupleSchemeFactory implements SchemeFactory { - public setUserConfig_argsTupleScheme getScheme() { - return new setUserConfig_argsTupleScheme(); + private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_argsTupleScheme getScheme() { + return new getOperatingSystems_argsTupleScheme(); } } - private static class setUserConfig_argsTupleScheme extends TupleScheme { + private static class getOperatingSystems_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetUserToken()) { - optionals.set(0); - } - if (struct.isSetConfig()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetUserToken()) { - oprot.writeString(struct.userToken); - } - if (struct.isSetConfig()) { - struct.config.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); - if (incoming.get(0)) { - struct.userToken = iprot.readString(); - struct.setUserTokenIsSet(true); - } - if (incoming.get(1)) { - struct.config = new SatelliteUserConfig(); - struct.config.read(iprot); - struct.setConfigIsSet(true); - } } } } - public static class setUserConfig_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUserConfig_result"); + public static class getOperatingSystems_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_result"); - private static final org.apache.thrift.protocol.TField FAILURE_FIELD_DESC = new org.apache.thrift.protocol.TField("failure", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setUserConfig_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setUserConfig_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getOperatingSystems_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory()); } - public TAuthorizationException failure; // required - public TInvocationException serverError; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - FAILURE((short)1, "failure"), - SERVER_ERROR((short)2, "serverError"); + SUCCESS((short)0, "success"); private static final Map byName = new HashMap(); @@ -19240,10 +18816,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // FAILURE - return FAILURE; - case 2: // SERVER_ERROR - return SERVER_ERROR; + case 0: // SUCCESS + return SUCCESS; default: return null; } @@ -19287,111 +18861,91 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.FAILURE, new org.apache.thrift.meta_data.FieldMetaData("failure", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OperatingSystem.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUserConfig_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap); } - public setUserConfig_result() { + public getOperatingSystems_result() { } - public setUserConfig_result( - TAuthorizationException failure, - TInvocationException serverError) + public getOperatingSystems_result( + List success) { this(); - this.failure = failure; - this.serverError = serverError; + this.success = success; } /** * Performs a deep copy on other. */ - public setUserConfig_result(setUserConfig_result other) { - if (other.isSetFailure()) { - this.failure = new TAuthorizationException(other.failure); - } - if (other.isSetServerError()) { - this.serverError = new TInvocationException(other.serverError); + public getOperatingSystems_result(getOperatingSystems_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (OperatingSystem other_element : other.success) { + __this__success.add(new OperatingSystem(other_element)); + } + this.success = __this__success; } } - public setUserConfig_result deepCopy() { - return new setUserConfig_result(this); + public getOperatingSystems_result deepCopy() { + return new getOperatingSystems_result(this); } @Override public void clear() { - this.failure = null; - this.serverError = null; - } - - public TAuthorizationException getFailure() { - return this.failure; - } - - public setUserConfig_result setFailure(TAuthorizationException failure) { - this.failure = failure; - return this; + this.success = null; } - public void unsetFailure() { - this.failure = null; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - /** Returns true if field failure is set (has been assigned a value) and false otherwise */ - public boolean isSetFailure() { - return this.failure != null; + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); } - public void setFailureIsSet(boolean value) { - if (!value) { - this.failure = null; + public void addToSuccess(OperatingSystem elem) { + if (this.success == null) { + this.success = new ArrayList(); } + this.success.add(elem); } - public TInvocationException getServerError() { - return this.serverError; + public List getSuccess() { + return this.success; } - public setUserConfig_result setServerError(TInvocationException serverError) { - this.serverError = serverError; + public getOperatingSystems_result setSuccess(List success) { + this.success = success; return this; } - public void unsetServerError() { - this.serverError = null; + public void unsetSuccess() { + this.success = null; } - /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ - public boolean isSetServerError() { - return this.serverError != null; + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; } - public void setServerErrorIsSet(boolean value) { + public void setSuccessIsSet(boolean value) { if (!value) { - this.serverError = null; + this.success = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case FAILURE: - if (value == null) { - unsetFailure(); - } else { - setFailure((TAuthorizationException)value); - } - break; - - case SERVER_ERROR: + case SUCCESS: if (value == null) { - unsetServerError(); + unsetSuccess(); } else { - setServerError((TInvocationException)value); + setSuccess((List)value); } break; @@ -19400,11 +18954,8 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case FAILURE: - return getFailure(); - - case SERVER_ERROR: - return getServerError(); + case SUCCESS: + return getSuccess(); } throw new IllegalStateException(); @@ -19417,10 +18968,8 @@ public class SatelliteServer { } switch (field) { - case FAILURE: - return isSetFailure(); - case SERVER_ERROR: - return isSetServerError(); + case SUCCESS: + return isSetSuccess(); } throw new IllegalStateException(); } @@ -19429,30 +18978,21 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setUserConfig_result) - return this.equals((setUserConfig_result)that); + if (that instanceof getOperatingSystems_result) + return this.equals((getOperatingSystems_result)that); return false; } - public boolean equals(setUserConfig_result that) { + public boolean equals(getOperatingSystems_result that) { if (that == null) return false; - boolean this_present_failure = true && this.isSetFailure(); - boolean that_present_failure = true && that.isSetFailure(); - if (this_present_failure || that_present_failure) { - if (!(this_present_failure && that_present_failure)) - return false; - if (!this.failure.equals(that.failure)) - return false; - } - - boolean this_present_serverError = true && this.isSetServerError(); - boolean that_present_serverError = true && that.isSetServerError(); - if (this_present_serverError || that_present_serverError) { - if (!(this_present_serverError && that_present_serverError)) + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) return false; - if (!this.serverError.equals(that.serverError)) + if (!this.success.equals(that.success)) return false; } @@ -19465,29 +19005,19 @@ public class SatelliteServer { } @Override - public int compareTo(setUserConfig_result other) { + public int compareTo(getOperatingSystems_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetFailure()).compareTo(other.isSetFailure()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFailure()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failure, other.failure); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); if (lastComparison != 0) { return lastComparison; } @@ -19509,22 +19039,14 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setUserConfig_result("); + StringBuilder sb = new StringBuilder("getOperatingSystems_result("); boolean first = true; - sb.append("failure:"); - if (this.failure == null) { - sb.append("null"); - } else { - sb.append(this.failure); - } - first = false; - if (!first) sb.append(", "); - sb.append("serverError:"); - if (this.serverError == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.serverError); + sb.append(this.success); } first = false; sb.append(")"); @@ -19552,15 +19074,15 @@ public class SatelliteServer { } } - private static class setUserConfig_resultStandardSchemeFactory implements SchemeFactory { - public setUserConfig_resultStandardScheme getScheme() { - return new setUserConfig_resultStandardScheme(); + private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultStandardScheme getScheme() { + return new getOperatingSystems_resultStandardScheme(); } } - private static class setUserConfig_resultStandardScheme extends StandardScheme { + private static class getOperatingSystems_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setUserConfig_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19570,20 +19092,21 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 1: // FAILURE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.failure = new TAuthorizationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // SERVER_ERROR - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); + struct.success = new ArrayList(_list178.size); + for (int _i179 = 0; _i179 < _list178.size; ++_i179) + { + OperatingSystem _elem180; + _elem180 = new OperatingSystem(); + _elem180.read(iprot); + struct.success.add(_elem180); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -19599,18 +19122,20 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setUserConfig_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.failure != null) { - oprot.writeFieldBegin(FAILURE_FIELD_DESC); - struct.failure.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.serverError != null) { - oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); - struct.serverError.write(oprot); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (OperatingSystem _iter181 : struct.success) + { + _iter181.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -19619,60 +19144,64 @@ public class SatelliteServer { } - private static class setUserConfig_resultTupleSchemeFactory implements SchemeFactory { - public setUserConfig_resultTupleScheme getScheme() { - return new setUserConfig_resultTupleScheme(); + private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { + public getOperatingSystems_resultTupleScheme getScheme() { + return new getOperatingSystems_resultTupleScheme(); } } - private static class setUserConfig_resultTupleScheme extends TupleScheme { + private static class getOperatingSystems_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setUserConfig_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetFailure()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetServerError()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetFailure()) { - struct.failure.write(oprot); - } - if (struct.isSetServerError()) { - struct.serverError.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (OperatingSystem _iter182 : struct.success) + { + _iter182.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setUserConfig_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.failure = new TAuthorizationException(); - struct.failure.read(iprot); - struct.setFailureIsSet(true); - } - if (incoming.get(1)) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + { + org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list183.size); + for (int _i184 = 0; _i184 < _list183.size; ++_i184) + { + OperatingSystem _elem185; + _elem185 = new OperatingSystem(); + _elem185.read(iprot); + struct.success.add(_elem185); + } + } + struct.setSuccessIsSet(true); } } } } - public static class getOperatingSystems_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_args"); + public static class getVirtualizers_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getOperatingSystems_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getVirtualizers_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory()); } @@ -19735,20 +19264,20 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap); } - public getOperatingSystems_args() { + public getVirtualizers_args() { } /** * Performs a deep copy on other. */ - public getOperatingSystems_args(getOperatingSystems_args other) { + public getVirtualizers_args(getVirtualizers_args other) { } - public getOperatingSystems_args deepCopy() { - return new getOperatingSystems_args(this); + public getVirtualizers_args deepCopy() { + return new getVirtualizers_args(this); } @Override @@ -19781,12 +19310,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOperatingSystems_args) - return this.equals((getOperatingSystems_args)that); + if (that instanceof getVirtualizers_args) + return this.equals((getVirtualizers_args)that); return false; } - public boolean equals(getOperatingSystems_args that) { + public boolean equals(getVirtualizers_args that) { if (that == null) return false; @@ -19799,7 +19328,7 @@ public class SatelliteServer { } @Override - public int compareTo(getOperatingSystems_args other) { + public int compareTo(getVirtualizers_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -19823,7 +19352,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_args("); + StringBuilder sb = new StringBuilder("getVirtualizers_args("); boolean first = true; sb.append(")"); @@ -19851,15 +19380,15 @@ public class SatelliteServer { } } - private static class getOperatingSystems_argsStandardSchemeFactory implements SchemeFactory { - public getOperatingSystems_argsStandardScheme getScheme() { - return new getOperatingSystems_argsStandardScheme(); + private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { + public getVirtualizers_argsStandardScheme getScheme() { + return new getVirtualizers_argsStandardScheme(); } } - private static class getOperatingSystems_argsStandardScheme extends StandardScheme { + private static class getVirtualizers_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -19880,7 +19409,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -19890,39 +19419,39 @@ public class SatelliteServer { } - private static class getOperatingSystems_argsTupleSchemeFactory implements SchemeFactory { - public getOperatingSystems_argsTupleScheme getScheme() { - return new getOperatingSystems_argsTupleScheme(); + private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { + public getVirtualizers_argsTupleScheme getScheme() { + return new getVirtualizers_argsTupleScheme(); } } - private static class getOperatingSystems_argsTupleScheme extends TupleScheme { + private static class getVirtualizers_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getOperatingSystems_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOperatingSystems_result"); + public static class getVirtualizers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getOperatingSystems_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getOperatingSystems_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getVirtualizers_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getVirtualizers_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -19988,16 +19517,16 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OperatingSystem.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Virtualizer.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOperatingSystems_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); } - public getOperatingSystems_result() { + public getVirtualizers_result() { } - public getOperatingSystems_result( - List success) + public getVirtualizers_result( + List success) { this(); this.success = success; @@ -20006,18 +19535,18 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getOperatingSystems_result(getOperatingSystems_result other) { + public getVirtualizers_result(getVirtualizers_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (OperatingSystem other_element : other.success) { - __this__success.add(new OperatingSystem(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Virtualizer other_element : other.success) { + __this__success.add(new Virtualizer(other_element)); } this.success = __this__success; } } - public getOperatingSystems_result deepCopy() { - return new getOperatingSystems_result(this); + public getVirtualizers_result deepCopy() { + return new getVirtualizers_result(this); } @Override @@ -20029,22 +19558,22 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(OperatingSystem elem) { + public void addToSuccess(Virtualizer elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getOperatingSystems_result setSuccess(List success) { + public getVirtualizers_result setSuccess(List success) { this.success = success; return this; } @@ -20070,7 +19599,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -20103,12 +19632,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getOperatingSystems_result) - return this.equals((getOperatingSystems_result)that); + if (that instanceof getVirtualizers_result) + return this.equals((getVirtualizers_result)that); return false; } - public boolean equals(getOperatingSystems_result that) { + public boolean equals(getVirtualizers_result that) { if (that == null) return false; @@ -20130,7 +19659,7 @@ public class SatelliteServer { } @Override - public int compareTo(getOperatingSystems_result other) { + public int compareTo(getVirtualizers_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20164,7 +19693,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getOperatingSystems_result("); + StringBuilder sb = new StringBuilder("getVirtualizers_result("); boolean first = true; sb.append("success:"); @@ -20199,15 +19728,15 @@ public class SatelliteServer { } } - private static class getOperatingSystems_resultStandardSchemeFactory implements SchemeFactory { - public getOperatingSystems_resultStandardScheme getScheme() { - return new getOperatingSystems_resultStandardScheme(); + private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { + public getVirtualizers_resultStandardScheme getScheme() { + return new getVirtualizers_resultStandardScheme(); } } - private static class getOperatingSystems_resultStandardScheme extends StandardScheme { + private static class getVirtualizers_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20220,14 +19749,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); - struct.success = new ArrayList(_list162.size); - for (int _i163 = 0; _i163 < _list162.size; ++_i163) + org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(); + struct.success = new ArrayList(_list186.size); + for (int _i187 = 0; _i187 < _list186.size; ++_i187) { - OperatingSystem _elem164; - _elem164 = new OperatingSystem(); - _elem164.read(iprot); - struct.success.add(_elem164); + Virtualizer _elem188; + _elem188 = new Virtualizer(); + _elem188.read(iprot); + struct.success.add(_elem188); } iprot.readListEnd(); } @@ -20247,7 +19776,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20255,9 +19784,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (OperatingSystem _iter165 : struct.success) + for (Virtualizer _iter189 : struct.success) { - _iter165.write(oprot); + _iter189.write(oprot); } oprot.writeListEnd(); } @@ -20269,16 +19798,16 @@ public class SatelliteServer { } - private static class getOperatingSystems_resultTupleSchemeFactory implements SchemeFactory { - public getOperatingSystems_resultTupleScheme getScheme() { - return new getOperatingSystems_resultTupleScheme(); + private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { + public getVirtualizers_resultTupleScheme getScheme() { + return new getVirtualizers_resultTupleScheme(); } } - private static class getOperatingSystems_resultTupleScheme extends TupleScheme { + private static class getVirtualizers_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -20288,28 +19817,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (OperatingSystem _iter166 : struct.success) + for (Virtualizer _iter190 : struct.success) { - _iter166.write(oprot); + _iter190.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getOperatingSystems_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list167.size); - for (int _i168 = 0; _i168 < _list167.size; ++_i168) + org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list191.size); + for (int _i192 = 0; _i192 < _list191.size; ++_i192) { - OperatingSystem _elem169; - _elem169 = new OperatingSystem(); - _elem169.read(iprot); - struct.success.add(_elem169); + Virtualizer _elem193; + _elem193 = new Virtualizer(); + _elem193.read(iprot); + struct.success.add(_elem193); } } struct.setSuccessIsSet(true); @@ -20319,14 +19848,14 @@ public class SatelliteServer { } - public static class getVirtualizers_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_args"); + public static class getAllOrganizations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getVirtualizers_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVirtualizers_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOrganizations_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); } @@ -20389,20 +19918,20 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_args.class, metaDataMap); } - public getVirtualizers_args() { + public getAllOrganizations_args() { } /** * Performs a deep copy on other. */ - public getVirtualizers_args(getVirtualizers_args other) { + public getAllOrganizations_args(getAllOrganizations_args other) { } - public getVirtualizers_args deepCopy() { - return new getVirtualizers_args(this); + public getAllOrganizations_args deepCopy() { + return new getAllOrganizations_args(this); } @Override @@ -20435,12 +19964,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getVirtualizers_args) - return this.equals((getVirtualizers_args)that); + if (that instanceof getAllOrganizations_args) + return this.equals((getAllOrganizations_args)that); return false; } - public boolean equals(getVirtualizers_args that) { + public boolean equals(getAllOrganizations_args that) { if (that == null) return false; @@ -20453,7 +19982,7 @@ public class SatelliteServer { } @Override - public int compareTo(getVirtualizers_args other) { + public int compareTo(getAllOrganizations_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20477,7 +20006,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_args("); + StringBuilder sb = new StringBuilder("getAllOrganizations_args("); boolean first = true; sb.append(")"); @@ -20505,15 +20034,15 @@ public class SatelliteServer { } } - private static class getVirtualizers_argsStandardSchemeFactory implements SchemeFactory { - public getVirtualizers_argsStandardScheme getScheme() { - return new getVirtualizers_argsStandardScheme(); + private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { + public getAllOrganizations_argsStandardScheme getScheme() { + return new getAllOrganizations_argsStandardScheme(); } } - private static class getVirtualizers_argsStandardScheme extends StandardScheme { + private static class getAllOrganizations_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20534,7 +20063,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20544,39 +20073,39 @@ public class SatelliteServer { } - private static class getVirtualizers_argsTupleSchemeFactory implements SchemeFactory { - public getVirtualizers_argsTupleScheme getScheme() { - return new getVirtualizers_argsTupleScheme(); + private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { + public getAllOrganizations_argsTupleScheme getScheme() { + return new getAllOrganizations_argsTupleScheme(); } } - private static class getVirtualizers_argsTupleScheme extends TupleScheme { + private static class getAllOrganizations_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getVirtualizers_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVirtualizers_result"); + public static class getAllOrganizations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getVirtualizers_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getVirtualizers_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getAllOrganizations_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getAllOrganizations_resultTupleSchemeFactory()); } - public List success; // required + public List success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -20642,16 +20171,16 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Virtualizer.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Organization.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVirtualizers_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); } - public getVirtualizers_result() { + public getAllOrganizations_result() { } - public getVirtualizers_result( - List success) + public getAllOrganizations_result( + List success) { this(); this.success = success; @@ -20660,18 +20189,18 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getVirtualizers_result(getVirtualizers_result other) { + public getAllOrganizations_result(getAllOrganizations_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Virtualizer other_element : other.success) { - __this__success.add(new Virtualizer(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (Organization other_element : other.success) { + __this__success.add(new Organization(other_element)); } this.success = __this__success; } } - public getVirtualizers_result deepCopy() { - return new getVirtualizers_result(this); + public getAllOrganizations_result deepCopy() { + return new getAllOrganizations_result(this); } @Override @@ -20683,22 +20212,22 @@ public class SatelliteServer { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Virtualizer elem) { + public void addToSuccess(Organization elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getVirtualizers_result setSuccess(List success) { + public getAllOrganizations_result setSuccess(List success) { this.success = success; return this; } @@ -20724,7 +20253,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -20757,12 +20286,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getVirtualizers_result) - return this.equals((getVirtualizers_result)that); + if (that instanceof getAllOrganizations_result) + return this.equals((getAllOrganizations_result)that); return false; } - public boolean equals(getVirtualizers_result that) { + public boolean equals(getAllOrganizations_result that) { if (that == null) return false; @@ -20784,7 +20313,7 @@ public class SatelliteServer { } @Override - public int compareTo(getVirtualizers_result other) { + public int compareTo(getAllOrganizations_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -20818,7 +20347,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getVirtualizers_result("); + StringBuilder sb = new StringBuilder("getAllOrganizations_result("); boolean first = true; sb.append("success:"); @@ -20853,15 +20382,15 @@ public class SatelliteServer { } } - private static class getVirtualizers_resultStandardSchemeFactory implements SchemeFactory { - public getVirtualizers_resultStandardScheme getScheme() { - return new getVirtualizers_resultStandardScheme(); + private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { + public getAllOrganizations_resultStandardScheme getScheme() { + return new getAllOrganizations_resultStandardScheme(); } } - private static class getVirtualizers_resultStandardScheme extends StandardScheme { + private static class getAllOrganizations_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -20874,14 +20403,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list170 = iprot.readListBegin(); - struct.success = new ArrayList(_list170.size); - for (int _i171 = 0; _i171 < _list170.size; ++_i171) + org.apache.thrift.protocol.TList _list194 = iprot.readListBegin(); + struct.success = new ArrayList(_list194.size); + for (int _i195 = 0; _i195 < _list194.size; ++_i195) { - Virtualizer _elem172; - _elem172 = new Virtualizer(); - _elem172.read(iprot); - struct.success.add(_elem172); + Organization _elem196; + _elem196 = new Organization(); + _elem196.read(iprot); + struct.success.add(_elem196); } iprot.readListEnd(); } @@ -20901,7 +20430,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -20909,9 +20438,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Virtualizer _iter173 : struct.success) + for (Organization _iter197 : struct.success) { - _iter173.write(oprot); + _iter197.write(oprot); } oprot.writeListEnd(); } @@ -20923,16 +20452,16 @@ public class SatelliteServer { } - private static class getVirtualizers_resultTupleSchemeFactory implements SchemeFactory { - public getVirtualizers_resultTupleScheme getScheme() { - return new getVirtualizers_resultTupleScheme(); + private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { + public getAllOrganizations_resultTupleScheme getScheme() { + return new getAllOrganizations_resultTupleScheme(); } } - private static class getVirtualizers_resultTupleScheme extends TupleScheme { + private static class getAllOrganizations_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -20942,28 +20471,28 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Virtualizer _iter174 : struct.success) + for (Organization _iter198 : struct.success) { - _iter174.write(oprot); + _iter198.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getVirtualizers_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list175.size); - for (int _i176 = 0; _i176 < _list175.size; ++_i176) + org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list199.size); + for (int _i200 = 0; _i200 < _list199.size; ++_i200) { - Virtualizer _elem177; - _elem177 = new Virtualizer(); - _elem177.read(iprot); - struct.success.add(_elem177); + Organization _elem201; + _elem201 = new Organization(); + _elem201.read(iprot); + struct.success.add(_elem201); } } struct.setSuccessIsSet(true); @@ -20973,14 +20502,14 @@ public class SatelliteServer { } - public static class getAllOrganizations_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_args"); + public static class getStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatus_args"); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOrganizations_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getStatus_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getStatus_argsTupleSchemeFactory()); } @@ -21043,20 +20572,20 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_args.class, metaDataMap); } - public getAllOrganizations_args() { + public getStatus_args() { } /** * Performs a deep copy on other. */ - public getAllOrganizations_args(getAllOrganizations_args other) { + public getStatus_args(getStatus_args other) { } - public getAllOrganizations_args deepCopy() { - return new getAllOrganizations_args(this); + public getStatus_args deepCopy() { + return new getStatus_args(this); } @Override @@ -21089,12 +20618,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOrganizations_args) - return this.equals((getAllOrganizations_args)that); + if (that instanceof getStatus_args) + return this.equals((getStatus_args)that); return false; } - public boolean equals(getAllOrganizations_args that) { + public boolean equals(getStatus_args that) { if (that == null) return false; @@ -21107,7 +20636,7 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_args other) { + public int compareTo(getStatus_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21131,7 +20660,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_args("); + StringBuilder sb = new StringBuilder("getStatus_args("); boolean first = true; sb.append(")"); @@ -21159,15 +20688,15 @@ public class SatelliteServer { } } - private static class getAllOrganizations_argsStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsStandardScheme getScheme() { - return new getAllOrganizations_argsStandardScheme(); + private static class getStatus_argsStandardSchemeFactory implements SchemeFactory { + public getStatus_argsStandardScheme getScheme() { + return new getStatus_argsStandardScheme(); } } - private static class getAllOrganizations_argsStandardScheme extends StandardScheme { + private static class getStatus_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21188,7 +20717,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -21198,39 +20727,39 @@ public class SatelliteServer { } - private static class getAllOrganizations_argsTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_argsTupleScheme getScheme() { - return new getAllOrganizations_argsTupleScheme(); + private static class getStatus_argsTupleSchemeFactory implements SchemeFactory { + public getStatus_argsTupleScheme getScheme() { + return new getStatus_argsTupleScheme(); } } - private static class getAllOrganizations_argsTupleScheme extends TupleScheme { + private static class getStatus_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; } } } - public static class getAllOrganizations_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrganizations_result"); + public static class getStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatus_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllOrganizations_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllOrganizations_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getStatus_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getStatus_resultTupleSchemeFactory()); } - public List success; // required + public SatelliteStatus success; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -21295,17 +20824,16 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Organization.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteStatus.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrganizations_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_result.class, metaDataMap); } - public getAllOrganizations_result() { + public getStatus_result() { } - public getAllOrganizations_result( - List success) + public getStatus_result( + SatelliteStatus success) { this(); this.success = success; @@ -21314,18 +20842,14 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getAllOrganizations_result(getAllOrganizations_result other) { + public getStatus_result(getStatus_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Organization other_element : other.success) { - __this__success.add(new Organization(other_element)); - } - this.success = __this__success; + this.success = new SatelliteStatus(other.success); } } - public getAllOrganizations_result deepCopy() { - return new getAllOrganizations_result(this); + public getStatus_result deepCopy() { + return new getStatus_result(this); } @Override @@ -21333,26 +20857,11 @@ public class SatelliteServer { this.success = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Organization elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public SatelliteStatus getSuccess() { return this.success; } - public getAllOrganizations_result setSuccess(List success) { + public getStatus_result setSuccess(SatelliteStatus success) { this.success = success; return this; } @@ -21378,7 +20887,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((SatelliteStatus)value); } break; @@ -21411,12 +20920,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllOrganizations_result) - return this.equals((getAllOrganizations_result)that); + if (that instanceof getStatus_result) + return this.equals((getStatus_result)that); return false; } - public boolean equals(getAllOrganizations_result that) { + public boolean equals(getStatus_result that) { if (that == null) return false; @@ -21438,7 +20947,7 @@ public class SatelliteServer { } @Override - public int compareTo(getAllOrganizations_result other) { + public int compareTo(getStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -21472,7 +20981,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllOrganizations_result("); + StringBuilder sb = new StringBuilder("getStatus_result("); boolean first = true; sb.append("success:"); @@ -21489,6 +20998,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -21507,15 +21019,15 @@ public class SatelliteServer { } } - private static class getAllOrganizations_resultStandardSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultStandardScheme getScheme() { - return new getAllOrganizations_resultStandardScheme(); + private static class getStatus_resultStandardSchemeFactory implements SchemeFactory { + public getStatus_resultStandardScheme getScheme() { + return new getStatus_resultStandardScheme(); } } - private static class getAllOrganizations_resultStandardScheme extends StandardScheme { + private static class getStatus_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21526,19 +21038,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list178 = iprot.readListBegin(); - struct.success = new ArrayList(_list178.size); - for (int _i179 = 0; _i179 < _list178.size; ++_i179) - { - Organization _elem180; - _elem180 = new Organization(); - _elem180.read(iprot); - struct.success.add(_elem180); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new SatelliteStatus(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -21555,20 +21057,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Organization _iter181 : struct.success) - { - _iter181.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -21577,16 +21072,16 @@ public class SatelliteServer { } - private static class getAllOrganizations_resultTupleSchemeFactory implements SchemeFactory { - public getAllOrganizations_resultTupleScheme getScheme() { - return new getAllOrganizations_resultTupleScheme(); + private static class getStatus_resultTupleSchemeFactory implements SchemeFactory { + public getStatus_resultTupleScheme getScheme() { + return new getStatus_resultTupleScheme(); } } - private static class getAllOrganizations_resultTupleScheme extends TupleScheme { + private static class getStatus_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -21594,32 +21089,17 @@ public class SatelliteServer { } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Organization _iter182 : struct.success) - { - _iter182.write(oprot); - } - } + struct.success.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllOrganizations_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list183.size); - for (int _i184 = 0; _i184 < _list183.size; ++_i184) - { - Organization _elem185; - _elem185 = new Organization(); - _elem185.read(iprot); - struct.success.add(_elem185); - } - } + struct.success = new SatelliteStatus(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } } @@ -21627,20 +21107,28 @@ public class SatelliteServer { } - public static class getStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatus_args"); + public static class getImageList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_args"); + private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TAG_SEARCH_FIELD_DESC = new org.apache.thrift.protocol.TField("tagSearch", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getStatus_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); } + public String userToken; // required + public List tagSearch; // required + public int page; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { -; + USER_TOKEN((short)1, "userToken"), + TAG_SEARCH((short)2, "tagSearch"), + PAGE((short)3, "page"); private static final Map byName = new HashMap(); @@ -21655,6 +21143,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 1: // USER_TOKEN + return USER_TOKEN; + case 2: // TAG_SEARCH + return TAG_SEARCH; + case 3: // PAGE + return PAGE; default: return null; } @@ -21693,37 +21187,192 @@ public class SatelliteServer { return _fieldName; } } + + // isset id assignments + private static final int __PAGE_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); + tmpMap.put(_Fields.TAG_SEARCH, new org.apache.thrift.meta_data.FieldMetaData("tagSearch", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); } - public getStatus_args() { + public getImageList_args() { + } + + public getImageList_args( + String userToken, + List tagSearch, + int page) + { + this(); + this.userToken = userToken; + this.tagSearch = tagSearch; + this.page = page; + setPageIsSet(true); } /** * Performs a deep copy on other. */ - public getStatus_args(getStatus_args other) { + public getImageList_args(getImageList_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetUserToken()) { + this.userToken = other.userToken; + } + if (other.isSetTagSearch()) { + List __this__tagSearch = new ArrayList(other.tagSearch); + this.tagSearch = __this__tagSearch; + } + this.page = other.page; } - public getStatus_args deepCopy() { - return new getStatus_args(this); + public getImageList_args deepCopy() { + return new getImageList_args(this); } @Override public void clear() { + this.userToken = null; + this.tagSearch = null; + setPageIsSet(false); + this.page = 0; + } + + public String getUserToken() { + return this.userToken; + } + + public getImageList_args setUserToken(String userToken) { + this.userToken = userToken; + return this; + } + + public void unsetUserToken() { + this.userToken = null; + } + + /** Returns true if field userToken is set (has been assigned a value) and false otherwise */ + public boolean isSetUserToken() { + return this.userToken != null; + } + + public void setUserTokenIsSet(boolean value) { + if (!value) { + this.userToken = null; + } + } + + public int getTagSearchSize() { + return (this.tagSearch == null) ? 0 : this.tagSearch.size(); + } + + public java.util.Iterator getTagSearchIterator() { + return (this.tagSearch == null) ? null : this.tagSearch.iterator(); + } + + public void addToTagSearch(String elem) { + if (this.tagSearch == null) { + this.tagSearch = new ArrayList(); + } + this.tagSearch.add(elem); + } + + public List getTagSearch() { + return this.tagSearch; + } + + public getImageList_args setTagSearch(List tagSearch) { + this.tagSearch = tagSearch; + return this; + } + + public void unsetTagSearch() { + this.tagSearch = null; + } + + /** Returns true if field tagSearch is set (has been assigned a value) and false otherwise */ + public boolean isSetTagSearch() { + return this.tagSearch != null; + } + + public void setTagSearchIsSet(boolean value) { + if (!value) { + this.tagSearch = null; + } + } + + public int getPage() { + return this.page; + } + + public getImageList_args setPage(int page) { + this.page = page; + setPageIsSet(true); + return this; + } + + public void unsetPage() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); + } + + /** Returns true if field page is set (has been assigned a value) and false otherwise */ + public boolean isSetPage() { + return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); + } + + public void setPageIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { + case USER_TOKEN: + if (value == null) { + unsetUserToken(); + } else { + setUserToken((String)value); + } + break; + + case TAG_SEARCH: + if (value == null) { + unsetTagSearch(); + } else { + setTagSearch((List)value); + } + break; + + case PAGE: + if (value == null) { + unsetPage(); + } else { + setPage((Integer)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case USER_TOKEN: + return getUserToken(); + + case TAG_SEARCH: + return getTagSearch(); + + case PAGE: + return Integer.valueOf(getPage()); + } throw new IllegalStateException(); } @@ -21735,6 +21384,12 @@ public class SatelliteServer { } switch (field) { + case USER_TOKEN: + return isSetUserToken(); + case TAG_SEARCH: + return isSetTagSearch(); + case PAGE: + return isSetPage(); } throw new IllegalStateException(); } @@ -21743,15 +21398,42 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getStatus_args) - return this.equals((getStatus_args)that); + if (that instanceof getImageList_args) + return this.equals((getImageList_args)that); return false; } - public boolean equals(getStatus_args that) { + public boolean equals(getImageList_args that) { if (that == null) return false; + boolean this_present_userToken = true && this.isSetUserToken(); + boolean that_present_userToken = true && that.isSetUserToken(); + if (this_present_userToken || that_present_userToken) { + if (!(this_present_userToken && that_present_userToken)) + return false; + if (!this.userToken.equals(that.userToken)) + return false; + } + + boolean this_present_tagSearch = true && this.isSetTagSearch(); + boolean that_present_tagSearch = true && that.isSetTagSearch(); + if (this_present_tagSearch || that_present_tagSearch) { + if (!(this_present_tagSearch && that_present_tagSearch)) + return false; + if (!this.tagSearch.equals(that.tagSearch)) + return false; + } + + boolean this_present_page = true; + boolean that_present_page = true; + if (this_present_page || that_present_page) { + if (!(this_present_page && that_present_page)) + return false; + if (this.page != that.page) + return false; + } + return true; } @@ -21761,13 +21443,43 @@ public class SatelliteServer { } @Override - public int compareTo(getStatus_args other) { + public int compareTo(getImageList_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetUserToken()).compareTo(other.isSetUserToken()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUserToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userToken, other.userToken); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTagSearch()).compareTo(other.isSetTagSearch()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTagSearch()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagSearch, other.tagSearch); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -21785,9 +21497,28 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getStatus_args("); + StringBuilder sb = new StringBuilder("getImageList_args("); boolean first = true; + sb.append("userToken:"); + if (this.userToken == null) { + sb.append("null"); + } else { + sb.append(this.userToken); + } + first = false; + if (!first) sb.append(", "); + sb.append("tagSearch:"); + if (this.tagSearch == null) { + sb.append("null"); + } else { + sb.append(this.tagSearch); + } + first = false; + if (!first) sb.append(", "); + sb.append("page:"); + sb.append(this.page); + first = false; sb.append(")"); return sb.toString(); } @@ -21807,21 +21538,23 @@ public class SatelliteServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getStatus_argsStandardSchemeFactory implements SchemeFactory { - public getStatus_argsStandardScheme getScheme() { - return new getStatus_argsStandardScheme(); + private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { + public getImageList_argsStandardScheme getScheme() { + return new getImageList_argsStandardScheme(); } } - private static class getStatus_argsStandardScheme extends StandardScheme { + private static class getImageList_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -21831,6 +21564,40 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 1: // USER_TOKEN + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TAG_SEARCH + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list202 = iprot.readListBegin(); + struct.tagSearch = new ArrayList(_list202.size); + for (int _i203 = 0; _i203 < _list202.size; ++_i203) + { + String _elem204; + _elem204 = iprot.readString(); + struct.tagSearch.add(_elem204); + } + iprot.readListEnd(); + } + struct.setTagSearchIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PAGE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -21842,53 +21609,127 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.userToken != null) { + oprot.writeFieldBegin(USER_TOKEN_FIELD_DESC); + oprot.writeString(struct.userToken); + oprot.writeFieldEnd(); + } + if (struct.tagSearch != null) { + oprot.writeFieldBegin(TAG_SEARCH_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tagSearch.size())); + for (String _iter205 : struct.tagSearch) + { + oprot.writeString(_iter205); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(PAGE_FIELD_DESC); + oprot.writeI32(struct.page); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getStatus_argsTupleSchemeFactory implements SchemeFactory { - public getStatus_argsTupleScheme getScheme() { - return new getStatus_argsTupleScheme(); + private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { + public getImageList_argsTupleScheme getScheme() { + return new getImageList_argsTupleScheme(); } } - private static class getStatus_argsTupleScheme extends TupleScheme { + private static class getImageList_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetUserToken()) { + optionals.set(0); + } + if (struct.isSetTagSearch()) { + optionals.set(1); + } + if (struct.isSetPage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetUserToken()) { + oprot.writeString(struct.userToken); + } + if (struct.isSetTagSearch()) { + { + oprot.writeI32(struct.tagSearch.size()); + for (String _iter206 : struct.tagSearch) + { + oprot.writeString(_iter206); + } + } + } + if (struct.isSetPage()) { + oprot.writeI32(struct.page); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.userToken = iprot.readString(); + struct.setUserTokenIsSet(true); + } + if (incoming.get(1)) { + { + org.apache.thrift.protocol.TList _list207 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tagSearch = new ArrayList(_list207.size); + for (int _i208 = 0; _i208 < _list207.size; ++_i208) + { + String _elem209; + _elem209 = iprot.readString(); + struct.tagSearch.add(_elem209); + } + } + struct.setTagSearchIsSet(true); + } + if (incoming.get(2)) { + struct.page = iprot.readI32(); + struct.setPageIsSet(true); + } } } } - public static class getStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatus_result"); + public static class getImageList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getStatus_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); } - public SatelliteStatus success; // required + public List success; // required + public TAuthorizationException authError; // required + public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"); + SUCCESS((short)0, "success"), + AUTH_ERROR((short)1, "authError"), + SERVER_ERROR((short)2, "serverError"); private static final Map byName = new HashMap(); @@ -21905,6 +21746,10 @@ public class SatelliteServer { switch(fieldId) { case 0: // SUCCESS return SUCCESS; + case 1: // AUTH_ERROR + return AUTH_ERROR; + case 2: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -21949,44 +21794,80 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SatelliteStatus.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageSummaryRead.class)))); + tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatus_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); } - public getStatus_result() { + public getImageList_result() { } - public getStatus_result( - SatelliteStatus success) + public getImageList_result( + List success, + TAuthorizationException authError, + TInvocationException serverError) { this(); this.success = success; + this.authError = authError; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getStatus_result(getStatus_result other) { + public getImageList_result(getImageList_result other) { if (other.isSetSuccess()) { - this.success = new SatelliteStatus(other.success); + List __this__success = new ArrayList(other.success.size()); + for (ImageSummaryRead other_element : other.success) { + __this__success.add(new ImageSummaryRead(other_element)); + } + this.success = __this__success; + } + if (other.isSetAuthError()) { + this.authError = new TAuthorizationException(other.authError); + } + if (other.isSetServerError()) { + this.serverError = new TInvocationException(other.serverError); } } - public getStatus_result deepCopy() { - return new getStatus_result(this); + public getImageList_result deepCopy() { + return new getImageList_result(this); } @Override public void clear() { this.success = null; + this.authError = null; + this.serverError = null; } - public SatelliteStatus getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(ImageSummaryRead elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public getStatus_result setSuccess(SatelliteStatus success) { + public getImageList_result setSuccess(List success) { this.success = success; return this; } @@ -22006,13 +21887,77 @@ public class SatelliteServer { } } + public TAuthorizationException getAuthError() { + return this.authError; + } + + public getImageList_result setAuthError(TAuthorizationException authError) { + this.authError = authError; + return this; + } + + public void unsetAuthError() { + this.authError = null; + } + + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; + } + + public void setAuthErrorIsSet(boolean value) { + if (!value) { + this.authError = null; + } + } + + public TInvocationException getServerError() { + return this.serverError; + } + + public getImageList_result setServerError(TInvocationException serverError) { + this.serverError = serverError; + return this; + } + + public void unsetServerError() { + this.serverError = null; + } + + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; + } + + public void setServerErrorIsSet(boolean value) { + if (!value) { + this.serverError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((SatelliteStatus)value); + setSuccess((List)value); + } + break; + + case AUTH_ERROR: + if (value == null) { + unsetAuthError(); + } else { + setAuthError((TAuthorizationException)value); + } + break; + + case SERVER_ERROR: + if (value == null) { + unsetServerError(); + } else { + setServerError((TInvocationException)value); } break; @@ -22024,6 +21969,12 @@ public class SatelliteServer { case SUCCESS: return getSuccess(); + case AUTH_ERROR: + return getAuthError(); + + case SERVER_ERROR: + return getServerError(); + } throw new IllegalStateException(); } @@ -22037,6 +21988,10 @@ public class SatelliteServer { switch (field) { case SUCCESS: return isSetSuccess(); + case AUTH_ERROR: + return isSetAuthError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -22045,12 +22000,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getStatus_result) - return this.equals((getStatus_result)that); + if (that instanceof getImageList_result) + return this.equals((getImageList_result)that); return false; } - public boolean equals(getStatus_result that) { + public boolean equals(getImageList_result that) { if (that == null) return false; @@ -22063,6 +22018,24 @@ public class SatelliteServer { return false; } + boolean this_present_authError = true && this.isSetAuthError(); + boolean that_present_authError = true && that.isSetAuthError(); + if (this_present_authError || that_present_authError) { + if (!(this_present_authError && that_present_authError)) + return false; + if (!this.authError.equals(that.authError)) + return false; + } + + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) + return false; + if (!this.serverError.equals(that.serverError)) + return false; + } + return true; } @@ -22072,7 +22045,7 @@ public class SatelliteServer { } @Override - public int compareTo(getStatus_result other) { + public int compareTo(getImageList_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22089,6 +22062,26 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -22106,7 +22099,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getStatus_result("); + StringBuilder sb = new StringBuilder("getImageList_result("); boolean first = true; sb.append("success:"); @@ -22116,6 +22109,22 @@ public class SatelliteServer { sb.append(this.success); } first = false; + if (!first) sb.append(", "); + sb.append("authError:"); + if (this.authError == null) { + sb.append("null"); + } else { + sb.append(this.authError); + } + first = false; + if (!first) sb.append(", "); + sb.append("serverError:"); + if (this.serverError == null) { + sb.append("null"); + } else { + sb.append(this.serverError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -22123,9 +22132,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -22144,15 +22150,15 @@ public class SatelliteServer { } } - private static class getStatus_resultStandardSchemeFactory implements SchemeFactory { - public getStatus_resultStandardScheme getScheme() { - return new getStatus_resultStandardScheme(); + private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { + public getImageList_resultStandardScheme getScheme() { + return new getImageList_resultStandardScheme(); } } - private static class getStatus_resultStandardScheme extends StandardScheme { + private static class getImageList_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getStatus_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22163,14 +22169,42 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new SatelliteStatus(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list210 = iprot.readListBegin(); + struct.success = new ArrayList(_list210.size); + for (int _i211 = 0; _i211 < _list210.size; ++_i211) + { + ImageSummaryRead _elem212; + _elem212 = new ImageSummaryRead(); + _elem212.read(iprot); + struct.success.add(_elem212); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 1: // AUTH_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SERVER_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -22182,13 +22216,30 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getStatus_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (ImageSummaryRead _iter213 : struct.success) + { + _iter213.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.authError != null) { + oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); + struct.authError.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -22197,63 +22248,97 @@ public class SatelliteServer { } - private static class getStatus_resultTupleSchemeFactory implements SchemeFactory { - public getStatus_resultTupleScheme getScheme() { - return new getStatus_resultTupleScheme(); + private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { + public getImageList_resultTupleScheme getScheme() { + return new getImageList_resultTupleScheme(); } } - private static class getStatus_resultTupleScheme extends TupleScheme { + private static class getImageList_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getStatus_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetAuthError()) { + optionals.set(1); + } + if (struct.isSetServerError()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (ImageSummaryRead _iter214 : struct.success) + { + _iter214.write(oprot); + } + } + } + if (struct.isSetAuthError()) { + struct.authError.write(oprot); + } + if (struct.isSetServerError()) { + struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getStatus_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new SatelliteStatus(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list215 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list215.size); + for (int _i216 = 0; _i216 < _list215.size; ++_i216) + { + ImageSummaryRead _elem217; + _elem217 = new ImageSummaryRead(); + _elem217.read(iprot); + struct.success.add(_elem217); + } + } struct.setSuccessIsSet(true); } + if (incoming.get(1)) { + struct.authError = new TAuthorizationException(); + struct.authError.read(iprot); + struct.setAuthErrorIsSet(true); + } + if (incoming.get(2)) { + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); + } } } } - public static class getImageList_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_args"); + public static class getImageDetails_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TAG_SEARCH_FIELD_DESC = new org.apache.thrift.protocol.TField("tagSearch", org.apache.thrift.protocol.TType.LIST, (short)2); - private static final org.apache.thrift.protocol.TField PAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("page", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField IMAGE_BASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageBaseId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageList_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); } public String userToken; // required - public List tagSearch; // required - public int page; // required + public String imageBaseId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - TAG_SEARCH((short)2, "tagSearch"), - PAGE((short)3, "page"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -22270,10 +22355,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // TAG_SEARCH - return TAG_SEARCH; - case 3: // PAGE - return PAGE; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; default: return null; } @@ -22314,69 +22397,56 @@ public class SatelliteServer { } // isset id assignments - private static final int __PAGE_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.TAG_SEARCH, new org.apache.thrift.meta_data.FieldMetaData("tagSearch", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.PAGE, new org.apache.thrift.meta_data.FieldMetaData("page", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + 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"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap); } - public getImageList_args() { + public getImageDetails_args() { } - public getImageList_args( + public getImageDetails_args( String userToken, - List tagSearch, - int page) + String imageBaseId) { this(); this.userToken = userToken; - this.tagSearch = tagSearch; - this.page = page; - setPageIsSet(true); + this.imageBaseId = imageBaseId; } /** * Performs a deep copy on other. */ - public getImageList_args(getImageList_args other) { - __isset_bitfield = other.__isset_bitfield; + public getImageDetails_args(getImageDetails_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetTagSearch()) { - List __this__tagSearch = new ArrayList(other.tagSearch); - this.tagSearch = __this__tagSearch; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } - this.page = other.page; } - public getImageList_args deepCopy() { - return new getImageList_args(this); + public getImageDetails_args deepCopy() { + return new getImageDetails_args(this); } @Override public void clear() { this.userToken = null; - this.tagSearch = null; - setPageIsSet(false); - this.page = 0; + this.imageBaseId = null; } public String getUserToken() { return this.userToken; } - public getImageList_args setUserToken(String userToken) { + public getImageDetails_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -22396,68 +22466,30 @@ public class SatelliteServer { } } - public int getTagSearchSize() { - return (this.tagSearch == null) ? 0 : this.tagSearch.size(); - } - - public java.util.Iterator getTagSearchIterator() { - return (this.tagSearch == null) ? null : this.tagSearch.iterator(); - } - - public void addToTagSearch(String elem) { - if (this.tagSearch == null) { - this.tagSearch = new ArrayList(); - } - this.tagSearch.add(elem); - } - - public List getTagSearch() { - return this.tagSearch; + public String getImageBaseId() { + return this.imageBaseId; } - public getImageList_args setTagSearch(List tagSearch) { - this.tagSearch = tagSearch; + public getImageDetails_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetTagSearch() { - this.tagSearch = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field tagSearch is set (has been assigned a value) and false otherwise */ - public boolean isSetTagSearch() { - return this.tagSearch != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setTagSearchIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.tagSearch = null; + this.imageBaseId = null; } } - public int getPage() { - return this.page; - } - - public getImageList_args setPage(int page) { - this.page = page; - setPageIsSet(true); - return this; - } - - public void unsetPage() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PAGE_ISSET_ID); - } - - /** Returns true if field page is set (has been assigned a value) and false otherwise */ - public boolean isSetPage() { - return EncodingUtils.testBit(__isset_bitfield, __PAGE_ISSET_ID); - } - - public void setPageIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PAGE_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -22468,19 +22500,11 @@ public class SatelliteServer { } break; - case TAG_SEARCH: - if (value == null) { - unsetTagSearch(); - } else { - setTagSearch((List)value); - } - break; - - case PAGE: + case IMAGE_BASE_ID: if (value == null) { - unsetPage(); + unsetImageBaseId(); } else { - setPage((Integer)value); + setImageBaseId((String)value); } break; @@ -22492,11 +22516,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case TAG_SEARCH: - return getTagSearch(); - - case PAGE: - return Integer.valueOf(getPage()); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -22511,10 +22532,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case TAG_SEARCH: - return isSetTagSearch(); - case PAGE: - return isSetPage(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); } throw new IllegalStateException(); } @@ -22523,12 +22542,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageList_args) - return this.equals((getImageList_args)that); + if (that instanceof getImageDetails_args) + return this.equals((getImageDetails_args)that); return false; } - public boolean equals(getImageList_args that) { + public boolean equals(getImageDetails_args that) { if (that == null) return false; @@ -22541,21 +22560,12 @@ public class SatelliteServer { return false; } - boolean this_present_tagSearch = true && this.isSetTagSearch(); - boolean that_present_tagSearch = true && that.isSetTagSearch(); - if (this_present_tagSearch || that_present_tagSearch) { - if (!(this_present_tagSearch && that_present_tagSearch)) - return false; - if (!this.tagSearch.equals(that.tagSearch)) - return false; - } - - boolean this_present_page = true; - boolean that_present_page = true; - if (this_present_page || that_present_page) { - if (!(this_present_page && that_present_page)) + boolean this_present_imageBaseId = true && this.isSetImageBaseId(); + boolean that_present_imageBaseId = true && that.isSetImageBaseId(); + if (this_present_imageBaseId || that_present_imageBaseId) { + if (!(this_present_imageBaseId && that_present_imageBaseId)) return false; - if (this.page != that.page) + if (!this.imageBaseId.equals(that.imageBaseId)) return false; } @@ -22568,7 +22578,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageList_args other) { + public int compareTo(getImageDetails_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -22585,22 +22595,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTagSearch()).compareTo(other.isSetTagSearch()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTagSearch()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tagSearch, other.tagSearch); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPage()).compareTo(other.isSetPage()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetPage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page, other.page); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } @@ -22622,7 +22622,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_args("); + StringBuilder sb = new StringBuilder("getImageDetails_args("); boolean first = true; sb.append("userToken:"); @@ -22633,17 +22633,13 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("tagSearch:"); - if (this.tagSearch == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.tagSearch); + sb.append(this.imageBaseId); } first = false; - if (!first) sb.append(", "); - sb.append("page:"); - sb.append(this.page); - first = false; sb.append(")"); return sb.toString(); } @@ -22663,23 +22659,21 @@ public class SatelliteServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class getImageList_argsStandardSchemeFactory implements SchemeFactory { - public getImageList_argsStandardScheme getScheme() { - return new getImageList_argsStandardScheme(); + private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory { + public getImageDetails_argsStandardScheme getScheme() { + return new getImageDetails_argsStandardScheme(); } } - private static class getImageList_argsStandardScheme extends StandardScheme { + private static class getImageDetails_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -22697,28 +22691,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TAG_SEARCH - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list186 = iprot.readListBegin(); - struct.tagSearch = new ArrayList(_list186.size); - for (int _i187 = 0; _i187 < _list186.size; ++_i187) - { - String _elem188; - _elem188 = iprot.readString(); - struct.tagSearch.add(_elem188); - } - iprot.readListEnd(); - } - struct.setTagSearchIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // PAGE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); + case 2: // IMAGE_BASE_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -22734,7 +22710,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -22743,118 +22719,86 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.tagSearch != null) { - oprot.writeFieldBegin(TAG_SEARCH_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tagSearch.size())); - for (String _iter189 : struct.tagSearch) - { - oprot.writeString(_iter189); - } - oprot.writeListEnd(); - } + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(PAGE_FIELD_DESC); - oprot.writeI32(struct.page); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImageList_argsTupleSchemeFactory implements SchemeFactory { - public getImageList_argsTupleScheme getScheme() { - return new getImageList_argsTupleScheme(); + private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { + public getImageDetails_argsTupleScheme getScheme() { + return new getImageDetails_argsTupleScheme(); } } - private static class getImageList_argsTupleScheme extends TupleScheme { + private static class getImageDetails_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetTagSearch()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetPage()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetTagSearch()) { - { - oprot.writeI32(struct.tagSearch.size()); - for (String _iter190 : struct.tagSearch) - { - oprot.writeString(_iter190); - } - } - } - if (struct.isSetPage()) { - oprot.writeI32(struct.page); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list191 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tagSearch = new ArrayList(_list191.size); - for (int _i192 = 0; _i192 < _list191.size; ++_i192) - { - String _elem193; - _elem193 = iprot.readString(); - struct.tagSearch.add(_elem193); - } - } - struct.setTagSearchIsSet(true); - } - if (incoming.get(2)) { - struct.page = iprot.readI32(); - struct.setPageIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } } } } - public static class getImageList_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageList_result"); + public static class getImageDetails_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageList_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageList_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImageDetails_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); } - public List success; // required + public ImageDetailsRead success; // required public TAuthorizationException authError; // required + public TNotFoundException notFound; // required public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), - SERVER_ERROR((short)2, "serverError"); + NOT_FOUND((short)2, "notFound"), + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -22873,7 +22817,9 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // SERVER_ERROR + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // SERVER_ERROR return SERVER_ERROR; default: return null; @@ -22919,80 +22865,68 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageSummaryRead.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageDetailsRead.class))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageList_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap); } - public getImageList_result() { + public getImageDetails_result() { } - public getImageList_result( - List success, + public getImageDetails_result( + ImageDetailsRead success, TAuthorizationException authError, + TNotFoundException notFound, TInvocationException serverError) { this(); this.success = success; this.authError = authError; + this.notFound = notFound; this.serverError = serverError; } /** * Performs a deep copy on other. */ - public getImageList_result(getImageList_result other) { + public getImageDetails_result(getImageDetails_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (ImageSummaryRead other_element : other.success) { - __this__success.add(new ImageSummaryRead(other_element)); - } - this.success = __this__success; + this.success = new ImageDetailsRead(other.success); } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } if (other.isSetServerError()) { this.serverError = new TInvocationException(other.serverError); } } - public getImageList_result deepCopy() { - return new getImageList_result(this); + public getImageDetails_result deepCopy() { + return new getImageDetails_result(this); } @Override public void clear() { this.success = null; this.authError = null; + this.notFound = null; this.serverError = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(ImageSummaryRead elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public ImageDetailsRead getSuccess() { return this.success; } - public getImageList_result setSuccess(List success) { + public getImageDetails_result setSuccess(ImageDetailsRead success) { this.success = success; return this; } @@ -23016,7 +22950,7 @@ public class SatelliteServer { return this.authError; } - public getImageList_result setAuthError(TAuthorizationException authError) { + public getImageDetails_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -23036,11 +22970,35 @@ public class SatelliteServer { } } + public TNotFoundException getNotFound() { + return this.notFound; + } + + public getImageDetails_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; + return this; + } + + public void unsetNotFound() { + this.notFound = null; + } + + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; + } + + public void setNotFoundIsSet(boolean value) { + if (!value) { + this.notFound = null; + } + } + public TInvocationException getServerError() { return this.serverError; } - public getImageList_result setServerError(TInvocationException serverError) { + public getImageDetails_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -23066,7 +23024,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((ImageDetailsRead)value); } break; @@ -23078,6 +23036,14 @@ public class SatelliteServer { } break; + case NOT_FOUND: + if (value == null) { + unsetNotFound(); + } else { + setNotFound((TNotFoundException)value); + } + break; + case SERVER_ERROR: if (value == null) { unsetServerError(); @@ -23097,6 +23063,9 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); + case NOT_FOUND: + return getNotFound(); + case SERVER_ERROR: return getServerError(); @@ -23115,6 +23084,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); + case NOT_FOUND: + return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); } @@ -23125,12 +23096,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageList_result) - return this.equals((getImageList_result)that); + if (that instanceof getImageDetails_result) + return this.equals((getImageDetails_result)that); return false; } - public boolean equals(getImageList_result that) { + public boolean equals(getImageDetails_result that) { if (that == null) return false; @@ -23152,6 +23123,15 @@ public class SatelliteServer { return false; } + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) + return false; + if (!this.notFound.equals(that.notFound)) + return false; + } + boolean this_present_serverError = true && this.isSetServerError(); boolean that_present_serverError = true && that.isSetServerError(); if (this_present_serverError || that_present_serverError) { @@ -23170,7 +23150,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageList_result other) { + public int compareTo(getImageDetails_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -23197,6 +23177,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; @@ -23224,7 +23214,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageList_result("); + StringBuilder sb = new StringBuilder("getImageDetails_result("); boolean first = true; sb.append("success:"); @@ -23243,6 +23233,14 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); + sb.append("notFound:"); + if (this.notFound == null) { + sb.append("null"); + } else { + sb.append(this.notFound); + } + first = false; + if (!first) sb.append(", "); sb.append("serverError:"); if (this.serverError == null) { sb.append("null"); @@ -23257,6 +23255,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -23275,15 +23276,15 @@ public class SatelliteServer { } } - private static class getImageList_resultStandardSchemeFactory implements SchemeFactory { - public getImageList_resultStandardScheme getScheme() { - return new getImageList_resultStandardScheme(); + private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { + public getImageDetails_resultStandardScheme getScheme() { + return new getImageDetails_resultStandardScheme(); } } - private static class getImageList_resultStandardScheme extends StandardScheme { + private static class getImageDetails_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -23294,19 +23295,9 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list194 = iprot.readListBegin(); - struct.success = new ArrayList(_list194.size); - for (int _i195 = 0; _i195 < _list194.size; ++_i195) - { - ImageSummaryRead _elem196; - _elem196 = new ImageSummaryRead(); - _elem196.read(iprot); - struct.success.add(_elem196); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new ImageDetailsRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -23321,7 +23312,16 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // SERVER_ERROR + case 2: // NOT_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); @@ -23341,20 +23341,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (ImageSummaryRead _iter197 : struct.success) - { - _iter197.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -23362,6 +23355,11 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } if (struct.serverError != null) { oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); struct.serverError.write(oprot); @@ -23373,16 +23371,16 @@ public class SatelliteServer { } - private static class getImageList_resultTupleSchemeFactory implements SchemeFactory { - public getImageList_resultTupleScheme getScheme() { - return new getImageList_resultTupleScheme(); + private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { + public getImageDetails_resultTupleScheme getScheme() { + return new getImageDetails_resultTupleScheme(); } } - private static class getImageList_resultTupleScheme extends TupleScheme { + private static class getImageDetails_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -23391,43 +23389,34 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetServerError()) { + if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (ImageSummaryRead _iter198 : struct.success) - { - _iter198.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetAuthError()) { struct.authError.write(oprot); } + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } if (struct.isSetServerError()) { struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageList_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list199 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list199.size); - for (int _i200 = 0; _i200 < _list199.size; ++_i200) - { - ImageSummaryRead _elem201; - _elem201 = new ImageSummaryRead(); - _elem201.read(iprot); - struct.success.add(_elem201); - } - } + struct.success = new ImageDetailsRead(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -23436,6 +23425,11 @@ public class SatelliteServer { struct.setAuthErrorIsSet(true); } if (incoming.get(2)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } + if (incoming.get(3)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -23445,25 +23439,25 @@ public class SatelliteServer { } - public static class getImageDetails_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_args"); + public static class createImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createImage_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); + 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)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageDetails_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createImage_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createImage_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required + public String imageName; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"); + IMAGE_NAME((short)2, "imageName"); private static final Map byName = new HashMap(); @@ -23480,8 +23474,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; + case 2: // IMAGE_NAME + return IMAGE_NAME; default: return null; } @@ -23527,51 +23521,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - 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.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_args.class, metaDataMap); } - public getImageDetails_args() { + public createImage_args() { } - public getImageDetails_args( + public createImage_args( String userToken, - String imageBaseId) + String imageName) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; + this.imageName = imageName; } /** * Performs a deep copy on other. */ - public getImageDetails_args(getImageDetails_args other) { + public createImage_args(createImage_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetImageName()) { + this.imageName = other.imageName; } } - public getImageDetails_args deepCopy() { - return new getImageDetails_args(this); + public createImage_args deepCopy() { + return new createImage_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; + this.imageName = null; } public String getUserToken() { return this.userToken; } - public getImageDetails_args setUserToken(String userToken) { + public createImage_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -23591,27 +23585,27 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public String getImageName() { + return this.imageName; } - public getImageDetails_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public createImage_args setImageName(String imageName) { + this.imageName = imageName; return this; } - public void unsetImageBaseId() { - this.imageBaseId = null; + public void unsetImageName() { + this.imageName = null; } - /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageBaseId() { - return this.imageBaseId != null; + /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ + public boolean isSetImageName() { + return this.imageName != null; } - public void setImageBaseIdIsSet(boolean value) { + public void setImageNameIsSet(boolean value) { if (!value) { - this.imageBaseId = null; + this.imageName = null; } } @@ -23625,11 +23619,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: + case IMAGE_NAME: if (value == null) { - unsetImageBaseId(); + unsetImageName(); } else { - setImageBaseId((String)value); + setImageName((String)value); } break; @@ -23641,8 +23635,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case IMAGE_NAME: + return getImageName(); } throw new IllegalStateException(); @@ -23657,8 +23651,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); + case IMAGE_NAME: + return isSetImageName(); } throw new IllegalStateException(); } @@ -23667,12 +23661,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageDetails_args) - return this.equals((getImageDetails_args)that); + if (that instanceof createImage_args) + return this.equals((createImage_args)that); return false; } - public boolean equals(getImageDetails_args that) { + public boolean equals(createImage_args that) { if (that == null) return false; @@ -23685,12 +23679,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) + boolean this_present_imageName = true && this.isSetImageName(); + boolean that_present_imageName = true && that.isSetImageName(); + if (this_present_imageName || that_present_imageName) { + if (!(this_present_imageName && that_present_imageName)) return false; - if (!this.imageBaseId.equals(that.imageBaseId)) + if (!this.imageName.equals(that.imageName)) return false; } @@ -23703,7 +23697,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageDetails_args other) { + public int compareTo(createImage_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -23720,12 +23714,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (isSetImageName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); if (lastComparison != 0) { return lastComparison; } @@ -23747,7 +23741,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_args("); + StringBuilder sb = new StringBuilder("createImage_args("); boolean first = true; sb.append("userToken:"); @@ -23758,11 +23752,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { + sb.append("imageName:"); + if (this.imageName == null) { sb.append("null"); } else { - sb.append(this.imageBaseId); + sb.append(this.imageName); } first = false; sb.append(")"); @@ -23790,15 +23784,15 @@ public class SatelliteServer { } } - private static class getImageDetails_argsStandardSchemeFactory implements SchemeFactory { - public getImageDetails_argsStandardScheme getScheme() { - return new getImageDetails_argsStandardScheme(); + private static class createImage_argsStandardSchemeFactory implements SchemeFactory { + public createImage_argsStandardScheme getScheme() { + return new createImage_argsStandardScheme(); } } - private static class getImageDetails_argsStandardScheme extends StandardScheme { + private static class createImage_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -23816,10 +23810,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID + case 2: // IMAGE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -23835,7 +23829,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -23844,9 +23838,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); + if (struct.imageName != null) { + oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); + oprot.writeString(struct.imageName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -23855,35 +23849,35 @@ public class SatelliteServer { } - private static class getImageDetails_argsTupleSchemeFactory implements SchemeFactory { - public getImageDetails_argsTupleScheme getScheme() { - return new getImageDetails_argsTupleScheme(); + private static class createImage_argsTupleSchemeFactory implements SchemeFactory { + public createImage_argsTupleScheme getScheme() { + return new createImage_argsTupleScheme(); } } - private static class getImageDetails_argsTupleScheme extends TupleScheme { + private static class createImage_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createImage_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageBaseId()) { + if (struct.isSetImageName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); + if (struct.isSetImageName()) { + oprot.writeString(struct.imageName); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createImage_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -23891,39 +23885,36 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + struct.imageName = iprot.readString(); + struct.setImageNameIsSet(true); } } } } - public static class getImageDetails_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImageDetails_result"); + public static class createImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createImage_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImageDetails_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImageDetails_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new createImage_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); } - public ImageDetailsRead success; // required + public String success; // required public TAuthorizationException authError; // required - public TNotFoundException notFound; // required - public TInvocationException serverError; // required + public TInvocationException error; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), - NOT_FOUND((short)2, "notFound"), - SERVER_ERROR((short)3, "serverError"); + ERROR((short)2, "error"); private static final Map byName = new HashMap(); @@ -23942,10 +23933,8 @@ public class SatelliteServer { return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // NOT_FOUND - return NOT_FOUND; - case 3: // SERVER_ERROR - return SERVER_ERROR; + case 2: // ERROR + return ERROR; default: return null; } @@ -23990,68 +23979,60 @@ public class SatelliteServer { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageDetailsRead.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImageDetails_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_result.class, metaDataMap); } - public getImageDetails_result() { + public createImage_result() { } - public getImageDetails_result( - ImageDetailsRead success, + public createImage_result( + String success, TAuthorizationException authError, - TNotFoundException notFound, - TInvocationException serverError) + TInvocationException error) { this(); this.success = success; this.authError = authError; - this.notFound = notFound; - this.serverError = serverError; + this.error = error; } /** * Performs a deep copy on other. */ - public getImageDetails_result(getImageDetails_result other) { + public createImage_result(createImage_result other) { if (other.isSetSuccess()) { - this.success = new ImageDetailsRead(other.success); + this.success = other.success; } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetNotFound()) { - this.notFound = new TNotFoundException(other.notFound); - } - if (other.isSetServerError()) { - this.serverError = new TInvocationException(other.serverError); + if (other.isSetError()) { + this.error = new TInvocationException(other.error); } } - public getImageDetails_result deepCopy() { - return new getImageDetails_result(this); + public createImage_result deepCopy() { + return new createImage_result(this); } @Override public void clear() { this.success = null; this.authError = null; - this.notFound = null; - this.serverError = null; + this.error = null; } - public ImageDetailsRead getSuccess() { + public String getSuccess() { return this.success; } - public getImageDetails_result setSuccess(ImageDetailsRead success) { + public createImage_result setSuccess(String success) { this.success = success; return this; } @@ -24075,7 +24056,7 @@ public class SatelliteServer { return this.authError; } - public getImageDetails_result setAuthError(TAuthorizationException authError) { + public createImage_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -24095,51 +24076,27 @@ public class SatelliteServer { } } - public TNotFoundException getNotFound() { - return this.notFound; - } - - public getImageDetails_result setNotFound(TNotFoundException notFound) { - this.notFound = notFound; - return this; - } - - public void unsetNotFound() { - this.notFound = null; - } - - /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ - public boolean isSetNotFound() { - return this.notFound != null; - } - - public void setNotFoundIsSet(boolean value) { - if (!value) { - this.notFound = null; - } - } - - public TInvocationException getServerError() { - return this.serverError; + public TInvocationException getError() { + return this.error; } - public getImageDetails_result setServerError(TInvocationException serverError) { - this.serverError = serverError; + public createImage_result setError(TInvocationException error) { + this.error = error; return this; } - public void unsetServerError() { - this.serverError = null; + public void unsetError() { + this.error = null; } - /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ - public boolean isSetServerError() { - return this.serverError != null; + /** Returns true if field error is set (has been assigned a value) and false otherwise */ + public boolean isSetError() { + return this.error != null; } - public void setServerErrorIsSet(boolean value) { + public void setErrorIsSet(boolean value) { if (!value) { - this.serverError = null; + this.error = null; } } @@ -24149,7 +24106,7 @@ public class SatelliteServer { if (value == null) { unsetSuccess(); } else { - setSuccess((ImageDetailsRead)value); + setSuccess((String)value); } break; @@ -24161,19 +24118,11 @@ public class SatelliteServer { } break; - case NOT_FOUND: - if (value == null) { - unsetNotFound(); - } else { - setNotFound((TNotFoundException)value); - } - break; - - case SERVER_ERROR: + case ERROR: if (value == null) { - unsetServerError(); + unsetError(); } else { - setServerError((TInvocationException)value); + setError((TInvocationException)value); } break; @@ -24188,11 +24137,8 @@ public class SatelliteServer { case AUTH_ERROR: return getAuthError(); - case NOT_FOUND: - return getNotFound(); - - case SERVER_ERROR: - return getServerError(); + case ERROR: + return getError(); } throw new IllegalStateException(); @@ -24209,10 +24155,8 @@ public class SatelliteServer { return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case NOT_FOUND: - return isSetNotFound(); - case SERVER_ERROR: - return isSetServerError(); + case ERROR: + return isSetError(); } throw new IllegalStateException(); } @@ -24221,12 +24165,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImageDetails_result) - return this.equals((getImageDetails_result)that); + if (that instanceof createImage_result) + return this.equals((createImage_result)that); return false; } - public boolean equals(getImageDetails_result that) { + public boolean equals(createImage_result that) { if (that == null) return false; @@ -24248,21 +24192,12 @@ public class SatelliteServer { return false; } - boolean this_present_notFound = true && this.isSetNotFound(); - boolean that_present_notFound = true && that.isSetNotFound(); - if (this_present_notFound || that_present_notFound) { - if (!(this_present_notFound && that_present_notFound)) - return false; - if (!this.notFound.equals(that.notFound)) - return false; - } - - boolean this_present_serverError = true && this.isSetServerError(); - boolean that_present_serverError = true && that.isSetServerError(); - if (this_present_serverError || that_present_serverError) { - if (!(this_present_serverError && that_present_serverError)) + boolean this_present_error = true && this.isSetError(); + boolean that_present_error = true && that.isSetError(); + if (this_present_error || that_present_error) { + if (!(this_present_error && that_present_error)) return false; - if (!this.serverError.equals(that.serverError)) + if (!this.error.equals(that.error)) return false; } @@ -24275,7 +24210,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImageDetails_result other) { + public int compareTo(createImage_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -24302,22 +24237,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNotFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); + lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); if (lastComparison != 0) { return lastComparison; } - if (isSetServerError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); + if (isSetError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error); if (lastComparison != 0) { return lastComparison; } @@ -24339,7 +24264,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImageDetails_result("); + StringBuilder sb = new StringBuilder("createImage_result("); boolean first = true; sb.append("success:"); @@ -24358,19 +24283,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("notFound:"); - if (this.notFound == null) { - sb.append("null"); - } else { - sb.append(this.notFound); - } - first = false; - if (!first) sb.append(", "); - sb.append("serverError:"); - if (this.serverError == null) { + sb.append("error:"); + if (this.error == null) { sb.append("null"); } else { - sb.append(this.serverError); + sb.append(this.error); } first = false; sb.append(")"); @@ -24380,9 +24297,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -24401,15 +24315,15 @@ public class SatelliteServer { } } - private static class getImageDetails_resultStandardSchemeFactory implements SchemeFactory { - public getImageDetails_resultStandardScheme getScheme() { - return new getImageDetails_resultStandardScheme(); + private static class createImage_resultStandardSchemeFactory implements SchemeFactory { + public createImage_resultStandardScheme getScheme() { + return new createImage_resultStandardScheme(); } } - private static class getImageDetails_resultStandardScheme extends StandardScheme { + private static class createImage_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -24420,9 +24334,8 @@ public class SatelliteServer { } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ImageDetailsRead(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -24437,20 +24350,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NOT_FOUND - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // SERVER_ERROR + case 2: // ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.error = new TInvocationException(); + struct.error.read(iprot); + struct.setErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -24466,13 +24370,13 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeString(struct.success); oprot.writeFieldEnd(); } if (struct.authError != null) { @@ -24480,14 +24384,9 @@ public class SatelliteServer { struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.notFound != null) { - oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); - struct.notFound.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.serverError != null) { - oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); - struct.serverError.write(oprot); + if (struct.error != null) { + oprot.writeFieldBegin(ERROR_FIELD_DESC); + struct.error.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -24496,16 +24395,16 @@ public class SatelliteServer { } - private static class getImageDetails_resultTupleSchemeFactory implements SchemeFactory { - public getImageDetails_resultTupleScheme getScheme() { - return new getImageDetails_resultTupleScheme(); + private static class createImage_resultTupleSchemeFactory implements SchemeFactory { + public createImage_resultTupleScheme getScheme() { + return new createImage_resultTupleScheme(); } } - private static class getImageDetails_resultTupleScheme extends TupleScheme { + private static class createImage_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -24514,34 +24413,27 @@ public class SatelliteServer { if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetNotFound()) { + if (struct.isSetError()) { optionals.set(2); } - if (struct.isSetServerError()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeString(struct.success); } if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetNotFound()) { - struct.notFound.write(oprot); - } - if (struct.isSetServerError()) { - struct.serverError.write(oprot); + if (struct.isSetError()) { + struct.error.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImageDetails_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new ImageDetailsRead(); - struct.success.read(iprot); + struct.success = iprot.readString(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -24550,39 +24442,37 @@ public class SatelliteServer { struct.setAuthErrorIsSet(true); } if (incoming.get(2)) { - struct.notFound = new TNotFoundException(); - struct.notFound.read(iprot); - struct.setNotFoundIsSet(true); - } - if (incoming.get(3)) { - struct.serverError = new TInvocationException(); - struct.serverError.read(iprot); - struct.setServerErrorIsSet(true); + struct.error = new TInvocationException(); + struct.error.read(iprot); + struct.setErrorIsSet(true); } } } } - public static class createImage_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createImage_args"); + public static class updateImageBase_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); + 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)2); + private static final org.apache.thrift.protocol.TField IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("image", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createImage_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageBase_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_argsTupleSchemeFactory()); } public String userToken; // required - public String imageName; // required + public String imageBaseId; // required + public ImageBaseWrite image; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_NAME((short)2, "imageName"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + IMAGE((short)3, "image"); private static final Map byName = new HashMap(); @@ -24599,8 +24489,10 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_NAME - return IMAGE_NAME; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; + case 3: // IMAGE + return IMAGE; default: return null; } @@ -24646,51 +24538,59 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - 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.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.IMAGE, new org.apache.thrift.meta_data.FieldMetaData("image", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageBaseWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_args.class, metaDataMap); } - public createImage_args() { + public updateImageBase_args() { } - public createImage_args( + public updateImageBase_args( String userToken, - String imageName) + String imageBaseId, + ImageBaseWrite image) { this(); this.userToken = userToken; - this.imageName = imageName; + this.imageBaseId = imageBaseId; + this.image = image; } /** * Performs a deep copy on other. */ - public createImage_args(createImage_args other) { + public updateImageBase_args(updateImageBase_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageName()) { - this.imageName = other.imageName; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; + } + if (other.isSetImage()) { + this.image = new ImageBaseWrite(other.image); } } - public createImage_args deepCopy() { - return new createImage_args(this); + public updateImageBase_args deepCopy() { + return new updateImageBase_args(this); } @Override public void clear() { this.userToken = null; - this.imageName = null; + this.imageBaseId = null; + this.image = null; } public String getUserToken() { return this.userToken; } - public createImage_args setUserToken(String userToken) { + public updateImageBase_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -24710,27 +24610,51 @@ public class SatelliteServer { } } - public String getImageName() { - return this.imageName; + public String getImageBaseId() { + return this.imageBaseId; } - public createImage_args setImageName(String imageName) { - this.imageName = imageName; + public updateImageBase_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetImageName() { - this.imageName = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field imageName is set (has been assigned a value) and false otherwise */ - public boolean isSetImageName() { - return this.imageName != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setImageNameIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.imageName = null; + this.imageBaseId = null; + } + } + + public ImageBaseWrite getImage() { + return this.image; + } + + public updateImageBase_args setImage(ImageBaseWrite image) { + this.image = image; + return this; + } + + public void unsetImage() { + this.image = null; + } + + /** Returns true if field image is set (has been assigned a value) and false otherwise */ + public boolean isSetImage() { + return this.image != null; + } + + public void setImageIsSet(boolean value) { + if (!value) { + this.image = null; } } @@ -24744,11 +24668,19 @@ public class SatelliteServer { } break; - case IMAGE_NAME: + case IMAGE_BASE_ID: if (value == null) { - unsetImageName(); + unsetImageBaseId(); } else { - setImageName((String)value); + setImageBaseId((String)value); + } + break; + + case IMAGE: + if (value == null) { + unsetImage(); + } else { + setImage((ImageBaseWrite)value); } break; @@ -24760,8 +24692,11 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_NAME: - return getImageName(); + case IMAGE_BASE_ID: + return getImageBaseId(); + + case IMAGE: + return getImage(); } throw new IllegalStateException(); @@ -24776,8 +24711,10 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_NAME: - return isSetImageName(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); + case IMAGE: + return isSetImage(); } throw new IllegalStateException(); } @@ -24786,12 +24723,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createImage_args) - return this.equals((createImage_args)that); + if (that instanceof updateImageBase_args) + return this.equals((updateImageBase_args)that); return false; } - public boolean equals(createImage_args that) { + public boolean equals(updateImageBase_args that) { if (that == null) return false; @@ -24804,12 +24741,21 @@ public class SatelliteServer { return false; } - boolean this_present_imageName = true && this.isSetImageName(); - boolean that_present_imageName = true && that.isSetImageName(); - if (this_present_imageName || that_present_imageName) { - if (!(this_present_imageName && that_present_imageName)) + boolean this_present_imageBaseId = true && this.isSetImageBaseId(); + boolean that_present_imageBaseId = true && that.isSetImageBaseId(); + if (this_present_imageBaseId || that_present_imageBaseId) { + if (!(this_present_imageBaseId && that_present_imageBaseId)) return false; - if (!this.imageName.equals(that.imageName)) + if (!this.imageBaseId.equals(that.imageBaseId)) + return false; + } + + boolean this_present_image = true && this.isSetImage(); + boolean that_present_image = true && that.isSetImage(); + if (this_present_image || that_present_image) { + if (!(this_present_image && that_present_image)) + return false; + if (!this.image.equals(that.image)) return false; } @@ -24822,7 +24768,7 @@ public class SatelliteServer { } @Override - public int compareTo(createImage_args other) { + public int compareTo(updateImageBase_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -24839,12 +24785,22 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageName()).compareTo(other.isSetImageName()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, other.imageName); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetImage()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); if (lastComparison != 0) { return lastComparison; } @@ -24866,7 +24822,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createImage_args("); + StringBuilder sb = new StringBuilder("updateImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -24877,11 +24833,19 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageName:"); - if (this.imageName == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.imageName); + sb.append(this.imageBaseId); + } + first = false; + if (!first) sb.append(", "); + sb.append("image:"); + if (this.image == null) { + sb.append("null"); + } else { + sb.append(this.image); } first = false; sb.append(")"); @@ -24891,6 +24855,9 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (image != null) { + image.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -24909,15 +24876,15 @@ public class SatelliteServer { } } - private static class createImage_argsStandardSchemeFactory implements SchemeFactory { - public createImage_argsStandardScheme getScheme() { - return new createImage_argsStandardScheme(); + private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { + public updateImageBase_argsStandardScheme getScheme() { + return new updateImageBase_argsStandardScheme(); } } - private static class createImage_argsStandardScheme extends StandardScheme { + private static class updateImageBase_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -24935,10 +24902,19 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_NAME + case 2: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMAGE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.image = new ImageBaseWrite(); + struct.image.read(iprot); + struct.setImageIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -24954,7 +24930,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -24963,9 +24939,14 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageName != null) { - oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC); - oprot.writeString(struct.imageName); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); + oprot.writeFieldEnd(); + } + if (struct.image != null) { + oprot.writeFieldBegin(IMAGE_FIELD_DESC); + struct.image.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -24974,72 +24955,83 @@ public class SatelliteServer { } - private static class createImage_argsTupleSchemeFactory implements SchemeFactory { - public createImage_argsTupleScheme getScheme() { - return new createImage_argsTupleScheme(); + private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { + public updateImageBase_argsTupleScheme getScheme() { + return new updateImageBase_argsTupleScheme(); } } - private static class createImage_argsTupleScheme extends TupleScheme { + private static class updateImageBase_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createImage_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageName()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetImage()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageName()) { - oprot.writeString(struct.imageName); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); + } + if (struct.isSetImage()) { + struct.image.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createImage_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageName = iprot.readString(); - struct.setImageNameIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); + } + if (incoming.get(2)) { + struct.image = new ImageBaseWrite(); + struct.image.read(iprot); + struct.setImageIsSet(true); } } } } - public static class createImage_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createImage_result"); + public static class updateImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("error", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new createImage_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new createImage_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); } - public String success; // required public TAuthorizationException authError; // required - public TInvocationException error; // required + public TNotFoundException notFound; // required + public TInvocationException imgError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), - ERROR((short)2, "error"); + NOT_FOUND((short)2, "notFound"), + IMG_ERROR((short)3, "imgError"); private static final Map byName = new HashMap(); @@ -25054,12 +25046,12 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; - case 2: // ERROR - return ERROR; + case 2: // NOT_FOUND + return NOT_FOUND; + case 3: // IMG_ERROR + return IMG_ERROR; default: return null; } @@ -25103,151 +25095,151 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ERROR, new org.apache.thrift.meta_data.FieldMetaData("error", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createImage_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_result.class, metaDataMap); } - public createImage_result() { + public updateImageBase_result() { } - public createImage_result( - String success, + public updateImageBase_result( TAuthorizationException authError, - TInvocationException error) + TNotFoundException notFound, + TInvocationException imgError) { this(); - this.success = success; this.authError = authError; - this.error = error; + this.notFound = notFound; + this.imgError = imgError; } /** * Performs a deep copy on other. */ - public createImage_result(createImage_result other) { - if (other.isSetSuccess()) { - this.success = other.success; - } + public updateImageBase_result(updateImageBase_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } - if (other.isSetError()) { - this.error = new TInvocationException(other.error); + if (other.isSetNotFound()) { + this.notFound = new TNotFoundException(other.notFound); + } + if (other.isSetImgError()) { + this.imgError = new TInvocationException(other.imgError); } } - public createImage_result deepCopy() { - return new createImage_result(this); + public updateImageBase_result deepCopy() { + return new updateImageBase_result(this); } @Override public void clear() { - this.success = null; this.authError = null; - this.error = null; + this.notFound = null; + this.imgError = null; } - public String getSuccess() { - return this.success; + public TAuthorizationException getAuthError() { + return this.authError; } - public createImage_result setSuccess(String success) { - this.success = success; + public updateImageBase_result setAuthError(TAuthorizationException authError) { + this.authError = authError; return this; } - public void unsetSuccess() { - this.success = null; + public void unsetAuthError() { + this.authError = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; + /** Returns true if field authError is set (has been assigned a value) and false otherwise */ + public boolean isSetAuthError() { + return this.authError != null; } - public void setSuccessIsSet(boolean value) { + public void setAuthErrorIsSet(boolean value) { if (!value) { - this.success = null; + this.authError = null; } } - public TAuthorizationException getAuthError() { - return this.authError; + public TNotFoundException getNotFound() { + return this.notFound; } - public createImage_result setAuthError(TAuthorizationException authError) { - this.authError = authError; + public updateImageBase_result setNotFound(TNotFoundException notFound) { + this.notFound = notFound; return this; } - public void unsetAuthError() { - this.authError = null; + public void unsetNotFound() { + this.notFound = null; } - /** Returns true if field authError is set (has been assigned a value) and false otherwise */ - public boolean isSetAuthError() { - return this.authError != null; + /** Returns true if field notFound is set (has been assigned a value) and false otherwise */ + public boolean isSetNotFound() { + return this.notFound != null; } - public void setAuthErrorIsSet(boolean value) { + public void setNotFoundIsSet(boolean value) { if (!value) { - this.authError = null; + this.notFound = null; } } - public TInvocationException getError() { - return this.error; + public TInvocationException getImgError() { + return this.imgError; } - public createImage_result setError(TInvocationException error) { - this.error = error; + public updateImageBase_result setImgError(TInvocationException imgError) { + this.imgError = imgError; return this; } - public void unsetError() { - this.error = null; + public void unsetImgError() { + this.imgError = null; } - /** Returns true if field error is set (has been assigned a value) and false otherwise */ - public boolean isSetError() { - return this.error != null; + /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ + public boolean isSetImgError() { + return this.imgError != null; } - public void setErrorIsSet(boolean value) { + public void setImgErrorIsSet(boolean value) { if (!value) { - this.error = null; + this.imgError = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case AUTH_ERROR: if (value == null) { - unsetSuccess(); + unsetAuthError(); } else { - setSuccess((String)value); + setAuthError((TAuthorizationException)value); } break; - case AUTH_ERROR: + case NOT_FOUND: if (value == null) { - unsetAuthError(); + unsetNotFound(); } else { - setAuthError((TAuthorizationException)value); + setNotFound((TNotFoundException)value); } break; - case ERROR: + case IMG_ERROR: if (value == null) { - unsetError(); + unsetImgError(); } else { - setError((TInvocationException)value); + setImgError((TInvocationException)value); } break; @@ -25256,14 +25248,14 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); - case ERROR: - return getError(); + case NOT_FOUND: + return getNotFound(); + + case IMG_ERROR: + return getImgError(); } throw new IllegalStateException(); @@ -25276,12 +25268,12 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); - case ERROR: - return isSetError(); + case NOT_FOUND: + return isSetNotFound(); + case IMG_ERROR: + return isSetImgError(); } throw new IllegalStateException(); } @@ -25290,24 +25282,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof createImage_result) - return this.equals((createImage_result)that); + if (that instanceof updateImageBase_result) + return this.equals((updateImageBase_result)that); return false; } - public boolean equals(createImage_result that) { + public boolean equals(updateImageBase_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -25317,12 +25300,21 @@ public class SatelliteServer { return false; } - boolean this_present_error = true && this.isSetError(); - boolean that_present_error = true && that.isSetError(); - if (this_present_error || that_present_error) { - if (!(this_present_error && that_present_error)) + boolean this_present_notFound = true && this.isSetNotFound(); + boolean that_present_notFound = true && that.isSetNotFound(); + if (this_present_notFound || that_present_notFound) { + if (!(this_present_notFound && that_present_notFound)) return false; - if (!this.error.equals(that.error)) + if (!this.notFound.equals(that.notFound)) + return false; + } + + boolean this_present_imgError = true && this.isSetImgError(); + boolean that_present_imgError = true && that.isSetImgError(); + if (this_present_imgError || that_present_imgError) { + if (!(this_present_imgError && that_present_imgError)) + return false; + if (!this.imgError.equals(that.imgError)) return false; } @@ -25335,39 +25327,39 @@ public class SatelliteServer { } @Override - public int compareTo(createImage_result other) { + public int compareTo(updateImageBase_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); + lastComparison = Boolean.valueOf(isSetNotFound()).compareTo(other.isSetNotFound()); if (lastComparison != 0) { return lastComparison; } - if (isSetAuthError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authError, other.authError); + if (isSetNotFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.notFound, other.notFound); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetError()).compareTo(other.isSetError()); + lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); if (lastComparison != 0) { return lastComparison; } - if (isSetError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.error, other.error); + if (isSetImgError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); if (lastComparison != 0) { return lastComparison; } @@ -25389,30 +25381,30 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("createImage_result("); + StringBuilder sb = new StringBuilder("updateImageBase_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { + sb.append("authError:"); + if (this.authError == null) { sb.append("null"); } else { - sb.append(this.success); + sb.append(this.authError); } first = false; if (!first) sb.append(", "); - sb.append("authError:"); - if (this.authError == null) { + sb.append("notFound:"); + if (this.notFound == null) { sb.append("null"); } else { - sb.append(this.authError); + sb.append(this.notFound); } first = false; if (!first) sb.append(", "); - sb.append("error:"); - if (this.error == null) { + sb.append("imgError:"); + if (this.imgError == null) { sb.append("null"); } else { - sb.append(this.error); + sb.append(this.imgError); } first = false; sb.append(")"); @@ -25440,15 +25432,15 @@ public class SatelliteServer { } } - private static class createImage_resultStandardSchemeFactory implements SchemeFactory { - public createImage_resultStandardScheme getScheme() { - return new createImage_resultStandardScheme(); + private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { + public updateImageBase_resultStandardScheme getScheme() { + return new updateImageBase_resultStandardScheme(); } } - private static class createImage_resultStandardScheme extends StandardScheme { + private static class updateImageBase_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, createImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -25458,14 +25450,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -25475,11 +25459,20 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ERROR + case 2: // NOT_FOUND if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.error = new TInvocationException(); - struct.error.read(iprot); - struct.setErrorIsSet(true); + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // IMG_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.imgError = new TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -25495,23 +25488,23 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, createImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeString(struct.success); - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); oprot.writeFieldEnd(); } - if (struct.error != null) { - oprot.writeFieldBegin(ERROR_FIELD_DESC); - struct.error.write(oprot); + if (struct.notFound != null) { + oprot.writeFieldBegin(NOT_FOUND_FIELD_DESC); + struct.notFound.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.imgError != null) { + oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); + struct.imgError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -25520,83 +25513,84 @@ public class SatelliteServer { } - private static class createImage_resultTupleSchemeFactory implements SchemeFactory { - public createImage_resultTupleScheme getScheme() { - return new createImage_resultTupleScheme(); + private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { + public updateImageBase_resultTupleScheme getScheme() { + return new updateImageBase_resultTupleScheme(); } } - private static class createImage_resultTupleScheme extends TupleScheme { + private static class updateImageBase_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetAuthError()) { optionals.set(0); } - if (struct.isSetAuthError()) { + if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetError()) { + if (struct.isSetImgError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); - if (struct.isSetSuccess()) { - oprot.writeString(struct.success); - } if (struct.isSetAuthError()) { struct.authError.write(oprot); } - if (struct.isSetError()) { - struct.error.write(oprot); + if (struct.isSetNotFound()) { + struct.notFound.write(oprot); + } + if (struct.isSetImgError()) { + struct.imgError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, createImage_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readString(); - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } + if (incoming.get(1)) { + struct.notFound = new TNotFoundException(); + struct.notFound.read(iprot); + struct.setNotFoundIsSet(true); + } if (incoming.get(2)) { - struct.error = new TInvocationException(); - struct.error.read(iprot); - struct.setErrorIsSet(true); + struct.imgError = new TInvocationException(); + struct.imgError.read(iprot); + struct.setImgErrorIsSet(true); } } } } - public static class updateImageBase_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_args"); + public static class updateImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("image", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageBase_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public ImageBaseWrite image; // required + public String imageVersionId; // required + public ImageVersionWrite image; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"), + IMAGE_VERSION_ID((short)2, "imageVersionId"), IMAGE((short)3, "image"); private static final Map byName = new HashMap(); @@ -25614,8 +25608,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; case 3: // IMAGE return IMAGE; default: @@ -25663,51 +25657,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.IMAGE, new org.apache.thrift.meta_data.FieldMetaData("image", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageBaseWrite.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageVersionWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); } - public updateImageBase_args() { + public updateImageVersion_args() { } - public updateImageBase_args( + public updateImageVersion_args( String userToken, - String imageBaseId, - ImageBaseWrite image) + String imageVersionId, + ImageVersionWrite image) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; + this.imageVersionId = imageVersionId; this.image = image; } /** * Performs a deep copy on other. */ - public updateImageBase_args(updateImageBase_args other) { + public updateImageVersion_args(updateImageVersion_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } if (other.isSetImage()) { - this.image = new ImageBaseWrite(other.image); + this.image = new ImageVersionWrite(other.image); } } - public updateImageBase_args deepCopy() { - return new updateImageBase_args(this); + public updateImageVersion_args deepCopy() { + return new updateImageVersion_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; + this.imageVersionId = null; this.image = null; } @@ -25715,7 +25709,7 @@ public class SatelliteServer { return this.userToken; } - public updateImageBase_args setUserToken(String userToken) { + public updateImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -25735,35 +25729,35 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public String getImageVersionId() { + return this.imageVersionId; } - public updateImageBase_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public updateImageVersion_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetImageBaseId() { - this.imageBaseId = null; + public void unsetImageVersionId() { + this.imageVersionId = null; } - /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageBaseId() { - return this.imageBaseId != null; + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setImageBaseIdIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.imageBaseId = null; + this.imageVersionId = null; } } - public ImageBaseWrite getImage() { + public ImageVersionWrite getImage() { return this.image; } - public updateImageBase_args setImage(ImageBaseWrite image) { + public updateImageVersion_args setImage(ImageVersionWrite image) { this.image = image; return this; } @@ -25793,11 +25787,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: + case IMAGE_VERSION_ID: if (value == null) { - unsetImageBaseId(); + unsetImageVersionId(); } else { - setImageBaseId((String)value); + setImageVersionId((String)value); } break; @@ -25805,7 +25799,7 @@ public class SatelliteServer { if (value == null) { unsetImage(); } else { - setImage((ImageBaseWrite)value); + setImage((ImageVersionWrite)value); } break; @@ -25817,8 +25811,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); + case IMAGE_VERSION_ID: + return getImageVersionId(); case IMAGE: return getImage(); @@ -25836,8 +25830,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); case IMAGE: return isSetImage(); } @@ -25848,12 +25842,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageBase_args) - return this.equals((updateImageBase_args)that); + if (that instanceof updateImageVersion_args) + return this.equals((updateImageVersion_args)that); return false; } - public boolean equals(updateImageBase_args that) { + public boolean equals(updateImageVersion_args that) { if (that == null) return false; @@ -25866,12 +25860,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) return false; - if (!this.imageBaseId.equals(that.imageBaseId)) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -25893,7 +25887,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageBase_args other) { + public int compareTo(updateImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -25910,12 +25904,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -25947,7 +25941,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_args("); + StringBuilder sb = new StringBuilder("updateImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -25958,11 +25952,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.imageBaseId); + sb.append(this.imageVersionId); } first = false; if (!first) sb.append(", "); @@ -26001,15 +25995,15 @@ public class SatelliteServer { } } - private static class updateImageBase_argsStandardSchemeFactory implements SchemeFactory { - public updateImageBase_argsStandardScheme getScheme() { - return new updateImageBase_argsStandardScheme(); + private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_argsStandardScheme getScheme() { + return new updateImageVersion_argsStandardScheme(); } } - private static class updateImageBase_argsStandardScheme extends StandardScheme { + private static class updateImageVersion_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26027,17 +26021,17 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID + case 2: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; case 3: // IMAGE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.image = new ImageBaseWrite(); + struct.image = new ImageVersionWrite(); struct.image.read(iprot); struct.setImageIsSet(true); } else { @@ -26055,7 +26049,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -26064,9 +26058,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } if (struct.image != null) { @@ -26080,22 +26074,22 @@ public class SatelliteServer { } - private static class updateImageBase_argsTupleSchemeFactory implements SchemeFactory { - public updateImageBase_argsTupleScheme getScheme() { - return new updateImageBase_argsTupleScheme(); + private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_argsTupleScheme getScheme() { + return new updateImageVersion_argsTupleScheme(); } } - private static class updateImageBase_argsTupleScheme extends TupleScheme { + private static class updateImageVersion_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageBaseId()) { + if (struct.isSetImageVersionId()) { optionals.set(1); } if (struct.isSetImage()) { @@ -26105,8 +26099,8 @@ public class SatelliteServer { if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } if (struct.isSetImage()) { struct.image.write(oprot); @@ -26114,7 +26108,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -26122,11 +26116,11 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } if (incoming.get(2)) { - struct.image = new ImageBaseWrite(); + struct.image = new ImageVersionWrite(); struct.image.read(iprot); struct.setImageIsSet(true); } @@ -26135,8 +26129,8 @@ public class SatelliteServer { } - public static class updateImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageBase_result"); + public static class updateImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -26144,8 +26138,8 @@ public class SatelliteServer { private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageBase_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new updateImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -26227,13 +26221,13 @@ public class SatelliteServer { tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageBase_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); } - public updateImageBase_result() { + public updateImageVersion_result() { } - public updateImageBase_result( + public updateImageVersion_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException imgError) @@ -26247,7 +26241,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public updateImageBase_result(updateImageBase_result other) { + public updateImageVersion_result(updateImageVersion_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -26259,8 +26253,8 @@ public class SatelliteServer { } } - public updateImageBase_result deepCopy() { - return new updateImageBase_result(this); + public updateImageVersion_result deepCopy() { + return new updateImageVersion_result(this); } @Override @@ -26274,7 +26268,7 @@ public class SatelliteServer { return this.authError; } - public updateImageBase_result setAuthError(TAuthorizationException authError) { + public updateImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -26298,7 +26292,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageBase_result setNotFound(TNotFoundException notFound) { + public updateImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -26322,7 +26316,7 @@ public class SatelliteServer { return this.imgError; } - public updateImageBase_result setImgError(TInvocationException imgError) { + public updateImageVersion_result setImgError(TInvocationException imgError) { this.imgError = imgError; return this; } @@ -26407,12 +26401,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageBase_result) - return this.equals((updateImageBase_result)that); + if (that instanceof updateImageVersion_result) + return this.equals((updateImageVersion_result)that); return false; } - public boolean equals(updateImageBase_result that) { + public boolean equals(updateImageVersion_result that) { if (that == null) return false; @@ -26452,7 +26446,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageBase_result other) { + public int compareTo(updateImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -26506,7 +26500,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageBase_result("); + StringBuilder sb = new StringBuilder("updateImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -26557,15 +26551,15 @@ public class SatelliteServer { } } - private static class updateImageBase_resultStandardSchemeFactory implements SchemeFactory { - public updateImageBase_resultStandardScheme getScheme() { - return new updateImageBase_resultStandardScheme(); + private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public updateImageVersion_resultStandardScheme getScheme() { + return new updateImageVersion_resultStandardScheme(); } } - private static class updateImageBase_resultStandardScheme extends StandardScheme { + private static class updateImageVersion_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26613,7 +26607,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -26638,16 +26632,16 @@ public class SatelliteServer { } - private static class updateImageBase_resultTupleSchemeFactory implements SchemeFactory { - public updateImageBase_resultTupleScheme getScheme() { - return new updateImageBase_resultTupleScheme(); + private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public updateImageVersion_resultTupleScheme getScheme() { + return new updateImageVersion_resultTupleScheme(); } } - private static class updateImageBase_resultTupleScheme extends TupleScheme { + private static class updateImageVersion_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -26672,7 +26666,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -26695,28 +26689,25 @@ public class SatelliteServer { } - public static class updateImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_args"); + public static class deleteImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField IMAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("image", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageVersion_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageVersion_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); } public String userToken; // required public String imageVersionId; // required - public ImageVersionWrite image; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"), - IMAGE((short)3, "image"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -26735,8 +26726,6 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_VERSION_ID return IMAGE_VERSION_ID; - case 3: // IMAGE - return IMAGE; default: return null; } @@ -26784,57 +26773,49 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.IMAGE, new org.apache.thrift.meta_data.FieldMetaData("image", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImageVersionWrite.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); } - public updateImageVersion_args() { + public deleteImageVersion_args() { } - public updateImageVersion_args( + public deleteImageVersion_args( String userToken, - String imageVersionId, - ImageVersionWrite image) + String imageVersionId) { this(); this.userToken = userToken; this.imageVersionId = imageVersionId; - this.image = image; } /** * Performs a deep copy on other. */ - public updateImageVersion_args(updateImageVersion_args other) { + public deleteImageVersion_args(deleteImageVersion_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageVersionId()) { this.imageVersionId = other.imageVersionId; } - if (other.isSetImage()) { - this.image = new ImageVersionWrite(other.image); - } } - public updateImageVersion_args deepCopy() { - return new updateImageVersion_args(this); + public deleteImageVersion_args deepCopy() { + return new deleteImageVersion_args(this); } @Override public void clear() { this.userToken = null; this.imageVersionId = null; - this.image = null; } public String getUserToken() { return this.userToken; } - public updateImageVersion_args setUserToken(String userToken) { + public deleteImageVersion_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -26858,7 +26839,7 @@ public class SatelliteServer { return this.imageVersionId; } - public updateImageVersion_args setImageVersionId(String imageVersionId) { + public deleteImageVersion_args setImageVersionId(String imageVersionId) { this.imageVersionId = imageVersionId; return this; } @@ -26878,30 +26859,6 @@ public class SatelliteServer { } } - public ImageVersionWrite getImage() { - return this.image; - } - - public updateImageVersion_args setImage(ImageVersionWrite image) { - this.image = image; - return this; - } - - public void unsetImage() { - this.image = null; - } - - /** Returns true if field image is set (has been assigned a value) and false otherwise */ - public boolean isSetImage() { - return this.image != null; - } - - public void setImageIsSet(boolean value) { - if (!value) { - this.image = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -26920,14 +26877,6 @@ public class SatelliteServer { } break; - case IMAGE: - if (value == null) { - unsetImage(); - } else { - setImage((ImageVersionWrite)value); - } - break; - } } @@ -26939,9 +26888,6 @@ public class SatelliteServer { case IMAGE_VERSION_ID: return getImageVersionId(); - case IMAGE: - return getImage(); - } throw new IllegalStateException(); } @@ -26957,8 +26903,6 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_VERSION_ID: return isSetImageVersionId(); - case IMAGE: - return isSetImage(); } throw new IllegalStateException(); } @@ -26967,12 +26911,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageVersion_args) - return this.equals((updateImageVersion_args)that); + if (that instanceof deleteImageVersion_args) + return this.equals((deleteImageVersion_args)that); return false; } - public boolean equals(updateImageVersion_args that) { + public boolean equals(deleteImageVersion_args that) { if (that == null) return false; @@ -26994,15 +26938,6 @@ public class SatelliteServer { return false; } - boolean this_present_image = true && this.isSetImage(); - boolean that_present_image = true && that.isSetImage(); - if (this_present_image || that_present_image) { - if (!(this_present_image && that_present_image)) - return false; - if (!this.image.equals(that.image)) - return false; - } - return true; } @@ -27012,7 +26947,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_args other) { + public int compareTo(deleteImageVersion_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -27039,16 +26974,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImage()).compareTo(other.isSetImage()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.image, other.image); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -27066,7 +26991,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_args("); + StringBuilder sb = new StringBuilder("deleteImageVersion_args("); boolean first = true; sb.append("userToken:"); @@ -27084,14 +27009,6 @@ public class SatelliteServer { sb.append(this.imageVersionId); } first = false; - if (!first) sb.append(", "); - sb.append("image:"); - if (this.image == null) { - sb.append("null"); - } else { - sb.append(this.image); - } - first = false; sb.append(")"); return sb.toString(); } @@ -27099,9 +27016,6 @@ public class SatelliteServer { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (image != null) { - image.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -27120,15 +27034,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_argsStandardScheme getScheme() { - return new updateImageVersion_argsStandardScheme(); + private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsStandardScheme getScheme() { + return new deleteImageVersion_argsStandardScheme(); } } - private static class updateImageVersion_argsStandardScheme extends StandardScheme { + private static class deleteImageVersion_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27154,15 +27068,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IMAGE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.image = new ImageVersionWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27174,7 +27079,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -27188,27 +27093,22 @@ public class SatelliteServer { oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } - if (struct.image != null) { - oprot.writeFieldBegin(IMAGE_FIELD_DESC); - struct.image.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class updateImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_argsTupleScheme getScheme() { - return new updateImageVersion_argsTupleScheme(); + private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_argsTupleScheme getScheme() { + return new deleteImageVersion_argsTupleScheme(); } } - private static class updateImageVersion_argsTupleScheme extends TupleScheme { + private static class deleteImageVersion_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -27217,25 +27117,19 @@ public class SatelliteServer { if (struct.isSetImageVersionId()) { optionals.set(1); } - if (struct.isSetImage()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageVersionId()) { oprot.writeString(struct.imageVersionId); } - if (struct.isSetImage()) { - struct.image.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -27244,38 +27138,33 @@ public class SatelliteServer { struct.imageVersionId = iprot.readString(); struct.setImageVersionIdIsSet(true); } - if (incoming.get(2)) { - struct.image = new ImageVersionWrite(); - struct.image.read(iprot); - struct.setImageIsSet(true); - } } } } - public static class updateImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateImageVersion_result"); + public static class deleteImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField IMG_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("imgError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new updateImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new updateImageVersion_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageVersion_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required public TNotFoundException notFound; // required - public TInvocationException imgError; // required + public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), - IMG_ERROR((short)3, "imgError"); + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -27294,8 +27183,8 @@ public class SatelliteServer { return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; - case 3: // IMG_ERROR - return IMG_ERROR; + case 3: // SERVER_ERROR + return SERVER_ERROR; default: return null; } @@ -27343,57 +27232,57 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.IMG_ERROR, new org.apache.thrift.meta_data.FieldMetaData("imgError", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_result.class, metaDataMap); } - public updateImageVersion_result() { + public deleteImageVersion_result() { } - public updateImageVersion_result( + public deleteImageVersion_result( TAuthorizationException authError, TNotFoundException notFound, - TInvocationException imgError) + TInvocationException serverError) { this(); this.authError = authError; this.notFound = notFound; - this.imgError = imgError; + this.serverError = serverError; } /** * Performs a deep copy on other. */ - public updateImageVersion_result(updateImageVersion_result other) { + public deleteImageVersion_result(deleteImageVersion_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } if (other.isSetNotFound()) { this.notFound = new TNotFoundException(other.notFound); } - if (other.isSetImgError()) { - this.imgError = new TInvocationException(other.imgError); + if (other.isSetServerError()) { + this.serverError = new TInvocationException(other.serverError); } } - public updateImageVersion_result deepCopy() { - return new updateImageVersion_result(this); + public deleteImageVersion_result deepCopy() { + return new deleteImageVersion_result(this); } @Override public void clear() { this.authError = null; this.notFound = null; - this.imgError = null; + this.serverError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public updateImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteImageVersion_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -27417,7 +27306,7 @@ public class SatelliteServer { return this.notFound; } - public updateImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageVersion_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -27437,27 +27326,27 @@ public class SatelliteServer { } } - public TInvocationException getImgError() { - return this.imgError; + public TInvocationException getServerError() { + return this.serverError; } - public updateImageVersion_result setImgError(TInvocationException imgError) { - this.imgError = imgError; + public deleteImageVersion_result setServerError(TInvocationException serverError) { + this.serverError = serverError; return this; } - public void unsetImgError() { - this.imgError = null; + public void unsetServerError() { + this.serverError = null; } - /** Returns true if field imgError is set (has been assigned a value) and false otherwise */ - public boolean isSetImgError() { - return this.imgError != null; + /** Returns true if field serverError is set (has been assigned a value) and false otherwise */ + public boolean isSetServerError() { + return this.serverError != null; } - public void setImgErrorIsSet(boolean value) { + public void setServerErrorIsSet(boolean value) { if (!value) { - this.imgError = null; + this.serverError = null; } } @@ -27479,11 +27368,11 @@ public class SatelliteServer { } break; - case IMG_ERROR: + case SERVER_ERROR: if (value == null) { - unsetImgError(); + unsetServerError(); } else { - setImgError((TInvocationException)value); + setServerError((TInvocationException)value); } break; @@ -27498,8 +27387,8 @@ public class SatelliteServer { case NOT_FOUND: return getNotFound(); - case IMG_ERROR: - return getImgError(); + case SERVER_ERROR: + return getServerError(); } throw new IllegalStateException(); @@ -27516,8 +27405,8 @@ public class SatelliteServer { return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); - case IMG_ERROR: - return isSetImgError(); + case SERVER_ERROR: + return isSetServerError(); } throw new IllegalStateException(); } @@ -27526,12 +27415,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof updateImageVersion_result) - return this.equals((updateImageVersion_result)that); + if (that instanceof deleteImageVersion_result) + return this.equals((deleteImageVersion_result)that); return false; } - public boolean equals(updateImageVersion_result that) { + public boolean equals(deleteImageVersion_result that) { if (that == null) return false; @@ -27553,12 +27442,12 @@ public class SatelliteServer { return false; } - boolean this_present_imgError = true && this.isSetImgError(); - boolean that_present_imgError = true && that.isSetImgError(); - if (this_present_imgError || that_present_imgError) { - if (!(this_present_imgError && that_present_imgError)) + boolean this_present_serverError = true && this.isSetServerError(); + boolean that_present_serverError = true && that.isSetServerError(); + if (this_present_serverError || that_present_serverError) { + if (!(this_present_serverError && that_present_serverError)) return false; - if (!this.imgError.equals(that.imgError)) + if (!this.serverError.equals(that.serverError)) return false; } @@ -27571,7 +27460,7 @@ public class SatelliteServer { } @Override - public int compareTo(updateImageVersion_result other) { + public int compareTo(deleteImageVersion_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -27598,12 +27487,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImgError()).compareTo(other.isSetImgError()); + lastComparison = Boolean.valueOf(isSetServerError()).compareTo(other.isSetServerError()); if (lastComparison != 0) { return lastComparison; } - if (isSetImgError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imgError, other.imgError); + if (isSetServerError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverError, other.serverError); if (lastComparison != 0) { return lastComparison; } @@ -27625,7 +27514,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("updateImageVersion_result("); + StringBuilder sb = new StringBuilder("deleteImageVersion_result("); boolean first = true; sb.append("authError:"); @@ -27644,11 +27533,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imgError:"); - if (this.imgError == null) { + sb.append("serverError:"); + if (this.serverError == null) { sb.append("null"); } else { - sb.append(this.imgError); + sb.append(this.serverError); } first = false; sb.append(")"); @@ -27676,15 +27565,15 @@ public class SatelliteServer { } } - private static class updateImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public updateImageVersion_resultStandardScheme getScheme() { - return new updateImageVersion_resultStandardScheme(); + private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultStandardScheme getScheme() { + return new deleteImageVersion_resultStandardScheme(); } } - private static class updateImageVersion_resultStandardScheme extends StandardScheme { + private static class deleteImageVersion_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27712,11 +27601,11 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // IMG_ERROR + case 3: // SERVER_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.imgError = new TInvocationException(); - struct.imgError.read(iprot); - struct.setImgErrorIsSet(true); + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27732,7 +27621,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -27746,9 +27635,9 @@ public class SatelliteServer { struct.notFound.write(oprot); oprot.writeFieldEnd(); } - if (struct.imgError != null) { - oprot.writeFieldBegin(IMG_ERROR_FIELD_DESC); - struct.imgError.write(oprot); + if (struct.serverError != null) { + oprot.writeFieldBegin(SERVER_ERROR_FIELD_DESC); + struct.serverError.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -27757,16 +27646,16 @@ public class SatelliteServer { } - private static class updateImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public updateImageVersion_resultTupleScheme getScheme() { - return new updateImageVersion_resultTupleScheme(); + private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageVersion_resultTupleScheme getScheme() { + return new deleteImageVersion_resultTupleScheme(); } } - private static class updateImageVersion_resultTupleScheme extends TupleScheme { + private static class deleteImageVersion_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -27775,7 +27664,7 @@ public class SatelliteServer { if (struct.isSetNotFound()) { optionals.set(1); } - if (struct.isSetImgError()) { + if (struct.isSetServerError()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -27785,13 +27674,13 @@ public class SatelliteServer { if (struct.isSetNotFound()) { struct.notFound.write(oprot); } - if (struct.isSetImgError()) { - struct.imgError.write(oprot); + if (struct.isSetServerError()) { + struct.serverError.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, updateImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -27805,34 +27694,34 @@ public class SatelliteServer { struct.setNotFoundIsSet(true); } if (incoming.get(2)) { - struct.imgError = new TInvocationException(); - struct.imgError.read(iprot); - struct.setImgErrorIsSet(true); + struct.serverError = new TInvocationException(); + struct.serverError.read(iprot); + struct.setServerErrorIsSet(true); } } } } - public static class deleteImageVersion_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_args"); + public static class deleteImageBase_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageBase_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageVersion_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageBase_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageBase_argsTupleSchemeFactory()); } public String userToken; // required - public String imageVersionId; // required + public String imageBaseId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_VERSION_ID((short)2, "imageVersionId"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -27849,8 +27738,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_VERSION_ID - return IMAGE_VERSION_ID; + case 2: // IMAGE_BASE_ID + return IMAGE_BASE_ID; default: return null; } @@ -27896,51 +27785,51 @@ public class SatelliteServer { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_args.class, metaDataMap); } - public deleteImageVersion_args() { + public deleteImageBase_args() { } - public deleteImageVersion_args( + public deleteImageBase_args( String userToken, - String imageVersionId) + String imageBaseId) { this(); this.userToken = userToken; - this.imageVersionId = imageVersionId; + this.imageBaseId = imageBaseId; } /** * Performs a deep copy on other. */ - public deleteImageVersion_args(deleteImageVersion_args other) { + public deleteImageBase_args(deleteImageBase_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageVersionId()) { - this.imageVersionId = other.imageVersionId; + if (other.isSetImageBaseId()) { + this.imageBaseId = other.imageBaseId; } } - public deleteImageVersion_args deepCopy() { - return new deleteImageVersion_args(this); + public deleteImageBase_args deepCopy() { + return new deleteImageBase_args(this); } @Override public void clear() { this.userToken = null; - this.imageVersionId = null; + this.imageBaseId = null; } public String getUserToken() { return this.userToken; } - public deleteImageVersion_args setUserToken(String userToken) { + public deleteImageBase_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -27960,27 +27849,27 @@ public class SatelliteServer { } } - public String getImageVersionId() { - return this.imageVersionId; + public String getImageBaseId() { + return this.imageBaseId; } - public deleteImageVersion_args setImageVersionId(String imageVersionId) { - this.imageVersionId = imageVersionId; + public deleteImageBase_args setImageBaseId(String imageBaseId) { + this.imageBaseId = imageBaseId; return this; } - public void unsetImageVersionId() { - this.imageVersionId = null; + public void unsetImageBaseId() { + this.imageBaseId = null; } - /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageVersionId() { - return this.imageVersionId != null; + /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageBaseId() { + return this.imageBaseId != null; } - public void setImageVersionIdIsSet(boolean value) { + public void setImageBaseIdIsSet(boolean value) { if (!value) { - this.imageVersionId = null; + this.imageBaseId = null; } } @@ -27994,11 +27883,11 @@ public class SatelliteServer { } break; - case IMAGE_VERSION_ID: + case IMAGE_BASE_ID: if (value == null) { - unsetImageVersionId(); + unsetImageBaseId(); } else { - setImageVersionId((String)value); + setImageBaseId((String)value); } break; @@ -28010,8 +27899,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_VERSION_ID: - return getImageVersionId(); + case IMAGE_BASE_ID: + return getImageBaseId(); } throw new IllegalStateException(); @@ -28026,8 +27915,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_VERSION_ID: - return isSetImageVersionId(); + case IMAGE_BASE_ID: + return isSetImageBaseId(); } throw new IllegalStateException(); } @@ -28036,12 +27925,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageVersion_args) - return this.equals((deleteImageVersion_args)that); + if (that instanceof deleteImageBase_args) + return this.equals((deleteImageBase_args)that); return false; } - public boolean equals(deleteImageVersion_args that) { + public boolean equals(deleteImageBase_args that) { if (that == null) return false; @@ -28054,12 +27943,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageVersionId = true && this.isSetImageVersionId(); - boolean that_present_imageVersionId = true && that.isSetImageVersionId(); - if (this_present_imageVersionId || that_present_imageVersionId) { - if (!(this_present_imageVersionId && that_present_imageVersionId)) + boolean this_present_imageBaseId = true && this.isSetImageBaseId(); + boolean that_present_imageBaseId = true && that.isSetImageBaseId(); + if (this_present_imageBaseId || that_present_imageBaseId) { + if (!(this_present_imageBaseId && that_present_imageBaseId)) return false; - if (!this.imageVersionId.equals(that.imageVersionId)) + if (!this.imageBaseId.equals(that.imageBaseId)) return false; } @@ -28072,7 +27961,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_args other) { + public int compareTo(deleteImageBase_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28089,12 +27978,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); + lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); if (lastComparison != 0) { return lastComparison; } - if (isSetImageVersionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); + if (isSetImageBaseId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); if (lastComparison != 0) { return lastComparison; } @@ -28116,7 +28005,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_args("); + StringBuilder sb = new StringBuilder("deleteImageBase_args("); boolean first = true; sb.append("userToken:"); @@ -28127,11 +28016,11 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageVersionId:"); - if (this.imageVersionId == null) { + sb.append("imageBaseId:"); + if (this.imageBaseId == null) { sb.append("null"); } else { - sb.append(this.imageVersionId); + sb.append(this.imageBaseId); } first = false; sb.append(")"); @@ -28159,15 +28048,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsStandardScheme getScheme() { - return new deleteImageVersion_argsStandardScheme(); + private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory { + public deleteImageBase_argsStandardScheme getScheme() { + return new deleteImageBase_argsStandardScheme(); } } - private static class deleteImageVersion_argsStandardScheme extends StandardScheme { + private static class deleteImageBase_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28185,10 +28074,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_VERSION_ID + case 2: // IMAGE_BASE_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -28204,7 +28093,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28213,9 +28102,9 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageVersionId != null) { - oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); - oprot.writeString(struct.imageVersionId); + if (struct.imageBaseId != null) { + oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); + oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -28224,35 +28113,35 @@ public class SatelliteServer { } - private static class deleteImageVersion_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_argsTupleScheme getScheme() { - return new deleteImageVersion_argsTupleScheme(); + private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory { + public deleteImageBase_argsTupleScheme getScheme() { + return new deleteImageBase_argsTupleScheme(); } } - private static class deleteImageVersion_argsTupleScheme extends TupleScheme { + private static class deleteImageBase_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageVersionId()) { + if (struct.isSetImageBaseId()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageVersionId()) { - oprot.writeString(struct.imageVersionId); + if (struct.isSetImageBaseId()) { + oprot.writeString(struct.imageBaseId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -28260,16 +28149,16 @@ public class SatelliteServer { struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageVersionId = iprot.readString(); - struct.setImageVersionIdIsSet(true); + struct.imageBaseId = iprot.readString(); + struct.setImageBaseIdIsSet(true); } } } } - public static class deleteImageVersion_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageVersion_result"); + public static class deleteImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageBase_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -28277,8 +28166,8 @@ public class SatelliteServer { private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageVersion_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageVersion_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new deleteImageBase_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new deleteImageBase_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -28360,13 +28249,13 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageVersion_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_result.class, metaDataMap); } - public deleteImageVersion_result() { + public deleteImageBase_result() { } - public deleteImageVersion_result( + public deleteImageBase_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -28380,7 +28269,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public deleteImageVersion_result(deleteImageVersion_result other) { + public deleteImageBase_result(deleteImageBase_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -28392,8 +28281,8 @@ public class SatelliteServer { } } - public deleteImageVersion_result deepCopy() { - return new deleteImageVersion_result(this); + public deleteImageBase_result deepCopy() { + return new deleteImageBase_result(this); } @Override @@ -28407,7 +28296,7 @@ public class SatelliteServer { return this.authError; } - public deleteImageVersion_result setAuthError(TAuthorizationException authError) { + public deleteImageBase_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -28431,7 +28320,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageVersion_result setNotFound(TNotFoundException notFound) { + public deleteImageBase_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -28455,7 +28344,7 @@ public class SatelliteServer { return this.serverError; } - public deleteImageVersion_result setServerError(TInvocationException serverError) { + public deleteImageBase_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -28540,12 +28429,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageVersion_result) - return this.equals((deleteImageVersion_result)that); + if (that instanceof deleteImageBase_result) + return this.equals((deleteImageBase_result)that); return false; } - public boolean equals(deleteImageVersion_result that) { + public boolean equals(deleteImageBase_result that) { if (that == null) return false; @@ -28585,7 +28474,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageVersion_result other) { + public int compareTo(deleteImageBase_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -28639,7 +28528,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageVersion_result("); + StringBuilder sb = new StringBuilder("deleteImageBase_result("); boolean first = true; sb.append("authError:"); @@ -28690,15 +28579,15 @@ public class SatelliteServer { } } - private static class deleteImageVersion_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultStandardScheme getScheme() { - return new deleteImageVersion_resultStandardScheme(); + private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory { + public deleteImageBase_resultStandardScheme getScheme() { + return new deleteImageBase_resultStandardScheme(); } } - private static class deleteImageVersion_resultStandardScheme extends StandardScheme { + private static class deleteImageBase_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28746,7 +28635,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28771,16 +28660,16 @@ public class SatelliteServer { } - private static class deleteImageVersion_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageVersion_resultTupleScheme getScheme() { - return new deleteImageVersion_resultTupleScheme(); + private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory { + public deleteImageBase_resultTupleScheme getScheme() { + return new deleteImageBase_resultTupleScheme(); } } - private static class deleteImageVersion_resultTupleScheme extends TupleScheme { + private static class deleteImageBase_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -28805,7 +28694,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageVersion_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -28828,25 +28717,28 @@ public class SatelliteServer { } - public static class deleteImageBase_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageBase_args"); + public static class writeImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); 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)2); + private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageBase_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageBase_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required + public Map permissions; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + PERMISSIONS((short)3, "permissions"); private static final Map byName = new HashMap(); @@ -28865,6 +28757,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; + case 3: // PERMISSIONS + return PERMISSIONS; default: return null; } @@ -28912,49 +28806,71 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); 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.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); } - public deleteImageBase_args() { + public writeImagePermissions_args() { } - public deleteImageBase_args( + public writeImagePermissions_args( String userToken, - String imageBaseId) + String imageBaseId, + Map permissions) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; + this.permissions = permissions; } /** * Performs a deep copy on other. */ - public deleteImageBase_args(deleteImageBase_args other) { + public writeImagePermissions_args(writeImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } + if (other.isSetPermissions()) { + Map __this__permissions = new HashMap(other.permissions.size()); + for (Map.Entry other_element : other.permissions.entrySet()) { + + String other_element_key = other_element.getKey(); + ImagePermissions other_element_value = other_element.getValue(); + + String __this__permissions_copy_key = other_element_key; + + ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); + + __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); + } + this.permissions = __this__permissions; + } } - public deleteImageBase_args deepCopy() { - return new deleteImageBase_args(this); + public writeImagePermissions_args deepCopy() { + return new writeImagePermissions_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; + this.permissions = null; } public String getUserToken() { return this.userToken; } - public deleteImageBase_args setUserToken(String userToken) { + public writeImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -28978,7 +28894,7 @@ public class SatelliteServer { return this.imageBaseId; } - public deleteImageBase_args setImageBaseId(String imageBaseId) { + public writeImagePermissions_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -28998,6 +28914,41 @@ public class SatelliteServer { } } + public int getPermissionsSize() { + return (this.permissions == null) ? 0 : this.permissions.size(); + } + + public void putToPermissions(String key, ImagePermissions val) { + if (this.permissions == null) { + this.permissions = new HashMap(); + } + this.permissions.put(key, val); + } + + public Map getPermissions() { + return this.permissions; + } + + public writeImagePermissions_args setPermissions(Map permissions) { + this.permissions = permissions; + return this; + } + + public void unsetPermissions() { + this.permissions = null; + } + + /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ + public boolean isSetPermissions() { + return this.permissions != null; + } + + public void setPermissionsIsSet(boolean value) { + if (!value) { + this.permissions = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -29016,6 +28967,14 @@ public class SatelliteServer { } break; + case PERMISSIONS: + if (value == null) { + unsetPermissions(); + } else { + setPermissions((Map)value); + } + break; + } } @@ -29027,6 +28986,9 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); + case PERMISSIONS: + return getPermissions(); + } throw new IllegalStateException(); } @@ -29042,6 +29004,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); + case PERMISSIONS: + return isSetPermissions(); } throw new IllegalStateException(); } @@ -29050,12 +29014,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageBase_args) - return this.equals((deleteImageBase_args)that); + if (that instanceof writeImagePermissions_args) + return this.equals((writeImagePermissions_args)that); return false; } - public boolean equals(deleteImageBase_args that) { + public boolean equals(writeImagePermissions_args that) { if (that == null) return false; @@ -29077,6 +29041,15 @@ public class SatelliteServer { return false; } + boolean this_present_permissions = true && this.isSetPermissions(); + boolean that_present_permissions = true && that.isSetPermissions(); + if (this_present_permissions || that_present_permissions) { + if (!(this_present_permissions && that_present_permissions)) + return false; + if (!this.permissions.equals(that.permissions)) + return false; + } + return true; } @@ -29086,7 +29059,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageBase_args other) { + public int compareTo(writeImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -29113,6 +29086,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPermissions()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -29130,7 +29113,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_args("); + StringBuilder sb = new StringBuilder("writeImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -29148,6 +29131,14 @@ public class SatelliteServer { sb.append(this.imageBaseId); } first = false; + if (!first) sb.append(", "); + sb.append("permissions:"); + if (this.permissions == null) { + sb.append("null"); + } else { + sb.append(this.permissions); + } + first = false; sb.append(")"); return sb.toString(); } @@ -29173,15 +29164,15 @@ public class SatelliteServer { } } - private static class deleteImageBase_argsStandardSchemeFactory implements SchemeFactory { - public deleteImageBase_argsStandardScheme getScheme() { - return new deleteImageBase_argsStandardScheme(); + private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsStandardScheme getScheme() { + return new writeImagePermissions_argsStandardScheme(); } } - private static class deleteImageBase_argsStandardScheme extends StandardScheme { + private static class writeImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29207,6 +29198,27 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // PERMISSIONS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map218.size); + for (int _i219 = 0; _i219 < _map218.size; ++_i219) + { + String _key220; + ImagePermissions _val221; + _key220 = iprot.readString(); + _val221 = new ImagePermissions(); + _val221.read(iprot); + struct.permissions.put(_key220, _val221); + } + iprot.readMapEnd(); + } + struct.setPermissionsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -29218,7 +29230,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29232,22 +29244,35 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } + if (struct.permissions != null) { + oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); + for (Map.Entry _iter222 : struct.permissions.entrySet()) + { + oprot.writeString(_iter222.getKey()); + _iter222.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class deleteImageBase_argsTupleSchemeFactory implements SchemeFactory { - public deleteImageBase_argsTupleScheme getScheme() { - return new deleteImageBase_argsTupleScheme(); + private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_argsTupleScheme getScheme() { + return new writeImagePermissions_argsTupleScheme(); } } - private static class deleteImageBase_argsTupleScheme extends TupleScheme { + private static class writeImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -29256,19 +29281,32 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetPermissions()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } + if (struct.isSetPermissions()) { + { + oprot.writeI32(struct.permissions.size()); + for (Map.Entry _iter223 : struct.permissions.entrySet()) + { + oprot.writeString(_iter223.getKey()); + _iter223.getValue().write(oprot); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -29277,13 +29315,29 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TMap _map224 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.permissions = new HashMap(2*_map224.size); + for (int _i225 = 0; _i225 < _map224.size; ++_i225) + { + String _key226; + ImagePermissions _val227; + _key226 = iprot.readString(); + _val227 = new ImagePermissions(); + _val227.read(iprot); + struct.permissions.put(_key226, _val227); + } + } + struct.setPermissionsIsSet(true); + } } } } - public static class deleteImageBase_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteImageBase_result"); + public static class writeImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -29291,8 +29345,8 @@ public class SatelliteServer { private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new deleteImageBase_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new deleteImageBase_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required @@ -29374,13 +29428,13 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteImageBase_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); } - public deleteImageBase_result() { + public writeImagePermissions_result() { } - public deleteImageBase_result( + public writeImagePermissions_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) @@ -29394,7 +29448,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public deleteImageBase_result(deleteImageBase_result other) { + public writeImagePermissions_result(writeImagePermissions_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -29406,8 +29460,8 @@ public class SatelliteServer { } } - public deleteImageBase_result deepCopy() { - return new deleteImageBase_result(this); + public writeImagePermissions_result deepCopy() { + return new writeImagePermissions_result(this); } @Override @@ -29421,7 +29475,7 @@ public class SatelliteServer { return this.authError; } - public deleteImageBase_result setAuthError(TAuthorizationException authError) { + public writeImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -29445,7 +29499,7 @@ public class SatelliteServer { return this.notFound; } - public deleteImageBase_result setNotFound(TNotFoundException notFound) { + public writeImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -29469,7 +29523,7 @@ public class SatelliteServer { return this.serverError; } - public deleteImageBase_result setServerError(TInvocationException serverError) { + public writeImagePermissions_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -29554,12 +29608,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof deleteImageBase_result) - return this.equals((deleteImageBase_result)that); + if (that instanceof writeImagePermissions_result) + return this.equals((writeImagePermissions_result)that); return false; } - public boolean equals(deleteImageBase_result that) { + public boolean equals(writeImagePermissions_result that) { if (that == null) return false; @@ -29599,7 +29653,7 @@ public class SatelliteServer { } @Override - public int compareTo(deleteImageBase_result other) { + public int compareTo(writeImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -29653,7 +29707,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("deleteImageBase_result("); + StringBuilder sb = new StringBuilder("writeImagePermissions_result("); boolean first = true; sb.append("authError:"); @@ -29704,15 +29758,15 @@ public class SatelliteServer { } } - private static class deleteImageBase_resultStandardSchemeFactory implements SchemeFactory { - public deleteImageBase_resultStandardScheme getScheme() { - return new deleteImageBase_resultStandardScheme(); + private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultStandardScheme getScheme() { + return new writeImagePermissions_resultStandardScheme(); } } - private static class deleteImageBase_resultStandardScheme extends StandardScheme { + private static class writeImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29760,7 +29814,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -29785,16 +29839,16 @@ public class SatelliteServer { } - private static class deleteImageBase_resultTupleSchemeFactory implements SchemeFactory { - public deleteImageBase_resultTupleScheme getScheme() { - return new deleteImageBase_resultTupleScheme(); + private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public writeImagePermissions_resultTupleScheme getScheme() { + return new writeImagePermissions_resultTupleScheme(); } } - private static class deleteImageBase_resultTupleScheme extends TupleScheme { + private static class writeImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -29819,7 +29873,7 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, deleteImageBase_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -29842,28 +29896,25 @@ public class SatelliteServer { } - public static class writeImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_args"); + public static class getImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); 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)2); - private static final org.apache.thrift.protocol.TField PERMISSIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("permissions", org.apache.thrift.protocol.TType.MAP, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required - public Map permissions; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"), - PERMISSIONS((short)3, "permissions"); + IMAGE_BASE_ID((short)2, "imageBaseId"); private static final Map byName = new HashMap(); @@ -29882,8 +29933,6 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; - case 3: // PERMISSIONS - return PERMISSIONS; default: return null; } @@ -29931,71 +29980,49 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); 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.PERMISSIONS, new org.apache.thrift.meta_data.FieldMetaData("permissions", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); } - public writeImagePermissions_args() { + public getImagePermissions_args() { } - public writeImagePermissions_args( + public getImagePermissions_args( String userToken, - String imageBaseId, - Map permissions) + String imageBaseId) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; - this.permissions = permissions; } /** * Performs a deep copy on other. */ - public writeImagePermissions_args(writeImagePermissions_args other) { + public getImagePermissions_args(getImagePermissions_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } - if (other.isSetPermissions()) { - Map __this__permissions = new HashMap(other.permissions.size()); - for (Map.Entry other_element : other.permissions.entrySet()) { - - String other_element_key = other_element.getKey(); - ImagePermissions other_element_value = other_element.getValue(); - - String __this__permissions_copy_key = other_element_key; - - ImagePermissions __this__permissions_copy_value = new ImagePermissions(other_element_value); - - __this__permissions.put(__this__permissions_copy_key, __this__permissions_copy_value); - } - this.permissions = __this__permissions; - } } - public writeImagePermissions_args deepCopy() { - return new writeImagePermissions_args(this); + public getImagePermissions_args deepCopy() { + return new getImagePermissions_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; - this.permissions = null; } public String getUserToken() { return this.userToken; } - public writeImagePermissions_args setUserToken(String userToken) { + public getImagePermissions_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -30019,7 +30046,7 @@ public class SatelliteServer { return this.imageBaseId; } - public writeImagePermissions_args setImageBaseId(String imageBaseId) { + public getImagePermissions_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -30039,41 +30066,6 @@ public class SatelliteServer { } } - public int getPermissionsSize() { - return (this.permissions == null) ? 0 : this.permissions.size(); - } - - public void putToPermissions(String key, ImagePermissions val) { - if (this.permissions == null) { - this.permissions = new HashMap(); - } - this.permissions.put(key, val); - } - - public Map getPermissions() { - return this.permissions; - } - - public writeImagePermissions_args setPermissions(Map permissions) { - this.permissions = permissions; - return this; - } - - public void unsetPermissions() { - this.permissions = null; - } - - /** Returns true if field permissions is set (has been assigned a value) and false otherwise */ - public boolean isSetPermissions() { - return this.permissions != null; - } - - public void setPermissionsIsSet(boolean value) { - if (!value) { - this.permissions = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -30092,14 +30084,6 @@ public class SatelliteServer { } break; - case PERMISSIONS: - if (value == null) { - unsetPermissions(); - } else { - setPermissions((Map)value); - } - break; - } } @@ -30111,9 +30095,6 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); - case PERMISSIONS: - return getPermissions(); - } throw new IllegalStateException(); } @@ -30129,8 +30110,6 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); - case PERMISSIONS: - return isSetPermissions(); } throw new IllegalStateException(); } @@ -30139,12 +30118,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_args) - return this.equals((writeImagePermissions_args)that); + if (that instanceof getImagePermissions_args) + return this.equals((getImagePermissions_args)that); return false; } - public boolean equals(writeImagePermissions_args that) { + public boolean equals(getImagePermissions_args that) { if (that == null) return false; @@ -30166,15 +30145,6 @@ public class SatelliteServer { return false; } - boolean this_present_permissions = true && this.isSetPermissions(); - boolean that_present_permissions = true && that.isSetPermissions(); - if (this_present_permissions || that_present_permissions) { - if (!(this_present_permissions && that_present_permissions)) - return false; - if (!this.permissions.equals(that.permissions)) - return false; - } - return true; } @@ -30184,7 +30154,7 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_args other) { + public int compareTo(getImagePermissions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -30211,16 +30181,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPermissions()).compareTo(other.isSetPermissions()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPermissions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.permissions, other.permissions); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -30238,7 +30198,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_args("); + StringBuilder sb = new StringBuilder("getImagePermissions_args("); boolean first = true; sb.append("userToken:"); @@ -30256,14 +30216,6 @@ public class SatelliteServer { sb.append(this.imageBaseId); } first = false; - if (!first) sb.append(", "); - sb.append("permissions:"); - if (this.permissions == null) { - sb.append("null"); - } else { - sb.append(this.permissions); - } - first = false; sb.append(")"); return sb.toString(); } @@ -30289,15 +30241,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsStandardScheme getScheme() { - return new writeImagePermissions_argsStandardScheme(); + private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_argsStandardScheme getScheme() { + return new getImagePermissions_argsStandardScheme(); } } - private static class writeImagePermissions_argsStandardScheme extends StandardScheme { + private static class getImagePermissions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30323,27 +30275,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PERMISSIONS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map202 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map202.size); - for (int _i203 = 0; _i203 < _map202.size; ++_i203) - { - String _key204; - ImagePermissions _val205; - _key204 = iprot.readString(); - _val205 = new ImagePermissions(); - _val205.read(iprot); - struct.permissions.put(_key204, _val205); - } - iprot.readMapEnd(); - } - struct.setPermissionsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -30355,7 +30286,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -30369,35 +30300,22 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - if (struct.permissions != null) { - oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter206 : struct.permissions.entrySet()) - { - oprot.writeString(_iter206.getKey()); - _iter206.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class writeImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_argsTupleScheme getScheme() { - return new writeImagePermissions_argsTupleScheme(); + private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_argsTupleScheme getScheme() { + return new getImagePermissions_argsTupleScheme(); } } - private static class writeImagePermissions_argsTupleScheme extends TupleScheme { + private static class getImagePermissions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -30406,32 +30324,19 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetPermissions()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } - if (struct.isSetPermissions()) { - { - oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter207 : struct.permissions.entrySet()) - { - oprot.writeString(_iter207.getKey()); - _iter207.getValue().write(oprot); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -30440,46 +30345,33 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } - if (incoming.get(2)) { - { - org.apache.thrift.protocol.TMap _map208 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.permissions = new HashMap(2*_map208.size); - for (int _i209 = 0; _i209 < _map208.size; ++_i209) - { - String _key210; - ImagePermissions _val211; - _key210 = iprot.readString(); - _val211 = new ImagePermissions(); - _val211.read(iprot); - struct.permissions.put(_key210, _val211); - } - } - struct.setPermissionsIsSet(true); - } } } } - public static class writeImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("writeImagePermissions_result"); + public static class getImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new writeImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new writeImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getImagePermissions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); } + public Map success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); @@ -30497,6 +30389,8 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND @@ -30546,6 +30440,10 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -30553,18 +30451,20 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(writeImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); } - public writeImagePermissions_result() { + public getImagePermissions_result() { } - public writeImagePermissions_result( + public getImagePermissions_result( + Map success, TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) { this(); + this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; @@ -30573,7 +30473,22 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public writeImagePermissions_result(writeImagePermissions_result other) { + public getImagePermissions_result(getImagePermissions_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(other.success.size()); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + ImagePermissions other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + ImagePermissions __this__success_copy_value = new ImagePermissions(other_element_value); + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } + this.success = __this__success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -30585,22 +30500,58 @@ public class SatelliteServer { } } - public writeImagePermissions_result deepCopy() { - return new writeImagePermissions_result(this); + public getImagePermissions_result deepCopy() { + return new getImagePermissions_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.notFound = null; this.serverError = null; } + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public void putToSuccess(String key, ImagePermissions val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { + return this.success; + } + + public getImagePermissions_result setSuccess(Map success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + public TAuthorizationException getAuthError() { return this.authError; } - public writeImagePermissions_result setAuthError(TAuthorizationException authError) { + public getImagePermissions_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -30624,7 +30575,7 @@ public class SatelliteServer { return this.notFound; } - public writeImagePermissions_result setNotFound(TNotFoundException notFound) { + public getImagePermissions_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -30648,7 +30599,7 @@ public class SatelliteServer { return this.serverError; } - public writeImagePermissions_result setServerError(TInvocationException serverError) { + public getImagePermissions_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -30670,6 +30621,14 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Map)value); + } + break; + case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -30699,6 +30658,9 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -30719,6 +30681,8 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -30733,15 +30697,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof writeImagePermissions_result) - return this.equals((writeImagePermissions_result)that); + if (that instanceof getImagePermissions_result) + return this.equals((getImagePermissions_result)that); return false; } - public boolean equals(writeImagePermissions_result that) { + public boolean equals(getImagePermissions_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -30778,13 +30751,23 @@ public class SatelliteServer { } @Override - public int compareTo(writeImagePermissions_result other) { + public int compareTo(getImagePermissions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -30832,9 +30815,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("writeImagePermissions_result("); + StringBuilder sb = new StringBuilder("getImagePermissions_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -30883,15 +30874,15 @@ public class SatelliteServer { } } - private static class writeImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultStandardScheme getScheme() { - return new writeImagePermissions_resultStandardScheme(); + private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { + public getImagePermissions_resultStandardScheme getScheme() { + return new getImagePermissions_resultStandardScheme(); } } - private static class writeImagePermissions_resultStandardScheme extends StandardScheme { + private static class getImagePermissions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30901,6 +30892,27 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map228 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map228.size); + for (int _i229 = 0; _i229 < _map228.size; ++_i229) + { + String _key230; + ImagePermissions _val231; + _key230 = iprot.readString(); + _val231 = new ImagePermissions(); + _val231.read(iprot); + struct.success.put(_key230, _val231); + } + iprot.readMapEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -30939,10 +30951,23 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Map.Entry _iter232 : struct.success.entrySet()) + { + oprot.writeString(_iter232.getKey()); + _iter232.getValue().write(oprot); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -30964,28 +30989,41 @@ public class SatelliteServer { } - private static class writeImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public writeImagePermissions_resultTupleScheme getScheme() { - return new writeImagePermissions_resultTupleScheme(); + private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { + public getImagePermissions_resultTupleScheme getScheme() { + return new getImagePermissions_resultTupleScheme(); } } - private static class writeImagePermissions_resultTupleScheme extends TupleScheme { + private static class getImagePermissions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNotFound()) { + if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetServerError()) { + if (struct.isSetNotFound()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetServerError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter233 : struct.success.entrySet()) + { + oprot.writeString(_iter233.getKey()); + _iter233.getValue().write(oprot); + } + } + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -30998,20 +31036,36 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, writeImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { + { + org.apache.thrift.protocol.TMap _map234 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map234.size); + for (int _i235 = 0; _i235 < _map234.size; ++_i235) + { + String _key236; + ImagePermissions _val237; + _key236 = iprot.readString(); + _val237 = new ImagePermissions(); + _val237.read(iprot); + struct.success.put(_key236, _val237); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(3)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -31021,25 +31075,28 @@ public class SatelliteServer { } - public static class getImagePermissions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_args"); + public static class setImageOwner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); 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)2); + private static final org.apache.thrift.protocol.TField NEW_OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOwnerId", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImagePermissions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required + public String newOwnerId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"); + IMAGE_BASE_ID((short)2, "imageBaseId"), + NEW_OWNER_ID((short)3, "newOwnerId"); private static final Map byName = new HashMap(); @@ -31058,6 +31115,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; + case 3: // NEW_OWNER_ID + return NEW_OWNER_ID; default: return null; } @@ -31105,49 +31164,57 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); 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.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); } - public getImagePermissions_args() { + public setImageOwner_args() { } - public getImagePermissions_args( + public setImageOwner_args( String userToken, - String imageBaseId) + String imageBaseId, + String newOwnerId) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; + this.newOwnerId = newOwnerId; } /** * Performs a deep copy on other. */ - public getImagePermissions_args(getImagePermissions_args other) { + public setImageOwner_args(setImageOwner_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } + if (other.isSetNewOwnerId()) { + this.newOwnerId = other.newOwnerId; + } } - public getImagePermissions_args deepCopy() { - return new getImagePermissions_args(this); + public setImageOwner_args deepCopy() { + return new setImageOwner_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; + this.newOwnerId = null; } public String getUserToken() { return this.userToken; } - public getImagePermissions_args setUserToken(String userToken) { + public setImageOwner_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -31171,7 +31238,7 @@ public class SatelliteServer { return this.imageBaseId; } - public getImagePermissions_args setImageBaseId(String imageBaseId) { + public setImageOwner_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -31191,6 +31258,30 @@ public class SatelliteServer { } } + public String getNewOwnerId() { + return this.newOwnerId; + } + + public setImageOwner_args setNewOwnerId(String newOwnerId) { + this.newOwnerId = newOwnerId; + return this; + } + + public void unsetNewOwnerId() { + this.newOwnerId = null; + } + + /** Returns true if field newOwnerId is set (has been assigned a value) and false otherwise */ + public boolean isSetNewOwnerId() { + return this.newOwnerId != null; + } + + public void setNewOwnerIdIsSet(boolean value) { + if (!value) { + this.newOwnerId = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -31209,6 +31300,14 @@ public class SatelliteServer { } break; + case NEW_OWNER_ID: + if (value == null) { + unsetNewOwnerId(); + } else { + setNewOwnerId((String)value); + } + break; + } } @@ -31220,6 +31319,9 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); + case NEW_OWNER_ID: + return getNewOwnerId(); + } throw new IllegalStateException(); } @@ -31235,6 +31337,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); + case NEW_OWNER_ID: + return isSetNewOwnerId(); } throw new IllegalStateException(); } @@ -31243,12 +31347,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImagePermissions_args) - return this.equals((getImagePermissions_args)that); + if (that instanceof setImageOwner_args) + return this.equals((setImageOwner_args)that); return false; } - public boolean equals(getImagePermissions_args that) { + public boolean equals(setImageOwner_args that) { if (that == null) return false; @@ -31270,6 +31374,15 @@ public class SatelliteServer { return false; } + boolean this_present_newOwnerId = true && this.isSetNewOwnerId(); + boolean that_present_newOwnerId = true && that.isSetNewOwnerId(); + if (this_present_newOwnerId || that_present_newOwnerId) { + if (!(this_present_newOwnerId && that_present_newOwnerId)) + return false; + if (!this.newOwnerId.equals(that.newOwnerId)) + return false; + } + return true; } @@ -31279,7 +31392,7 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_args other) { + public int compareTo(setImageOwner_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -31306,6 +31419,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetNewOwnerId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -31323,7 +31446,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_args("); + StringBuilder sb = new StringBuilder("setImageOwner_args("); boolean first = true; sb.append("userToken:"); @@ -31341,6 +31464,14 @@ public class SatelliteServer { sb.append(this.imageBaseId); } first = false; + if (!first) sb.append(", "); + sb.append("newOwnerId:"); + if (this.newOwnerId == null) { + sb.append("null"); + } else { + sb.append(this.newOwnerId); + } + first = false; sb.append(")"); return sb.toString(); } @@ -31366,15 +31497,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_argsStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_argsStandardScheme getScheme() { - return new getImagePermissions_argsStandardScheme(); + private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { + public setImageOwner_argsStandardScheme getScheme() { + return new setImageOwner_argsStandardScheme(); } } - private static class getImagePermissions_argsStandardScheme extends StandardScheme { + private static class setImageOwner_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -31400,6 +31531,14 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // NEW_OWNER_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -31411,7 +31550,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -31425,22 +31564,27 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } + if (struct.newOwnerId != null) { + oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); + oprot.writeString(struct.newOwnerId); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getImagePermissions_argsTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_argsTupleScheme getScheme() { - return new getImagePermissions_argsTupleScheme(); + private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { + public setImageOwner_argsTupleScheme getScheme() { + return new setImageOwner_argsTupleScheme(); } } - private static class getImagePermissions_argsTupleScheme extends TupleScheme { + private static class setImageOwner_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -31449,19 +31593,25 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetNewOwnerId()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } + if (struct.isSetNewOwnerId()) { + oprot.writeString(struct.newOwnerId); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); @@ -31470,33 +31620,34 @@ public class SatelliteServer { struct.imageBaseId = iprot.readString(); struct.setImageBaseIdIsSet(true); } + if (incoming.get(2)) { + struct.newOwnerId = iprot.readString(); + struct.setNewOwnerIdIsSet(true); + } } } } - public static class getImagePermissions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getImagePermissions_result"); + public static class setImageOwner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getImagePermissions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getImagePermissions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageOwner_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); } - public Map success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), SERVER_ERROR((short)3, "serverError"); @@ -31514,8 +31665,6 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND @@ -31565,10 +31714,6 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"), - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ImagePermissions.class)))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -31576,20 +31721,18 @@ public class SatelliteServer { tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getImagePermissions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); } - public getImagePermissions_result() { + public setImageOwner_result() { } - public getImagePermissions_result( - Map success, + public setImageOwner_result( TAuthorizationException authError, TNotFoundException notFound, TInvocationException serverError) { this(); - this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; @@ -31598,22 +31741,7 @@ public class SatelliteServer { /** * Performs a deep copy on other. */ - public getImagePermissions_result(getImagePermissions_result other) { - if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); - for (Map.Entry other_element : other.success.entrySet()) { - - String other_element_key = other_element.getKey(); - ImagePermissions other_element_value = other_element.getValue(); - - String __this__success_copy_key = other_element_key; - - ImagePermissions __this__success_copy_value = new ImagePermissions(other_element_value); - - __this__success.put(__this__success_copy_key, __this__success_copy_value); - } - this.success = __this__success; - } + public setImageOwner_result(setImageOwner_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -31625,58 +31753,22 @@ public class SatelliteServer { } } - public getImagePermissions_result deepCopy() { - return new getImagePermissions_result(this); + public setImageOwner_result deepCopy() { + return new setImageOwner_result(this); } @Override public void clear() { - this.success = null; this.authError = null; this.notFound = null; this.serverError = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public void putToSuccess(String key, ImagePermissions val) { - if (this.success == null) { - this.success = new HashMap(); - } - this.success.put(key, val); - } - - public Map getSuccess() { - return this.success; - } - - public getImagePermissions_result setSuccess(Map success) { - this.success = success; - return this; - } - - public void unsetSuccess() { - this.success = null; - } - - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != null; - } - - public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } - } - public TAuthorizationException getAuthError() { return this.authError; } - public getImagePermissions_result setAuthError(TAuthorizationException authError) { + public setImageOwner_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -31700,7 +31792,7 @@ public class SatelliteServer { return this.notFound; } - public getImagePermissions_result setNotFound(TNotFoundException notFound) { + public setImageOwner_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -31724,7 +31816,7 @@ public class SatelliteServer { return this.serverError; } - public getImagePermissions_result setServerError(TInvocationException serverError) { + public setImageOwner_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -31746,14 +31838,6 @@ public class SatelliteServer { public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((Map)value); - } - break; - case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -31783,9 +31867,6 @@ public class SatelliteServer { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case AUTH_ERROR: return getAuthError(); @@ -31806,8 +31887,6 @@ public class SatelliteServer { } switch (field) { - case SUCCESS: - return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: @@ -31822,24 +31901,15 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getImagePermissions_result) - return this.equals((getImagePermissions_result)that); + if (that instanceof setImageOwner_result) + return this.equals((setImageOwner_result)that); return false; } - public boolean equals(getImagePermissions_result that) { + public boolean equals(setImageOwner_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); - if (this_present_success || that_present_success) { - if (!(this_present_success && that_present_success)) - return false; - if (!this.success.equals(that.success)) - return false; - } - boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -31876,23 +31946,13 @@ public class SatelliteServer { } @Override - public int compareTo(getImagePermissions_result other) { + public int compareTo(setImageOwner_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -31940,17 +32000,9 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("getImagePermissions_result("); + StringBuilder sb = new StringBuilder("setImageOwner_result("); boolean first = true; - sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } - first = false; - if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -31999,15 +32051,15 @@ public class SatelliteServer { } } - private static class getImagePermissions_resultStandardSchemeFactory implements SchemeFactory { - public getImagePermissions_resultStandardScheme getScheme() { - return new getImagePermissions_resultStandardScheme(); + private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { + public setImageOwner_resultStandardScheme getScheme() { + return new setImageOwner_resultStandardScheme(); } } - private static class getImagePermissions_resultStandardScheme extends StandardScheme { + private static class setImageOwner_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -32017,27 +32069,6 @@ public class SatelliteServer { break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map212 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map212.size); - for (int _i213 = 0; _i213 < _map212.size; ++_i213) - { - String _key214; - ImagePermissions _val215; - _key214 = iprot.readString(); - _val215 = new ImagePermissions(); - _val215.read(iprot); - struct.success.put(_key214, _val215); - } - iprot.readMapEnd(); - } - struct.setSuccessIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -32076,23 +32107,10 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter216 : struct.success.entrySet()) - { - oprot.writeString(_iter216.getKey()); - _iter216.getValue().write(oprot); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -32114,41 +32132,28 @@ public class SatelliteServer { } - private static class getImagePermissions_resultTupleSchemeFactory implements SchemeFactory { - public getImagePermissions_resultTupleScheme getScheme() { - return new getImagePermissions_resultTupleScheme(); + private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { + public setImageOwner_resultTupleScheme getScheme() { + return new setImageOwner_resultTupleScheme(); } } - private static class getImagePermissions_resultTupleScheme extends TupleScheme { + private static class setImageOwner_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { - optionals.set(0); - } if (struct.isSetAuthError()) { - optionals.set(1); + optionals.set(0); } if (struct.isSetNotFound()) { - optionals.set(2); + optionals.set(1); } if (struct.isSetServerError()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Map.Entry _iter217 : struct.success.entrySet()) - { - oprot.writeString(_iter217.getKey()); - _iter217.getValue().write(oprot); - } - } + optionals.set(2); } + oprot.writeBitSet(optionals, 3); if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -32161,36 +32166,20 @@ public class SatelliteServer { } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getImagePermissions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map218 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map218.size); - for (int _i219 = 0; _i219 < _map218.size; ++_i219) - { - String _key220; - ImagePermissions _val221; - _key220 = iprot.readString(); - _val221 = new ImagePermissions(); - _val221.read(iprot); - struct.success.put(_key220, _val221); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } - if (incoming.get(3)) { + if (incoming.get(2)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); @@ -32200,28 +32189,28 @@ public class SatelliteServer { } - public static class setImageOwner_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_args"); + public static class setImageVersionExpiry_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionExpiry_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); 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)2); - private static final org.apache.thrift.protocol.TField NEW_OWNER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOwnerId", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField EXPIRE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("expireTime", org.apache.thrift.protocol.TType.I64, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageOwner_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageVersionExpiry_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionExpiry_argsTupleSchemeFactory()); } public String userToken; // required public String imageBaseId; // required - public String newOwnerId; // required + public long expireTime; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), IMAGE_BASE_ID((short)2, "imageBaseId"), - NEW_OWNER_ID((short)3, "newOwnerId"); + EXPIRE_TIME((short)3, "expireTime"); private static final Map byName = new HashMap(); @@ -32240,8 +32229,8 @@ public class SatelliteServer { return USER_TOKEN; case 2: // IMAGE_BASE_ID return IMAGE_BASE_ID; - case 3: // NEW_OWNER_ID - return NEW_OWNER_ID; + case 3: // EXPIRE_TIME + return EXPIRE_TIME; default: return null; } @@ -32282,6 +32271,8 @@ public class SatelliteServer { } // isset id assignments + private static final int __EXPIRETIME_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -32289,57 +32280,58 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); 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.NEW_OWNER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOwnerId", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); + tmpMap.put(_Fields.EXPIRE_TIME, new org.apache.thrift.meta_data.FieldMetaData("expireTime", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_args.class, metaDataMap); } - public setImageOwner_args() { + public setImageVersionExpiry_args() { } - public setImageOwner_args( + public setImageVersionExpiry_args( String userToken, String imageBaseId, - String newOwnerId) + long expireTime) { this(); this.userToken = userToken; this.imageBaseId = imageBaseId; - this.newOwnerId = newOwnerId; + this.expireTime = expireTime; + setExpireTimeIsSet(true); } /** * Performs a deep copy on other. */ - public setImageOwner_args(setImageOwner_args other) { + public setImageVersionExpiry_args(setImageVersionExpiry_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetUserToken()) { this.userToken = other.userToken; } if (other.isSetImageBaseId()) { this.imageBaseId = other.imageBaseId; } - if (other.isSetNewOwnerId()) { - this.newOwnerId = other.newOwnerId; - } + this.expireTime = other.expireTime; } - public setImageOwner_args deepCopy() { - return new setImageOwner_args(this); + public setImageVersionExpiry_args deepCopy() { + return new setImageVersionExpiry_args(this); } @Override public void clear() { this.userToken = null; this.imageBaseId = null; - this.newOwnerId = null; + setExpireTimeIsSet(false); + this.expireTime = 0; } public String getUserToken() { return this.userToken; } - public setImageOwner_args setUserToken(String userToken) { + public setImageVersionExpiry_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -32363,7 +32355,7 @@ public class SatelliteServer { return this.imageBaseId; } - public setImageOwner_args setImageBaseId(String imageBaseId) { + public setImageVersionExpiry_args setImageBaseId(String imageBaseId) { this.imageBaseId = imageBaseId; return this; } @@ -32383,28 +32375,27 @@ public class SatelliteServer { } } - public String getNewOwnerId() { - return this.newOwnerId; + public long getExpireTime() { + return this.expireTime; } - public setImageOwner_args setNewOwnerId(String newOwnerId) { - this.newOwnerId = newOwnerId; + public setImageVersionExpiry_args setExpireTime(long expireTime) { + this.expireTime = expireTime; + setExpireTimeIsSet(true); return this; } - public void unsetNewOwnerId() { - this.newOwnerId = null; + public void unsetExpireTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __EXPIRETIME_ISSET_ID); } - /** Returns true if field newOwnerId is set (has been assigned a value) and false otherwise */ - public boolean isSetNewOwnerId() { - return this.newOwnerId != null; + /** 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); } - public void setNewOwnerIdIsSet(boolean value) { - if (!value) { - this.newOwnerId = null; - } + public void setExpireTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -32425,11 +32416,11 @@ public class SatelliteServer { } break; - case NEW_OWNER_ID: + case EXPIRE_TIME: if (value == null) { - unsetNewOwnerId(); + unsetExpireTime(); } else { - setNewOwnerId((String)value); + setExpireTime((Long)value); } break; @@ -32444,8 +32435,8 @@ public class SatelliteServer { case IMAGE_BASE_ID: return getImageBaseId(); - case NEW_OWNER_ID: - return getNewOwnerId(); + case EXPIRE_TIME: + return Long.valueOf(getExpireTime()); } throw new IllegalStateException(); @@ -32462,8 +32453,8 @@ public class SatelliteServer { return isSetUserToken(); case IMAGE_BASE_ID: return isSetImageBaseId(); - case NEW_OWNER_ID: - return isSetNewOwnerId(); + case EXPIRE_TIME: + return isSetExpireTime(); } throw new IllegalStateException(); } @@ -32472,12 +32463,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageOwner_args) - return this.equals((setImageOwner_args)that); + if (that instanceof setImageVersionExpiry_args) + return this.equals((setImageVersionExpiry_args)that); return false; } - public boolean equals(setImageOwner_args that) { + public boolean equals(setImageVersionExpiry_args that) { if (that == null) return false; @@ -32499,12 +32490,12 @@ public class SatelliteServer { return false; } - boolean this_present_newOwnerId = true && this.isSetNewOwnerId(); - boolean that_present_newOwnerId = true && that.isSetNewOwnerId(); - if (this_present_newOwnerId || that_present_newOwnerId) { - if (!(this_present_newOwnerId && that_present_newOwnerId)) + boolean this_present_expireTime = true; + boolean that_present_expireTime = true; + if (this_present_expireTime || that_present_expireTime) { + if (!(this_present_expireTime && that_present_expireTime)) return false; - if (!this.newOwnerId.equals(that.newOwnerId)) + if (this.expireTime != that.expireTime) return false; } @@ -32517,7 +32508,7 @@ public class SatelliteServer { } @Override - public int compareTo(setImageOwner_args other) { + public int compareTo(setImageVersionExpiry_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -32544,12 +32535,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNewOwnerId()).compareTo(other.isSetNewOwnerId()); + lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime()); if (lastComparison != 0) { return lastComparison; } - if (isSetNewOwnerId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOwnerId, other.newOwnerId); + if (isSetExpireTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expireTime, other.expireTime); if (lastComparison != 0) { return lastComparison; } @@ -32571,7 +32562,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_args("); + StringBuilder sb = new StringBuilder("setImageVersionExpiry_args("); boolean first = true; sb.append("userToken:"); @@ -32590,12 +32581,8 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("newOwnerId:"); - if (this.newOwnerId == null) { - sb.append("null"); - } else { - sb.append(this.newOwnerId); - } + sb.append("expireTime:"); + sb.append(this.expireTime); first = false; sb.append(")"); return sb.toString(); @@ -32616,21 +32603,23 @@ public class SatelliteServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class setImageOwner_argsStandardSchemeFactory implements SchemeFactory { - public setImageOwner_argsStandardScheme getScheme() { - return new setImageOwner_argsStandardScheme(); + private static class setImageVersionExpiry_argsStandardSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_argsStandardScheme getScheme() { + return new setImageVersionExpiry_argsStandardScheme(); } } - private static class setImageOwner_argsStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -32656,10 +32645,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // NEW_OWNER_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.newOwnerId = iprot.readString(); - struct.setNewOwnerIdIsSet(true); + case 3: // EXPIRE_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.expireTime = iprot.readI64(); + struct.setExpireTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -32675,7 +32664,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -32689,27 +32678,25 @@ public class SatelliteServer { oprot.writeString(struct.imageBaseId); oprot.writeFieldEnd(); } - if (struct.newOwnerId != null) { - oprot.writeFieldBegin(NEW_OWNER_ID_FIELD_DESC); - oprot.writeString(struct.newOwnerId); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(EXPIRE_TIME_FIELD_DESC); + oprot.writeI64(struct.expireTime); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageOwner_argsTupleSchemeFactory implements SchemeFactory { - public setImageOwner_argsTupleScheme getScheme() { - return new setImageOwner_argsTupleScheme(); + private static class setImageVersionExpiry_argsTupleSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_argsTupleScheme getScheme() { + return new setImageVersionExpiry_argsTupleScheme(); } } - private static class setImageOwner_argsTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { @@ -32718,7 +32705,7 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { optionals.set(1); } - if (struct.isSetNewOwnerId()) { + if (struct.isSetExpireTime()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -32728,13 +32715,13 @@ public class SatelliteServer { if (struct.isSetImageBaseId()) { oprot.writeString(struct.imageBaseId); } - if (struct.isSetNewOwnerId()) { - oprot.writeString(struct.newOwnerId); + if (struct.isSetExpireTime()) { + oprot.writeI64(struct.expireTime); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -32746,36 +32733,39 @@ public class SatelliteServer { struct.setImageBaseIdIsSet(true); } if (incoming.get(2)) { - struct.newOwnerId = iprot.readString(); - struct.setNewOwnerIdIsSet(true); + struct.expireTime = iprot.readI64(); + struct.setExpireTimeIsSet(true); } } } } - public static class setImageOwner_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageOwner_result"); + public static class setImageVersionExpiry_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionExpiry_result"); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField DATE_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("dateError", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageOwner_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageOwner_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new setImageVersionExpiry_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new setImageVersionExpiry_resultTupleSchemeFactory()); } public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required + public TInvalidDateParam dateError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), - SERVER_ERROR((short)3, "serverError"); + SERVER_ERROR((short)3, "serverError"), + DATE_ERROR((short)4, "dateError"); private static final Map byName = new HashMap(); @@ -32796,6 +32786,8 @@ public class SatelliteServer { return NOT_FOUND; case 3: // SERVER_ERROR return SERVER_ERROR; + case 4: // DATE_ERROR + return DATE_ERROR; default: return null; } @@ -32845,28 +32837,32 @@ public class SatelliteServer { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.DATE_ERROR, new org.apache.thrift.meta_data.FieldMetaData("dateError", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageOwner_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_result.class, metaDataMap); } - public setImageOwner_result() { + public setImageVersionExpiry_result() { } - public setImageOwner_result( + public setImageVersionExpiry_result( TAuthorizationException authError, TNotFoundException notFound, - TInvocationException serverError) + TInvocationException serverError, + TInvalidDateParam dateError) { this(); this.authError = authError; this.notFound = notFound; this.serverError = serverError; + this.dateError = dateError; } /** * Performs a deep copy on other. */ - public setImageOwner_result(setImageOwner_result other) { + public setImageVersionExpiry_result(setImageVersionExpiry_result other) { if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -32876,10 +32872,13 @@ public class SatelliteServer { if (other.isSetServerError()) { this.serverError = new TInvocationException(other.serverError); } + if (other.isSetDateError()) { + this.dateError = new TInvalidDateParam(other.dateError); + } } - public setImageOwner_result deepCopy() { - return new setImageOwner_result(this); + public setImageVersionExpiry_result deepCopy() { + return new setImageVersionExpiry_result(this); } @Override @@ -32887,13 +32886,14 @@ public class SatelliteServer { this.authError = null; this.notFound = null; this.serverError = null; + this.dateError = null; } public TAuthorizationException getAuthError() { return this.authError; } - public setImageOwner_result setAuthError(TAuthorizationException authError) { + public setImageVersionExpiry_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -32917,7 +32917,7 @@ public class SatelliteServer { return this.notFound; } - public setImageOwner_result setNotFound(TNotFoundException notFound) { + public setImageVersionExpiry_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -32941,7 +32941,7 @@ public class SatelliteServer { return this.serverError; } - public setImageOwner_result setServerError(TInvocationException serverError) { + public setImageVersionExpiry_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -32961,6 +32961,30 @@ public class SatelliteServer { } } + public TInvalidDateParam getDateError() { + return this.dateError; + } + + public setImageVersionExpiry_result setDateError(TInvalidDateParam dateError) { + this.dateError = dateError; + return this; + } + + public void unsetDateError() { + this.dateError = null; + } + + /** Returns true if field dateError is set (has been assigned a value) and false otherwise */ + public boolean isSetDateError() { + return this.dateError != null; + } + + public void setDateErrorIsSet(boolean value) { + if (!value) { + this.dateError = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case AUTH_ERROR: @@ -32987,6 +33011,14 @@ public class SatelliteServer { } break; + case DATE_ERROR: + if (value == null) { + unsetDateError(); + } else { + setDateError((TInvalidDateParam)value); + } + break; + } } @@ -33001,6 +33033,9 @@ public class SatelliteServer { case SERVER_ERROR: return getServerError(); + case DATE_ERROR: + return getDateError(); + } throw new IllegalStateException(); } @@ -33018,6 +33053,8 @@ public class SatelliteServer { return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); + case DATE_ERROR: + return isSetDateError(); } throw new IllegalStateException(); } @@ -33026,12 +33063,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageOwner_result) - return this.equals((setImageOwner_result)that); + if (that instanceof setImageVersionExpiry_result) + return this.equals((setImageVersionExpiry_result)that); return false; } - public boolean equals(setImageOwner_result that) { + public boolean equals(setImageVersionExpiry_result that) { if (that == null) return false; @@ -33062,6 +33099,15 @@ public class SatelliteServer { return false; } + boolean this_present_dateError = true && this.isSetDateError(); + boolean that_present_dateError = true && that.isSetDateError(); + if (this_present_dateError || that_present_dateError) { + if (!(this_present_dateError && that_present_dateError)) + return false; + if (!this.dateError.equals(that.dateError)) + return false; + } + return true; } @@ -33071,7 +33117,7 @@ public class SatelliteServer { } @Override - public int compareTo(setImageOwner_result other) { + public int compareTo(setImageVersionExpiry_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -33108,6 +33154,16 @@ public class SatelliteServer { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetDateError()).compareTo(other.isSetDateError()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDateError()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateError, other.dateError); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -33125,7 +33181,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageOwner_result("); + StringBuilder sb = new StringBuilder("setImageVersionExpiry_result("); boolean first = true; sb.append("authError:"); @@ -33151,6 +33207,14 @@ public class SatelliteServer { sb.append(this.serverError); } first = false; + if (!first) sb.append(", "); + sb.append("dateError:"); + if (this.dateError == null) { + sb.append("null"); + } else { + sb.append(this.dateError); + } + first = false; sb.append(")"); return sb.toString(); } @@ -33176,15 +33240,15 @@ public class SatelliteServer { } } - private static class setImageOwner_resultStandardSchemeFactory implements SchemeFactory { - public setImageOwner_resultStandardScheme getScheme() { - return new setImageOwner_resultStandardScheme(); + private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_resultStandardScheme getScheme() { + return new setImageVersionExpiry_resultStandardScheme(); } } - private static class setImageOwner_resultStandardScheme extends StandardScheme { + private static class setImageVersionExpiry_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33221,6 +33285,15 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // DATE_ERROR + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.dateError = new TInvalidDateParam(); + struct.dateError.read(iprot); + struct.setDateErrorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -33232,7 +33305,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33251,22 +33324,27 @@ public class SatelliteServer { struct.serverError.write(oprot); oprot.writeFieldEnd(); } + if (struct.dateError != null) { + oprot.writeFieldBegin(DATE_ERROR_FIELD_DESC); + struct.dateError.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageOwner_resultTupleSchemeFactory implements SchemeFactory { - public setImageOwner_resultTupleScheme getScheme() { - return new setImageOwner_resultTupleScheme(); + private static class setImageVersionExpiry_resultTupleSchemeFactory implements SchemeFactory { + public setImageVersionExpiry_resultTupleScheme getScheme() { + return new setImageVersionExpiry_resultTupleScheme(); } } - private static class setImageOwner_resultTupleScheme extends TupleScheme { + private static class setImageVersionExpiry_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetAuthError()) { @@ -33278,7 +33356,10 @@ public class SatelliteServer { if (struct.isSetServerError()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetDateError()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -33288,12 +33369,15 @@ public class SatelliteServer { if (struct.isSetServerError()) { struct.serverError.write(oprot); } + if (struct.isSetDateError()) { + struct.dateError.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageOwner_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); @@ -33309,33 +33393,35 @@ public class SatelliteServer { struct.serverError.read(iprot); struct.setServerErrorIsSet(true); } + if (incoming.get(3)) { + struct.dateError = new TInvalidDateParam(); + struct.dateError.read(iprot); + struct.setDateErrorIsSet(true); + } } } } - public static class setImageVersionExpiry_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionExpiry_args"); + public static class requestImageReplication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestImageReplication_args"); private static final org.apache.thrift.protocol.TField USER_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("userToken", org.apache.thrift.protocol.TType.STRING, (short)1); - 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)2); - private static final org.apache.thrift.protocol.TField EXPIRE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("expireTime", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField IMAGE_VERSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("imageVersionId", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageVersionExpiry_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageVersionExpiry_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestImageReplication_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestImageReplication_argsTupleSchemeFactory()); } public String userToken; // required - public String imageBaseId; // required - public long expireTime; // required + public String imageVersionId; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { USER_TOKEN((short)1, "userToken"), - IMAGE_BASE_ID((short)2, "imageBaseId"), - EXPIRE_TIME((short)3, "expireTime"); + IMAGE_VERSION_ID((short)2, "imageVersionId"); private static final Map byName = new HashMap(); @@ -33352,10 +33438,8 @@ public class SatelliteServer { switch(fieldId) { case 1: // USER_TOKEN return USER_TOKEN; - case 2: // IMAGE_BASE_ID - return IMAGE_BASE_ID; - case 3: // EXPIRE_TIME - return EXPIRE_TIME; + case 2: // IMAGE_VERSION_ID + return IMAGE_VERSION_ID; default: return null; } @@ -33396,67 +33480,56 @@ public class SatelliteServer { } // isset id assignments - private static final int __EXPIRETIME_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.USER_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("userToken", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "Token"))); - tmpMap.put(_Fields.IMAGE_BASE_ID, new org.apache.thrift.meta_data.FieldMetaData("imageBaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.IMAGE_VERSION_ID, new org.apache.thrift.meta_data.FieldMetaData("imageVersionId", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); - tmpMap.put(_Fields.EXPIRE_TIME, new org.apache.thrift.meta_data.FieldMetaData("expireTime", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64 , "UnixTimestamp"))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageReplication_args.class, metaDataMap); } - public setImageVersionExpiry_args() { + public requestImageReplication_args() { } - public setImageVersionExpiry_args( + public requestImageReplication_args( String userToken, - String imageBaseId, - long expireTime) + String imageVersionId) { this(); this.userToken = userToken; - this.imageBaseId = imageBaseId; - this.expireTime = expireTime; - setExpireTimeIsSet(true); + this.imageVersionId = imageVersionId; } /** * Performs a deep copy on other. */ - public setImageVersionExpiry_args(setImageVersionExpiry_args other) { - __isset_bitfield = other.__isset_bitfield; + public requestImageReplication_args(requestImageReplication_args other) { if (other.isSetUserToken()) { this.userToken = other.userToken; } - if (other.isSetImageBaseId()) { - this.imageBaseId = other.imageBaseId; + if (other.isSetImageVersionId()) { + this.imageVersionId = other.imageVersionId; } - this.expireTime = other.expireTime; } - public setImageVersionExpiry_args deepCopy() { - return new setImageVersionExpiry_args(this); + public requestImageReplication_args deepCopy() { + return new requestImageReplication_args(this); } @Override public void clear() { this.userToken = null; - this.imageBaseId = null; - setExpireTimeIsSet(false); - this.expireTime = 0; + this.imageVersionId = null; } public String getUserToken() { return this.userToken; } - public setImageVersionExpiry_args setUserToken(String userToken) { + public requestImageReplication_args setUserToken(String userToken) { this.userToken = userToken; return this; } @@ -33476,53 +33549,30 @@ public class SatelliteServer { } } - public String getImageBaseId() { - return this.imageBaseId; + public String getImageVersionId() { + return this.imageVersionId; } - public setImageVersionExpiry_args setImageBaseId(String imageBaseId) { - this.imageBaseId = imageBaseId; + public requestImageReplication_args setImageVersionId(String imageVersionId) { + this.imageVersionId = imageVersionId; return this; } - public void unsetImageBaseId() { - this.imageBaseId = null; + public void unsetImageVersionId() { + this.imageVersionId = null; } - /** Returns true if field imageBaseId is set (has been assigned a value) and false otherwise */ - public boolean isSetImageBaseId() { - return this.imageBaseId != null; + /** Returns true if field imageVersionId is set (has been assigned a value) and false otherwise */ + public boolean isSetImageVersionId() { + return this.imageVersionId != null; } - public void setImageBaseIdIsSet(boolean value) { + public void setImageVersionIdIsSet(boolean value) { if (!value) { - this.imageBaseId = null; + this.imageVersionId = null; } } - public long getExpireTime() { - return this.expireTime; - } - - public setImageVersionExpiry_args setExpireTime(long expireTime) { - this.expireTime = expireTime; - setExpireTimeIsSet(true); - return this; - } - - public void unsetExpireTime() { - __isset_bitfield = 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); - } - - public void setExpireTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __EXPIRETIME_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case USER_TOKEN: @@ -33533,19 +33583,11 @@ public class SatelliteServer { } break; - case IMAGE_BASE_ID: - if (value == null) { - unsetImageBaseId(); - } else { - setImageBaseId((String)value); - } - break; - - case EXPIRE_TIME: + case IMAGE_VERSION_ID: if (value == null) { - unsetExpireTime(); + unsetImageVersionId(); } else { - setExpireTime((Long)value); + setImageVersionId((String)value); } break; @@ -33557,11 +33599,8 @@ public class SatelliteServer { case USER_TOKEN: return getUserToken(); - case IMAGE_BASE_ID: - return getImageBaseId(); - - case EXPIRE_TIME: - return Long.valueOf(getExpireTime()); + case IMAGE_VERSION_ID: + return getImageVersionId(); } throw new IllegalStateException(); @@ -33576,10 +33615,8 @@ public class SatelliteServer { switch (field) { case USER_TOKEN: return isSetUserToken(); - case IMAGE_BASE_ID: - return isSetImageBaseId(); - case EXPIRE_TIME: - return isSetExpireTime(); + case IMAGE_VERSION_ID: + return isSetImageVersionId(); } throw new IllegalStateException(); } @@ -33588,12 +33625,12 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageVersionExpiry_args) - return this.equals((setImageVersionExpiry_args)that); + if (that instanceof requestImageReplication_args) + return this.equals((requestImageReplication_args)that); return false; } - public boolean equals(setImageVersionExpiry_args that) { + public boolean equals(requestImageReplication_args that) { if (that == null) return false; @@ -33606,21 +33643,12 @@ public class SatelliteServer { return false; } - boolean this_present_imageBaseId = true && this.isSetImageBaseId(); - boolean that_present_imageBaseId = true && that.isSetImageBaseId(); - if (this_present_imageBaseId || that_present_imageBaseId) { - if (!(this_present_imageBaseId && that_present_imageBaseId)) - return false; - if (!this.imageBaseId.equals(that.imageBaseId)) - return false; - } - - boolean this_present_expireTime = true; - boolean that_present_expireTime = true; - if (this_present_expireTime || that_present_expireTime) { - if (!(this_present_expireTime && that_present_expireTime)) + boolean this_present_imageVersionId = true && this.isSetImageVersionId(); + boolean that_present_imageVersionId = true && that.isSetImageVersionId(); + if (this_present_imageVersionId || that_present_imageVersionId) { + if (!(this_present_imageVersionId && that_present_imageVersionId)) return false; - if (this.expireTime != that.expireTime) + if (!this.imageVersionId.equals(that.imageVersionId)) return false; } @@ -33633,7 +33661,7 @@ public class SatelliteServer { } @Override - public int compareTo(setImageVersionExpiry_args other) { + public int compareTo(requestImageReplication_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -33650,22 +33678,12 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetImageBaseId()).compareTo(other.isSetImageBaseId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetImageBaseId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageBaseId, other.imageBaseId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetExpireTime()).compareTo(other.isSetExpireTime()); + lastComparison = Boolean.valueOf(isSetImageVersionId()).compareTo(other.isSetImageVersionId()); if (lastComparison != 0) { return lastComparison; } - if (isSetExpireTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expireTime, other.expireTime); + if (isSetImageVersionId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageVersionId, other.imageVersionId); if (lastComparison != 0) { return lastComparison; } @@ -33687,7 +33705,7 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_args("); + StringBuilder sb = new StringBuilder("requestImageReplication_args("); boolean first = true; sb.append("userToken:"); @@ -33698,17 +33716,13 @@ public class SatelliteServer { } first = false; if (!first) sb.append(", "); - sb.append("imageBaseId:"); - if (this.imageBaseId == null) { + sb.append("imageVersionId:"); + if (this.imageVersionId == null) { sb.append("null"); } else { - sb.append(this.imageBaseId); + sb.append(this.imageVersionId); } first = false; - if (!first) sb.append(", "); - sb.append("expireTime:"); - sb.append(this.expireTime); - first = false; sb.append(")"); return sb.toString(); } @@ -33728,23 +33742,21 @@ public class SatelliteServer { private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class setImageVersionExpiry_argsStandardSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_argsStandardScheme getScheme() { - return new setImageVersionExpiry_argsStandardScheme(); + private static class requestImageReplication_argsStandardSchemeFactory implements SchemeFactory { + public requestImageReplication_argsStandardScheme getScheme() { + return new requestImageReplication_argsStandardScheme(); } } - private static class setImageVersionExpiry_argsStandardScheme extends StandardScheme { + private static class requestImageReplication_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33762,18 +33774,10 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // IMAGE_BASE_ID + case 2: // IMAGE_VERSION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // EXPIRE_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.expireTime = iprot.readI64(); - struct.setExpireTimeIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -33789,7 +33793,7 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageReplication_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33798,99 +33802,86 @@ public class SatelliteServer { oprot.writeString(struct.userToken); oprot.writeFieldEnd(); } - if (struct.imageBaseId != null) { - oprot.writeFieldBegin(IMAGE_BASE_ID_FIELD_DESC); - oprot.writeString(struct.imageBaseId); + if (struct.imageVersionId != null) { + oprot.writeFieldBegin(IMAGE_VERSION_ID_FIELD_DESC); + oprot.writeString(struct.imageVersionId); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(EXPIRE_TIME_FIELD_DESC); - oprot.writeI64(struct.expireTime); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageVersionExpiry_argsTupleSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_argsTupleScheme getScheme() { - return new setImageVersionExpiry_argsTupleScheme(); + private static class requestImageReplication_argsTupleSchemeFactory implements SchemeFactory { + public requestImageReplication_argsTupleScheme getScheme() { + return new requestImageReplication_argsTupleScheme(); } } - private static class setImageVersionExpiry_argsTupleScheme extends TupleScheme { + private static class requestImageReplication_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUserToken()) { optionals.set(0); } - if (struct.isSetImageBaseId()) { + if (struct.isSetImageVersionId()) { optionals.set(1); } - if (struct.isSetExpireTime()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetUserToken()) { oprot.writeString(struct.userToken); } - if (struct.isSetImageBaseId()) { - oprot.writeString(struct.imageBaseId); - } - if (struct.isSetExpireTime()) { - oprot.writeI64(struct.expireTime); + if (struct.isSetImageVersionId()) { + oprot.writeString(struct.imageVersionId); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.userToken = iprot.readString(); struct.setUserTokenIsSet(true); } if (incoming.get(1)) { - struct.imageBaseId = iprot.readString(); - struct.setImageBaseIdIsSet(true); - } - if (incoming.get(2)) { - struct.expireTime = iprot.readI64(); - struct.setExpireTimeIsSet(true); + struct.imageVersionId = iprot.readString(); + struct.setImageVersionIdIsSet(true); } } } } - public static class setImageVersionExpiry_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setImageVersionExpiry_result"); + public static class requestImageReplication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestImageReplication_result"); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); private static final org.apache.thrift.protocol.TField AUTH_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("authError", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField NOT_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("notFound", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField SERVER_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("serverError", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField DATE_ERROR_FIELD_DESC = new org.apache.thrift.protocol.TField("dateError", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new setImageVersionExpiry_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new setImageVersionExpiry_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new requestImageReplication_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new requestImageReplication_resultTupleSchemeFactory()); } + public String success; // required public TAuthorizationException authError; // required public TNotFoundException notFound; // required public TInvocationException serverError; // required - public TInvalidDateParam dateError; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), AUTH_ERROR((short)1, "authError"), NOT_FOUND((short)2, "notFound"), - SERVER_ERROR((short)3, "serverError"), - DATE_ERROR((short)4, "dateError"); + SERVER_ERROR((short)3, "serverError"); private static final Map byName = new HashMap(); @@ -33905,14 +33896,14 @@ public class SatelliteServer { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // AUTH_ERROR return AUTH_ERROR; case 2: // NOT_FOUND return NOT_FOUND; case 3: // SERVER_ERROR return SERVER_ERROR; - case 4: // DATE_ERROR - return DATE_ERROR; default: return null; } @@ -33956,38 +33947,41 @@ public class SatelliteServer { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , "UUID"))); tmpMap.put(_Fields.AUTH_ERROR, new org.apache.thrift.meta_data.FieldMetaData("authError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.NOT_FOUND, new org.apache.thrift.meta_data.FieldMetaData("notFound", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.SERVER_ERROR, new org.apache.thrift.meta_data.FieldMetaData("serverError", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.DATE_ERROR, new org.apache.thrift.meta_data.FieldMetaData("dateError", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setImageVersionExpiry_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestImageReplication_result.class, metaDataMap); } - public setImageVersionExpiry_result() { + public requestImageReplication_result() { } - public setImageVersionExpiry_result( + public requestImageReplication_result( + String success, TAuthorizationException authError, TNotFoundException notFound, - TInvocationException serverError, - TInvalidDateParam dateError) + TInvocationException serverError) { this(); + this.success = success; this.authError = authError; this.notFound = notFound; this.serverError = serverError; - this.dateError = dateError; } /** * Performs a deep copy on other. */ - public setImageVersionExpiry_result(setImageVersionExpiry_result other) { + public requestImageReplication_result(requestImageReplication_result other) { + if (other.isSetSuccess()) { + this.success = other.success; + } if (other.isSetAuthError()) { this.authError = new TAuthorizationException(other.authError); } @@ -33997,28 +33991,49 @@ public class SatelliteServer { if (other.isSetServerError()) { this.serverError = new TInvocationException(other.serverError); } - if (other.isSetDateError()) { - this.dateError = new TInvalidDateParam(other.dateError); - } } - public setImageVersionExpiry_result deepCopy() { - return new setImageVersionExpiry_result(this); + public requestImageReplication_result deepCopy() { + return new requestImageReplication_result(this); } @Override public void clear() { + this.success = null; this.authError = null; this.notFound = null; this.serverError = null; - this.dateError = null; + } + + public String getSuccess() { + return this.success; + } + + public requestImageReplication_result setSuccess(String success) { + this.success = success; + return this; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } } public TAuthorizationException getAuthError() { return this.authError; } - public setImageVersionExpiry_result setAuthError(TAuthorizationException authError) { + public requestImageReplication_result setAuthError(TAuthorizationException authError) { this.authError = authError; return this; } @@ -34042,7 +34057,7 @@ public class SatelliteServer { return this.notFound; } - public setImageVersionExpiry_result setNotFound(TNotFoundException notFound) { + public requestImageReplication_result setNotFound(TNotFoundException notFound) { this.notFound = notFound; return this; } @@ -34066,7 +34081,7 @@ public class SatelliteServer { return this.serverError; } - public setImageVersionExpiry_result setServerError(TInvocationException serverError) { + public requestImageReplication_result setServerError(TInvocationException serverError) { this.serverError = serverError; return this; } @@ -34086,32 +34101,16 @@ public class SatelliteServer { } } - public TInvalidDateParam getDateError() { - return this.dateError; - } - - public setImageVersionExpiry_result setDateError(TInvalidDateParam dateError) { - this.dateError = dateError; - return this; - } - - public void unsetDateError() { - this.dateError = null; - } - - /** Returns true if field dateError is set (has been assigned a value) and false otherwise */ - public boolean isSetDateError() { - return this.dateError != null; - } - - public void setDateErrorIsSet(boolean value) { - if (!value) { - this.dateError = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((String)value); + } + break; + case AUTH_ERROR: if (value == null) { unsetAuthError(); @@ -34136,19 +34135,14 @@ public class SatelliteServer { } break; - case DATE_ERROR: - if (value == null) { - unsetDateError(); - } else { - setDateError((TInvalidDateParam)value); - } - break; - } } public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case AUTH_ERROR: return getAuthError(); @@ -34158,9 +34152,6 @@ public class SatelliteServer { case SERVER_ERROR: return getServerError(); - case DATE_ERROR: - return getDateError(); - } throw new IllegalStateException(); } @@ -34172,14 +34163,14 @@ public class SatelliteServer { } switch (field) { + case SUCCESS: + return isSetSuccess(); case AUTH_ERROR: return isSetAuthError(); case NOT_FOUND: return isSetNotFound(); case SERVER_ERROR: return isSetServerError(); - case DATE_ERROR: - return isSetDateError(); } throw new IllegalStateException(); } @@ -34188,15 +34179,24 @@ public class SatelliteServer { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof setImageVersionExpiry_result) - return this.equals((setImageVersionExpiry_result)that); + if (that instanceof requestImageReplication_result) + return this.equals((requestImageReplication_result)that); return false; } - public boolean equals(setImageVersionExpiry_result that) { + public boolean equals(requestImageReplication_result that) { if (that == null) return false; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + boolean this_present_authError = true && this.isSetAuthError(); boolean that_present_authError = true && that.isSetAuthError(); if (this_present_authError || that_present_authError) { @@ -34224,15 +34224,6 @@ public class SatelliteServer { return false; } - boolean this_present_dateError = true && this.isSetDateError(); - boolean that_present_dateError = true && that.isSetDateError(); - if (this_present_dateError || that_present_dateError) { - if (!(this_present_dateError && that_present_dateError)) - return false; - if (!this.dateError.equals(that.dateError)) - return false; - } - return true; } @@ -34242,13 +34233,23 @@ public class SatelliteServer { } @Override - public int compareTo(setImageVersionExpiry_result other) { + public int compareTo(requestImageReplication_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetAuthError()).compareTo(other.isSetAuthError()); if (lastComparison != 0) { return lastComparison; @@ -34279,16 +34280,6 @@ public class SatelliteServer { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDateError()).compareTo(other.isSetDateError()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDateError()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateError, other.dateError); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -34306,9 +34297,17 @@ public class SatelliteServer { @Override public String toString() { - StringBuilder sb = new StringBuilder("setImageVersionExpiry_result("); + StringBuilder sb = new StringBuilder("requestImageReplication_result("); boolean first = true; + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); sb.append("authError:"); if (this.authError == null) { sb.append("null"); @@ -34332,14 +34331,6 @@ public class SatelliteServer { sb.append(this.serverError); } first = false; - if (!first) sb.append(", "); - sb.append("dateError:"); - if (this.dateError == null) { - sb.append("null"); - } else { - sb.append(this.dateError); - } - first = false; sb.append(")"); return sb.toString(); } @@ -34365,15 +34356,15 @@ public class SatelliteServer { } } - private static class setImageVersionExpiry_resultStandardSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_resultStandardScheme getScheme() { - return new setImageVersionExpiry_resultStandardScheme(); + private static class requestImageReplication_resultStandardSchemeFactory implements SchemeFactory { + public requestImageReplication_resultStandardScheme getScheme() { + return new requestImageReplication_resultStandardScheme(); } } - private static class setImageVersionExpiry_resultStandardScheme extends StandardScheme { + private static class requestImageReplication_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, requestImageReplication_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34383,6 +34374,14 @@ public class SatelliteServer { break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // AUTH_ERROR if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.authError = new TAuthorizationException(); @@ -34410,15 +34409,6 @@ public class SatelliteServer { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DATE_ERROR - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.dateError = new TInvalidDateParam(); - struct.dateError.read(iprot); - struct.setDateErrorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -34430,10 +34420,15 @@ public class SatelliteServer { struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, requestImageReplication_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeString(struct.success); + oprot.writeFieldEnd(); + } if (struct.authError != null) { oprot.writeFieldBegin(AUTH_ERROR_FIELD_DESC); struct.authError.write(oprot); @@ -34449,42 +34444,40 @@ public class SatelliteServer { struct.serverError.write(oprot); oprot.writeFieldEnd(); } - if (struct.dateError != null) { - oprot.writeFieldBegin(DATE_ERROR_FIELD_DESC); - struct.dateError.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class setImageVersionExpiry_resultTupleSchemeFactory implements SchemeFactory { - public setImageVersionExpiry_resultTupleScheme getScheme() { - return new setImageVersionExpiry_resultTupleScheme(); + private static class requestImageReplication_resultTupleSchemeFactory implements SchemeFactory { + public requestImageReplication_resultTupleScheme getScheme() { + return new requestImageReplication_resultTupleScheme(); } } - private static class setImageVersionExpiry_resultTupleScheme extends TupleScheme { + private static class requestImageReplication_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetAuthError()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetNotFound()) { + if (struct.isSetAuthError()) { optionals.set(1); } - if (struct.isSetServerError()) { + if (struct.isSetNotFound()) { optionals.set(2); } - if (struct.isSetDateError()) { + if (struct.isSetServerError()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + oprot.writeString(struct.success); + } if (struct.isSetAuthError()) { struct.authError.write(oprot); } @@ -34494,35 +34487,31 @@ public class SatelliteServer { if (struct.isSetServerError()) { struct.serverError.write(oprot); } - if (struct.isSetDateError()) { - struct.dateError.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, setImageVersionExpiry_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, requestImageReplication_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { + struct.success = iprot.readString(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { struct.authError = new TAuthorizationException(); struct.authError.read(iprot); struct.setAuthErrorIsSet(true); } - if (incoming.get(1)) { + if (incoming.get(2)) { struct.notFound = new TNotFoundException(); struct.notFound.read(iprot); struct.setNotFoundIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(3)) { struct.serverError = new TInvocationException(); struct.serverError.read(iprot); struct.setServerErrorIsSet(true); } - if (incoming.get(3)) { - struct.dateError = new TInvalidDateParam(); - struct.dateError.read(iprot); - struct.setDateErrorIsSet(true); - } } } @@ -37783,14 +37772,14 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); - struct.success = new ArrayList(_list222.size); - for (int _i223 = 0; _i223 < _list222.size; ++_i223) + org.apache.thrift.protocol.TList _list238 = iprot.readListBegin(); + struct.success = new ArrayList(_list238.size); + for (int _i239 = 0; _i239 < _list238.size; ++_i239) { - LectureSummary _elem224; - _elem224 = new LectureSummary(); - _elem224.read(iprot); - struct.success.add(_elem224); + LectureSummary _elem240; + _elem240 = new LectureSummary(); + _elem240.read(iprot); + struct.success.add(_elem240); } iprot.readListEnd(); } @@ -37836,9 +37825,9 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (LectureSummary _iter225 : struct.success) + for (LectureSummary _iter241 : struct.success) { - _iter225.write(oprot); + _iter241.write(oprot); } oprot.writeListEnd(); } @@ -37885,9 +37874,9 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (LectureSummary _iter226 : struct.success) + for (LectureSummary _iter242 : struct.success) { - _iter226.write(oprot); + _iter242.write(oprot); } } } @@ -37905,14 +37894,14 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list227 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list227.size); - for (int _i228 = 0; _i228 < _list227.size; ++_i228) + org.apache.thrift.protocol.TList _list243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list243.size); + for (int _i244 = 0; _i244 < _list243.size; ++_i244) { - LectureSummary _elem229; - _elem229 = new LectureSummary(); - _elem229.read(iprot); - struct.success.add(_elem229); + LectureSummary _elem245; + _elem245 = new LectureSummary(); + _elem245.read(iprot); + struct.success.add(_elem245); } } struct.setSuccessIsSet(true); @@ -40549,16 +40538,16 @@ public class SatelliteServer { case 3: // PERMISSIONS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map230 = iprot.readMapBegin(); - struct.permissions = new HashMap(2*_map230.size); - for (int _i231 = 0; _i231 < _map230.size; ++_i231) + org.apache.thrift.protocol.TMap _map246 = iprot.readMapBegin(); + struct.permissions = new HashMap(2*_map246.size); + for (int _i247 = 0; _i247 < _map246.size; ++_i247) { - String _key232; - LecturePermissions _val233; - _key232 = iprot.readString(); - _val233 = new LecturePermissions(); - _val233.read(iprot); - struct.permissions.put(_key232, _val233); + String _key248; + LecturePermissions _val249; + _key248 = iprot.readString(); + _val249 = new LecturePermissions(); + _val249.read(iprot); + struct.permissions.put(_key248, _val249); } iprot.readMapEnd(); } @@ -40596,10 +40585,10 @@ public class SatelliteServer { oprot.writeFieldBegin(PERMISSIONS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.permissions.size())); - for (Map.Entry _iter234 : struct.permissions.entrySet()) + for (Map.Entry _iter250 : struct.permissions.entrySet()) { - oprot.writeString(_iter234.getKey()); - _iter234.getValue().write(oprot); + oprot.writeString(_iter250.getKey()); + _iter250.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -40642,10 +40631,10 @@ public class SatelliteServer { if (struct.isSetPermissions()) { { oprot.writeI32(struct.permissions.size()); - for (Map.Entry _iter235 : struct.permissions.entrySet()) + for (Map.Entry _iter251 : struct.permissions.entrySet()) { - oprot.writeString(_iter235.getKey()); - _iter235.getValue().write(oprot); + oprot.writeString(_iter251.getKey()); + _iter251.getValue().write(oprot); } } } @@ -40665,16 +40654,16 @@ public class SatelliteServer { } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map236 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.permissions = new HashMap(2*_map236.size); - for (int _i237 = 0; _i237 < _map236.size; ++_i237) + org.apache.thrift.protocol.TMap _map252 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.permissions = new HashMap(2*_map252.size); + for (int _i253 = 0; _i253 < _map252.size; ++_i253) { - String _key238; - LecturePermissions _val239; - _key238 = iprot.readString(); - _val239 = new LecturePermissions(); - _val239.read(iprot); - struct.permissions.put(_key238, _val239); + String _key254; + LecturePermissions _val255; + _key254 = iprot.readString(); + _val255 = new LecturePermissions(); + _val255.read(iprot); + struct.permissions.put(_key254, _val255); } } struct.setPermissionsIsSet(true); @@ -42243,16 +42232,16 @@ public class SatelliteServer { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map240 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map240.size); - for (int _i241 = 0; _i241 < _map240.size; ++_i241) + org.apache.thrift.protocol.TMap _map256 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map256.size); + for (int _i257 = 0; _i257 < _map256.size; ++_i257) { - String _key242; - LecturePermissions _val243; - _key242 = iprot.readString(); - _val243 = new LecturePermissions(); - _val243.read(iprot); - struct.success.put(_key242, _val243); + String _key258; + LecturePermissions _val259; + _key258 = iprot.readString(); + _val259 = new LecturePermissions(); + _val259.read(iprot); + struct.success.put(_key258, _val259); } iprot.readMapEnd(); } @@ -42307,10 +42296,10 @@ public class SatelliteServer { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter244 : struct.success.entrySet()) + for (Map.Entry _iter260 : struct.success.entrySet()) { - oprot.writeString(_iter244.getKey()); - _iter244.getValue().write(oprot); + oprot.writeString(_iter260.getKey()); + _iter260.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -42365,10 +42354,10 @@ public class SatelliteServer { if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter245 : struct.success.entrySet()) + for (Map.Entry _iter261 : struct.success.entrySet()) { - oprot.writeString(_iter245.getKey()); - _iter245.getValue().write(oprot); + oprot.writeString(_iter261.getKey()); + _iter261.getValue().write(oprot); } } } @@ -42389,16 +42378,16 @@ public class SatelliteServer { BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map246 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map246.size); - for (int _i247 = 0; _i247 < _map246.size; ++_i247) + org.apache.thrift.protocol.TMap _map262 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map262.size); + for (int _i263 = 0; _i263 < _map262.size; ++_i263) { - String _key248; - LecturePermissions _val249; - _key248 = iprot.readString(); - _val249 = new LecturePermissions(); - _val249.read(iprot); - struct.success.put(_key248, _val249); + String _key264; + LecturePermissions _val265; + _key264 = iprot.readString(); + _val265 = new LecturePermissions(); + _val265.read(iprot); + struct.success.put(_key264, _val265); } } struct.setSuccessIsSet(true); diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java index eac8531..9381d0c 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/TransferInformation.java @@ -667,13 +667,13 @@ public class TransferInformation implements org.apache.thrift.TBase(_list130.size); - for (int _i131 = 0; _i131 < _list130.size; ++_i131) + org.apache.thrift.protocol.TList _list146 = iprot.readListBegin(); + struct.blockHashes = new ArrayList(_list146.size); + for (int _i147 = 0; _i147 < _list146.size; ++_i147) { - ByteBuffer _elem132; - _elem132 = iprot.readBinary(); - struct.blockHashes.add(_elem132); + ByteBuffer _elem148; + _elem148 = iprot.readBinary(); + struct.blockHashes.add(_elem148); } iprot.readListEnd(); } @@ -721,9 +721,9 @@ public class TransferInformation implements org.apache.thrift.TBase(_list135.size); - for (int _i136 = 0; _i136 < _list135.size; ++_i136) + org.apache.thrift.protocol.TList _list151 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.blockHashes = new ArrayList(_list151.size); + for (int _i152 = 0; _i152 < _list151.size; ++_i152) { - ByteBuffer _elem137; - _elem137 = iprot.readBinary(); - struct.blockHashes.add(_elem137); + ByteBuffer _elem153; + _elem153 = iprot.readBinary(); + struct.blockHashes.add(_elem153); } } struct.setBlockHashesIsSet(true); diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 113d6bc..c658952 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -131,21 +131,6 @@ struct OperatingSystem { 4: string architecture, } -// Sat <-> Master -struct ImagePublishData { - 1: UUID imageBaseId, - 2: UUID currentVersionId, - 3: string imageName, - 4: i32 osId, - 5: string virtId, - 6: UnixTimestamp baseCreateTime, - 7: UnixTimestamp versionCreateTime, - 8: UUID ownerId, - 9: UUID uploaderId, - 11: i64 fileSize, - 16: bool isTemplate, -} - struct ImagePermissions { 1: bool link 2: bool download @@ -227,6 +212,21 @@ struct ImageDetailsRead { 18: optional ImagePermissions userPermissions, } +struct ImagePublishData { + 1: UUID imageBaseId, + 2: UUID imageVersionId, + 3: string imageName, + 4: string description, + 5: UnixTimestamp createTime, + 6: UUID userId, + 7: i64 fileSize, + 8: list software, + 9: list tags, + 10: i32 osId, + 11: string virtId, + 12: bool isTemplate, +} + struct NetRule { 1: i32 ruleId, 2: NetDirection direction, @@ -387,26 +387,30 @@ service SatelliteServer { /* * File transfer related */ + + // Client wants to upload an image TransferInformation requestImageVersionUpload(1: Token userToken, 2: UUID imageBaseId, 3: i64 fileSize, 4: list blockHashes, 5: binary machineDescription) throws (1:TTransferRejectedException rejection, 2:TAuthorizationException authError, 3:TInvocationException ffff, 4:TNotFoundException sdf), + // Client updates block hashes of an upload void updateBlockHashes(1: Token uploadToken, 2: list blockHashes) throws (1:TInvalidTokenException ex1), + // Client cancels an upload void cancelUpload(1: Token uploadToken) throws (1:TInvalidTokenException ex1), + // Client queries server-side status of an upload TransferStatus queryUploadStatus(1: Token uploadToken) throws (1:TInvalidTokenException ex1), + // Client wants to download an image TransferInformation requestDownload(1: Token userToken, 2: UUID imageVersionId) throws (1:TTransferRejectedException rejection, 2:TAuthorizationException authError, 3:TInvocationException ffff, 4:TNotFoundException sdf), + // Client cancels a download void cancelDownload(1: string downloadToken) throws (1:TInvalidTokenException ex1), - - binary getMachineDescription(1: Token userToken, 2: UUID imageVersionId) - throws (1:TAuthorizationException authError, 2:TInvocationException ffff, 3:TNotFoundException sdf), /* * Auth/Session @@ -420,16 +424,19 @@ service SatelliteServer { WhoamiInfo whoami(1: Token userToken) throws (1:TAuthorizationException authError, 2:TInvocationException serverError), + // Logout - make server forget given token void invalidateSession(1: Token userToken) throws (1:TInvalidTokenException ex), // find a user in a given organization by a search term list getUserList(1:Token userToken, 2:i32 page) throws (1:TAuthorizationException failure, 2:TInvocationException serverError), - + + // Get user configurable options SatelliteUserConfig getUserConfig(1:Token userToken) throws (1:TAuthorizationException failure, 2:TInvocationException serverError), - + + // Set user configurable options void setUserConfig(1:Token userToken, 2:SatelliteUserConfig config) throws (1:TAuthorizationException failure, 2:TInvocationException serverError), @@ -446,65 +453,89 @@ service SatelliteServer { /* * Image related */ + // Get image list. tagSearch can be null, which disables this type of filtering and returns all list getImageList(1: Token userToken, 2: list tagSearch, 3: i32 page) throws (1:TAuthorizationException authError, 2:TInvocationException serverError), + // Query detailed information about an image ImageDetailsRead getImageDetails(1: Token userToken, 2: UUID imageBaseId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Create a new image; the image will have no versions, so the user needs to upload one and set meta data later on UUID createImage(1: Token userToken, 2: string imageName) throws (1:TAuthorizationException authError, 2:TInvocationException error), + // Update given image's base meta data void updateImageBase(1: Token userToken, 2: UUID imageBaseId 3: ImageBaseWrite image) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException imgError), + // Update a certain image version's meta data void updateImageVersion(1: Token userToken, 2: UUID imageVersionId 3: ImageVersionWrite image) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException imgError), + // Delete given image version. If the version is currently in use by a lecture, it will not be + // deleted and false is returned void deleteImageVersion(1: Token userToken, 2: UUID imageVersionId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Delete image and all its versions void deleteImageBase(1:Token userToken, 2:UUID imageBaseId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Write list of permissions for given image void writeImagePermissions(1: Token userToken, 2: UUID imageBaseId, 3: map permissions) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Get all user-permissions for given image map getImagePermissions(1: Token userToken, 2: UUID imageBaseId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Set new owner of image void setImageOwner(1: Token userToken, 2: UUID imageBaseId 3: UUID newOwnerId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), - // Set image version valid and change expiry date (super user action) + + // Set image version valid and change expire date (super user action) void setImageVersionExpiry(1: Token userToken, 2: UUID imageBaseId 3: UnixTimestamp expireTime) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError, 4:TInvalidDateParam dateError), - + + // Client asks server to replicate an image from the master server + UUID requestImageReplication(1:Token userToken, 2: UUID imageVersionId) + throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + /* * Lecture related */ + // Create new lecture UUID createLecture(1: Token userToken, 2: LectureWrite lecture) throws (1:TAuthorizationException authError, 2:TInvocationException serverError, 3:TInvalidDateParam dateError), + // Update existing lecture void updateLecture(1: Token userToken, 2: UUID lectureId, 3: LectureWrite lecture) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError, 4:TInvalidDateParam dateError), + // Get list of all lectures list getLectureList(1: Token userToken, 2: i32 page) throws (1:TAuthorizationException authError, 2:TInvocationException serverError), + // Get detailed lecture information LectureRead getLectureDetails(1: Token userToken, 2: UUID lectureId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Delete given lecture void deleteLecture(1: Token userToken, 2: UUID lectureId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Write list of permissions for given lecture void writeLecturePermissions(1: Token userToken, 2: UUID lectureId, 3: map permissions) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Get list of permissions for given lecture map getLecturePermissions(1: Token userToken, 2: UUID lectureId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), + // Set new owner of lecture void setLectureOwner(1: Token userToken, 2: UUID lectureId 3: UUID newOwnerId) throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError), @@ -514,48 +545,60 @@ service SatelliteServer { service MasterServer { -/* - * Client (User's Desktop App) calls - */ - // Ping service + /* + * Client (User's Desktop App) calls + */ + + + // Ping service bool ping(), // Old style test-account login SessionData authenticate(1:string login, 2:string password) throws (1:TAuthorizationException failure, 2:TInvocationException error), + // New style test-account login ClientSessionData localAccountLogin(1:string login, 2:string password) throws (1:TAuthorizationException failure, 2:TInvocationException error), + // find a user in a given organization by a search term list findUser(1:Token sessionId, 2:string organizationId, 3:string searchTerm) throws (1:TAuthorizationException failure, 2:TInvocationException error), + // Get list of publicly available images list getPublicImages(1:Token sessionId, 2:i32 page) throws (1:TAuthorizationException failure, 2:TInvocationException error), + // Logout void invalidateSession(1: Token sessionId) throws (1:TInvalidTokenException ex), -/* - * Server (Satellite) calls - */ + /* + * Server (Satellite) calls + */ + // Verify a user by querying its meta data from the supplied token UserInfo getUserFromToken(1:Token token) throws (1:TInvalidTokenException failure), + // Check if the server is authenticated bool isServerAuthenticated(1:Token serverSessionId), + // Start authentication of server for given organization binary startServerAuthentication(1:string organizationId) throws (1: TAuthorizationException failure, 2:TInvocationException error), + // Reply to master server authentication challenge ServerSessionData serverAuthenticate(1:string organizationId, 2:binary challengeResponse) throws (1:TAuthorizationException failure, 2:TInvocationException errr), + + // Get image information (prior to download) + ImagePublishData getImageData(1:Token serverSessionId, 2:UUID imageVersionId) + throws (1:TAuthorizationException failure, 2: TInvocationException failure2, 3:TNotFoundException f3), + // Request upload of an image to the master server TransferInformation submitImage(1:Token serverSessionId, 2:ImagePublishData imageDescription, 3:list blockHashes) throws (1:TAuthorizationException failure, 2: TInvocationException failure2, 3: TTransferRejectedException failure3), - // Request download of an image - TransferInformation getImage(2:Token serverSessionId, 1:UUID imageVersionId) - throws (1:TAuthorizationException failure, 2:TInvocationException failure2), bool registerSatellite(1:string organizationId, 2:string address, 3:string modulus, 4:string exponent) throws (1:TInvocationException error), @@ -563,9 +606,14 @@ service MasterServer { bool updateSatelliteAddress(1:Token serverSessionId, 2:string address) throws (1:TAuthorizationException failure, 2:TInvocationException error), -/* - * Shared calls - */ + /* + * Shared calls + */ + + // Request download of an image (session id can be a client or a server session) + TransferInformation downloadImage(2:Token sessionId, 1:UUID imageVersionId) + throws (1:TAuthorizationException failure, 2:TInvocationException failure2, 3:TNotFoundException f3), + // Get list of known organizations with meta data list getOrganizations() throws (1:TInvocationException serverError), -- cgit v1.2.3-55-g7522