From 2194e7e82864c08276d7a333d83851d514d28c1f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 16 Jun 2015 18:12:33 +0200 Subject: More thrift interface changes --- .../bwlp/thrift/iface/ImageVersionDetails.java | 157 ++++++++++++++++++++- 1 file changed, 153 insertions(+), 4 deletions(-) (limited to 'src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionDetails.java') diff --git a/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionDetails.java b/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionDetails.java index 39202db..608443d 100644 --- a/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionDetails.java +++ b/src/main/java/org/openslx/bwlp/thrift/iface/ImageVersionDetails.java @@ -44,6 +44,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -60,6 +61,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase software; // 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 { @@ -71,7 +73,8 @@ public class ImageVersionDetails implements org.apache.thrift.TBase byName = new HashMap(); @@ -104,6 +107,8 @@ public class ImageVersionDetails implements org.apache.thrift.TBase software) { this(); this.versionId = versionId; @@ -208,6 +217,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase __this__software = new ArrayList(other.software); + this.software = __this__software; + } } public ImageVersionDetails deepCopy() { @@ -252,6 +266,7 @@ public class ImageVersionDetails implements org.apache.thrift.TBase getSoftwareIterator() { + return (this.software == null) ? null : this.software.iterator(); + } + + public void addToSoftware(String elem) { + if (this.software == null) { + this.software = new ArrayList(); + } + this.software.add(elem); + } + + public List getSoftware() { + return this.software; + } + + public ImageVersionDetails setSoftware(List software) { + this.software = software; + return this; + } + + public void unsetSoftware() { + this.software = 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 setSoftwareIsSet(boolean value) { + if (!value) { + this.software = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case VERSION_ID: @@ -537,6 +591,14 @@ public class ImageVersionDetails implements org.apache.thrift.TBase)value); + } + break; + } } @@ -569,6 +631,9 @@ public class ImageVersionDetails implements org.apache.thrift.TBase(_list34.size); + for (int _i35 = 0; _i35 < _list34.size; ++_i35) + { + String _elem36; + _elem36 = iprot.readString(); + struct.software.add(_elem36); + } + iprot.readListEnd(); + } + struct.setSoftwareIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -1028,6 +1140,18 @@ public class ImageVersionDetails implements org.apache.thrift.TBase(_list39.size); + for (int _i40 = 0; _i40 < _list39.size; ++_i40) + { + String _elem41; + _elem41 = iprot.readString(); + struct.software.add(_elem41); + } + } + struct.setSoftwareIsSet(true); + } } } -- cgit v1.2.3-55-g7522